Page 1 of 1

How to scroll a Scroll Area gadget a specified amount?

Posted: Thu Aug 04, 2005 12:16 am
by Demivec
I know that Scroll Area Gadgets handle scrolling on their own. I want to scroll it a certain amount though, under program control, say 25% or 40 pixels or something similiar. By what method would this be possible?


Demivec

Posted: Thu Aug 04, 2005 12:42 am
by Fred
Here is a Windows only API way:

Code: Select all

SendMessage_(GadgetID(#ScollAreaGadget), #WM_VSCROLL, #SB_THUMBTRACK | (#position_scrolling << 16), 0)