[Gambas-user] How to show which controls are on top

Robert Rowe robert.c.rowe at ...626...
Thu Apr 3 00:47:35 CEST 2008


If you are using the GUI designer then simply draw the text boxes on the 
panel. If you are creating them in code then you pass the parent 
container as a parameter of the New method.

Like this:

Dim text1 as Textbox
Dim text2 as Textbox
Dim MyPanel as Panel

MyPanel =new Panel(me) '<-- the parent of the panel is the form it is on
text1= new Textbox(MyPanel)
text2= new Textbox(MyPanel) '<-- the parent of the textboxes is MyPanel

Robert Rowe

jbskaggs wrote:
> I am confused by something.
>
> I wish to show a panel that has two buttons and textbox.  But I am not
> grasping how to attach the textbox, etc to the panel. COuld someone give me
> an example?
>
> JB Skaggs
>   




More information about the User mailing list