On Sunday 07 September 2008 10:21:17 am Sibylle Koczian wrote: > Hello, > > I've got my first real Dabo application into a state where I can begin to > worry about cosmetic questions. I've got a dPageFrame with two pages, one > for a data grid showing several records, one with controls for one single > record. > > Several fields in the database keep their default values for most cases, so > I use two panels: the first contains controls for all the fields that must > always be filled in, then a row of buttons. The second panel contains > controls for the fields that are rarely changed from their default values. > > The first of the buttons is a dToggleButton which shows or hides the second > panel. > > Each of the panels contains a dGridSizer and all labels, entry fields and > buttons on the panel go into cells of this sizer. > > 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. > > Thanks for hints, > Sibylle
Wow that's great. Another real Dabo app. when you are finished maybe you can provided a screencast. The grid sizer issue is has been an issue with me in the pastt. I've done several things. First I normally set the number of grid columns to more than required. This does two things. It allows me to use the 'colSpan' property and insert spacers. The second thing I do is fill in the first row of the grid sizer with empty labels. This normally sets the width of the columns and eliminates the need to put in a vertical spacer separator just before the grid sizer starts. I hope that helps. -- John Fabiani _______________________________________________ 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]
