[Gambas-user] Aligning widgets

nando nando_f at ...951...
Tue Feb 6 07:17:59 CET 2007


I have done this by selecting the wigets I want to
have a common value and in the Property page
set the same value (once) for all by typing it in.
-Fernando


---------- Original Message -----------
From: Charlie Reinl <Karl.Reinl at ...9...>
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Sent: Mon, 05 Feb 2007 22:55:17 +0100
Subject: Re: [Gambas-user] Aligning widgets

> 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
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
------- End of Original Message -------





More information about the User mailing list