ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> Tcl-core
Tcl-core
Re: [TCLCORE] TIP 146 (was TIPs 117, 146 and 147)
by Peter Spjuth other posts by this author
Aug 28 2003 11:36AM messages near this date
Re: [TCLCORE] TIPs 117, 146 and 147 | Re: [TCLCORE] TIPs 117, 146 and 147
At 21:50 2003-08-22, Joe English wrote:

> Peter Spjuth wrote:
> 
> > TIP#146, overall anchoring to grid
> > http://www.tcl.tk/cgi-bin/tct/tip/146.html
> >
> > This has the unresolved issue about shrinking.
> > I'd appreciate feedback on it.
> 
> This one doesn't seem fully-cooked yet to me.  It's not
> clear from the TIP how the specification interacts with the
> current [grid] semantics.
> 
> Suggestion: recast the specification as a patch to the
> "GRID ALGORITHM" section of the grid(n) manpage.

I have slightly reworded the spec to better match the
current line in the man page text.
Is there anything unclear about the growing semantics?

> On the shrinking issue, either of #1 or #2 seem sensible.
> I don't like option #3.  It introduces a discontinuity:
> rows with -weight 0 do not stretch or shrink, except when
> all rows have -weight 0, in which case they do shrink.

Yes, you are right.

> Option #3 would also make it impossible to specify a
> layout that's always clipped (sometimes this _is_ the
> right thing to do).  

Also a good point. #2 allows reasonable workarounds to get
both #1 and #3 behaviour, but the opposite is not true.

> If you want stuff to shrink, specify
> a nonzero -weight.  TIP #147 will make this easier, so
> laziness is no excuse :-)

Well, if you want things to shrink but not to grow,
it gets trickier than just setting -weight, but nothing that
can't be solved.
Maybe we should be able to control growing/shrinking
separately as in BLT's table, but that is for another TIP.

/Peter



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Tcl-Core mailing list
Tcl-Core@[...].net
https://lists.sourceforge.net/lists/listinfo/tcl-core
Thread:
Peter Spjuth
Joe English
Peter Spjuth
Donal K. Fellows

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved