[Gambas-user] rearrangement

Jean-Yves F. Barbier 12ukwn at ...626...
Thu Nov 5 14:36:53 CET 2009


Steven James Drinnan a écrit :
> 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?

Thanks Steven.

-- 




More information about the User mailing list