Page 1 of 1
how return the current slider of a ScrollAreaGadget ?
Posted: Sat Aug 23, 2003 12:10 pm
by Comtois
I find for ScrollBar
GetGadgetState(): Returns the current slider position.
And for ScrollAreaGadget ?
Posted: Sun Aug 24, 2003 6:36 am
by Denis
I answered to Comtois on french forum yesterday.
Here is the way i found. Comtois said to us that is was working.
Pos.l = GetScrollPos_(GadgetID(#myScrollarea), #SB_HORZ) ; --> for horizontal scrollbar
Position.l = GetScrollPos_(GadgetID(#myScrollarea), #SB_VERT) ; --> for vertical scrollbar
#SB_HORZ et #SB_VERT are already defined in PB.
Denis