Rebol Talk Forum  |  REBOL Discussions  |  REBOL View  |  Topic: Scroll-wheel scrolling of areas...
Pages: [1] Print
Author Topic: Scroll-wheel scrolling of areas...  (Read 559 times)
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
Scroll-wheel scrolling of areas...
« on: August 02, 2004, 06:07:20 PM »

Hi all,

I've been writing a routine to add scroll-wheel support to scripts and I've hit a slight snag with stopping an area scrolling out of its box - ie, I can't see any way to do it. :-)

With text-lists you have lc and the length of the list's block to determine this, but I can't find how to get such values with an area or any other way it could be done.  With areas I'm changing their para/scroll/y value to scroll them.

The routine I'm working on, which is usable now, can be found here... (Feel free to use it if you want.)

Any Ideas?
 
Logged

- Carl Read
DideC
Newbie
*
Offline Offline

Posts: 32


View Profile
Scroll-wheel scrolling of areas...
« Reply #1 on: September 15, 2004, 03:35:22 PM »

You can use size-text a-face to obtain the size of the text in a face. Then you pick X or Y value according the scrolling direction. In your case Y.

You can have a look to source of 'scroll-para func to see how it's doable. Inspiration maybe.
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
Scroll-wheel scrolling of areas...
« Reply #2 on: September 15, 2004, 06:53:19 PM »

Thanks.  I'd received much the same reply on the mailing list, the result of which you can find here...

http://www.rebol.org/cgi-bin/cgiwrap/rebol...ead.r?m=rmlLJRC
Logged

- Carl Read
Pages: [1] Print 
Rebol Talk Forum  |  REBOL Discussions  |  REBOL View  |  Topic: Scroll-wheel scrolling of areas...
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 20, 2008, 05:24:15 AM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2285 Posts in 594 Topics by 3708 Members
Latest Member: cialissactiv

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

RT design by Defiant Pc