|
Pages: [1]
|
 |
|
Author
|
Topic: Scroll-wheel scrolling of areas... (Read 560 times)
|
|
CarlRead
|
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
|
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
|
|
|
|
|
|
|
|
Pages: [1]
|
|
|
 |