How to scroll a Scroll Area gadget a specified amount?

Everything else that doesn't fall into one of the other PB categories.
User avatar
Demivec
Addict
Addict
Posts: 4281
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

How to scroll a Scroll Area gadget a specified amount?

Post 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
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Here is a Windows only API way:

Code: Select all

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