help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] [Iliad] UI package


From: Nicolas Petton
Subject: Re: [Help-smalltalk] [Iliad] UI package
Date: Sun, 12 Jul 2009 19:38:26 +0200

> I'm too exhausted today to be smart ... is there a short example
> of how the boxes or paneds are used in code?

Not yet, but I will add one :)
> 
> Also, I don't grok the names HorizontalPaned and VerticalPaned.
> A HorizontalBox is a horizontal box, but a HorizontalPaned is
>  - a horizontal pane?
>  - a container for something horizontally paned?

Yes, I took the class names from GTK. A *Paned is a container with 2
panes.
> 
> > 
> > BTW, I'm trying to figure out what other widgets would be useful in
> > this package. Any idea?
> 
> About the only thing I could come up with today was the wish for
> another way to build tabs. You have
>   Tab new labels: aCollection; widgets: aCollection
> I'd also like to use something like
>   Tab new 
>     addLabel: string1 widget: widget1;
>     addLabel: string2 widget: widget2...
> It puts labels and widgets next to each other and avoids the
> intermediate collections.
> 

Thanks, your way of building tabs is in fact better.

> How would I do the following: Assume I'd like to use tabs like
> a "wizard". I'd put some static explanation on the first page
> and then add widgets as necessary.
> 
> Do I have to create a dedicated widget subclass for the static text
> or is there a way around this? I guess this boils down to something
> like
> 
>   Tab new
>     addLabel: 'intro' build: [:e | e text: 'hi!' ...];
>     addLabel: 'step 1' widget: w1;
>     addLabel: 'step 2' widget: w2;
> 
> heh ... a Wizard widget might be nice, actually. Based on tabs,
> with a "next" button at the bottom and active tab switches from
> 1...n (assuming you've completed n-1 steps)
> 

Good idea :)

Cheers!

Nico

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


reply via email to

[Prev in Thread] Current Thread [Next in Thread]