[Gambas-user] rearrangement

Jean-Yves F. Barbier 12ukwn at ...626...
Thu Nov 5 16:45:01 CET 2009


Benoît Minisini 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?
>>
> 
> Can you explain me again? I don't understand what you want to mean.
 
Could it be possible to reparent graphically from the hierarchy tree?
As a beginner I often rage against that lack of option because I'm obliged
to suppress and redraw almost everything if I missed an underlaying container
(and I'm surely not the only one touched)

JY
-- 





More information about the User mailing list