[vwnc] programatically moving a divider

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] programatically moving a divider

Richard Wettel-2
Hi,

Is there any way to programatically move a divider in a GUI? I need to  
be able to switch between seeing an information panel (separated  
through a divider from the main panel) or not.

Thanks,
Richard Wettel
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] programatically moving a divider

Mark Pirogovsky-3
You have to assign the bottom and top components to the splitter and
then you can do something like follow:


aPnt := 0 @ (aListV lineGrid * (needLines - 1)) negated.
                                                                                (wG := (self builder componentAt: #ResizingSplitter2) widget)
                                                                                        moveTopComponentsBy: aPnt;
                                                                                        moveSelfBy: aPnt;
                                                                                        moveBottomComponentsBy: aPnt.
                                                                                wG controller selectionTracker
                                                                                        finishSelectionFor: wG container bounds extent.

I use this in the postBuildWith:aBuilder

to adjust positions

--Mark


Richard Wettel wrote:

> Hi,
>
> Is there any way to programatically move a divider in a GUI? I need to  
> be able to switch between seeing an information panel (separated  
> through a divider from the main panel) or not.
>
> Thanks,
> Richard Wettel
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] programatically moving a divider

kobetic
In reply to this post by Richard Wettel-2
Take a look at RefactoringBrowser>>toggleZoom for some inspiration.

HTH,

Martin

"Richard Wettel"<[hidden email]> wrote:
> Is there any way to programatically move a divider in a GUI? I need to  
> be able to switch between seeing an information panel (separated  
> through a divider from the main panel) or not.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] programatically moving a divider

Richard Wettel-2
In reply to this post by Richard Wettel-2
Thanks Henrik. Worked like a breeze.
Also thanks to Mark and Martin.

Cheers,
Richard Wettel


P.S.
To the list admin: Would it be possible to set the Reply To field  
automatically to the vwnc List?


On Jan 26, 2009, at 9:49 AM, Henrik Johansen wrote:

> Here's one example (in a method of an ApplicationModel subclass):
>
> (builder componentAt: #ResizingSplitter1) widget
>                        moveBy: (x @ y)
>
> Cheers,
> Henry
>
> Richard Wettel wrote:
>> Hi,
>>
>> Is there any way to programatically move a divider in a GUI? I need  
>> to
>> be able to switch between seeing an information panel (separated
>> through a divider from the main panel) or not.
>>
>> Thanks,
>> Richard Wettel
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>>
>>
>>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc