Ed Leafe wrote:
> On Sep 7, 2008, at 12:21 PM, Sibylle Koczian wrote:
> 
>> All working quite well, and now the cosmetic problem: I'd like to  
>> have equal
>> column widths for both grid sizers, and if at all possible I'd  
>> prefer not to
>> calculate and set them explicitly. In the first sizer the column  
>> width is
>> determined by the buttons, and that width would fit the columns of  
>> the second
>> sizer quite well. On the other hand I don't want to lose the ability  
>> to show
>> or hide all those controls with a single click (and with a very  
>> short event
>> handler). Perhaps I should add that all the rarely used controls are  
>> for one
>> and the same rare use case (paying bills in another currency than  
>> EUR), it's
>> not simply a collection of diverse rare conditions.
> 
> 
>       I can't imagine how to do that without setting the sizes explicitly.  
> After all, the two sizers are independent of each other, and there is  
> no way for one to "know" about the other.

I guess you could have one of the panels controlled by a Sizer, and then 
in the refresh cycle have the other explicitly set the control sizes 
based on the sizes of the equivalent control on the sized panel.

I guess you'd actually want to bind to the Resize event of the sized 
controls, and set the unsized controls explicitly in the onResize handler.

Paul



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]

Reply via email to