[Gambas-user] rearrangement

Steven James Drinnan steven at ...2097...
Thu Nov 5 08:33:09 CET 2009


On Thu, 2009-11-05 at 07:29 +0100, Jean-Yves F. Barbier wrote:
> Hi,
> 
> Is there a possibility to rearrange the widgets into the hierarchy
> tree? (ie: move a label from form to hpanel)- I read the old gambas
> beginner guide that say so, but it don't work anymore.
> 

You use the reparent function like this 

Label1.Reparent(hpanel1, hpanel1.X,hpanel1.Y)

But it's behavior is funny. It positions itself to the label not the
other way round. 

So you need to insert the old x and y pos so the container remains in
the same position.

Benoit - can you change this behavior? Ie so the control gets reparented
but the parent remains in the same place and the control moves to the
relative place in the new container?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20091105/66c9ac05/attachment.sig>


More information about the User mailing list