[Gambas-user] rearrangement

Benoît Minisini gambas at ...1...
Thu Nov 5 16:25:30 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?
> 

Can you explain me again? I don't understand what you want to mean.

-- 
Benoît Minisini




More information about the User mailing list