rearrangement

View: New views
7 Messages — Rating Filter:   Alert me  

rearrangement

by Jean-Yves F. Barbier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

--


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: rearrangement

by Steven James Drinnan-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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?


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

signature.asc (204 bytes) Download Attachment

Re: rearrangement

by Jean-Yves F. Barbier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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.

--

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: rearrangement

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: rearrangement

by Jean-Yves F. Barbier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
--


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: rearrangement

by Bugzilla from gambas@users.sourceforge.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> 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
>

I don't understand what you are talking about too. :-(

If I want to rearrange the hierarchy of my controls, I just cut them and paste
them in the new container.

--
Benoît Minisini

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user

Re: rearrangement

by Jean-Yves F. Barbier-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Benoît Minisini a écrit :

>> 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
>>
>
> I don't understand what you are talking about too. :-(
>
> If I want to rearrange the hierarchy of my controls, I just cut them and paste
> them in the new container.

Oops, I'm dulled: I didn't even think about making in the drawing area.
(the old pdf only told about snip/snap into the hierarchy tree.)

Sorry for the noise.

--


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Gambas-user mailing list
Gambas-user@...
https://lists.sourceforge.net/lists/listinfo/gambas-user