[Gambas-user] Aligning widgets
Charlie Reinl
Karl.Reinl at ...9...
Mon Feb 5 22:55:17 CET 2007
Am Montag, den 05.02.2007, 20:09 +0100 schrieb Benoit Minisini:
> On Tuesday 30 January 2007 22:11, Laurent Duperval wrote:
> > On 1/30/07, Charlie Reinl <Karl.Reinl at ...9...> wrote:
> > > Salut Laurent,
> >
> > Salut Charlie,
> >
> >
> > hold the Ctrl-Key down and mark with the mouse the buttons.
> >
> > > Then (the Ctrl-Key is still down) open the context-menu (right mouse
> > > button) there you will found the needed.
> >
> > Not quite. I tried this but it doesn't quite work as I want. Or else, I
> > don't know how to do it correctly. For example, try this:
> >
> > Create 12 buttons. Now set them up in three rows and four columns. All
> > buttons need to have the same height, and the same spacing between the
> > buttons. Unless I do manual calculations and set the X/Y positions
> > manually, I don't see how to do this.
> >
> > What I would like to do is to select them and tell Gambas to arrange them
> > automatically in an orderly fashion.
> >
> > WIth other toolkits, you can create a layout manager that manages how
> > widgets are placed on screen. Instead of giving each witget a position on
> > the form, you put it in the grid manager and give the manager placement
> > rules, and it figures out how to place the widgets correctly.
> >
> > Think of an HTML table: you create the table layout, tell the table how to
> > manage column widths and lengths and it does it automatically as you add
> > data to it.
> >
> > L
> >
> > Amicalment
> >
>
> There is no grid arrangement in Gambas, but you can do that by putting many
> HBox control in a VBox.
>
> For example, you can create four HBox containers, put three buttons in each of
> them, and put these four HBox containers in one VBox.
>
> Regards,
>
Salut,
he is talking about, what exists in MS-VB, you can mark some (more then
2) controls and say 'same space between each control' and after you have
'increase space' and 'decrease space'
--
Amicalment
Charlie
More information about the User
mailing list