Rebol Talk Forum  |  Getting Started  |  Code Examples, Tips & Advice  |  Topic: Window scroller
Pages: [1] Print
Author Topic: Window scroller  (Read 1485 times)
yz
Newbie
*
Offline Offline

Posts: 4


View Profile
Window scroller
« on: November 04, 2006, 02:12:04 PM »

What is the right way to make a window with a vertical scroller? To my pity, I have found only one dead link that relates to this question.
Logged
Graham
Full Member
***
Offline Offline

Posts: 113


View Profile
Re: Window scroller
« Reply #1 on: November 04, 2006, 05:46:54 PM »

Place the pane you want to scroll inside a box.
Add a scroller to the box.
then use the scroller to adjust the x or y offset of the pane inside the box.
redisplay.
Logged

yz
Newbie
*
Offline Offline

Posts: 4


View Profile
Re: Window scroller
« Reply #2 on: November 07, 2006, 01:16:31 AM »

Ah, like in the cookbook recipe no. 36. Thank you.
But how can I specify sizes of the internal panel (panel with separate LAYOUT)?
Logged
Graham
Full Member
***
Offline Offline

Posts: 113


View Profile
Re: Window scroller
« Reply #3 on: November 07, 2006, 08:44:22 PM »

Create a new layout for the box contents, and assign the layout to the pane of the box.
Logged

yz
Newbie
*
Offline Offline

Posts: 4


View Profile
Re: Window scroller
« Reply #4 on: November 13, 2006, 03:55:22 AM »

Create a new layout for the box contents, and assign the layout to the pane of the box.
It's understood, but how can I specify that new subpanel must be, let's say 300x300 to match sizes of box? Without it, the lesser panel opens a part of the box.
Logged
Graham
Full Member
***
Offline Offline

Posts: 113


View Profile
Re: Window scroller
« Reply #5 on: November 13, 2006, 12:50:46 PM »

lo: layout [ size 300x300 .. ]
Logged

yz
Newbie
*
Offline Offline

Posts: 4


View Profile
Re: Window scroller
« Reply #6 on: November 14, 2006, 04:14:35 AM »

So simply? Thank you.
Rebol GUI really needs good documentation...
Logged
Anton
Jr. Member
**
Offline Offline

Posts: 65

Rebol veteran


View Profile WWW
Re: Window scroller
« Reply #7 on: January 02, 2007, 06:13:37 AM »

Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Code Examples, Tips & Advice  |  Topic: Window scroller
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 08, 2008, 02:29:28 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2245 Posts in 589 Topics by 2259 Members
Latest Member: edibritrava

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc