I find for ScrollBar
GetGadgetState(): Returns the current slider position.
And for ScrollAreaGadget ?
how return the current slider of a ScrollAreaGadget ?
how return the current slider of a ScrollAreaGadget ?
Please correct my english
http://purebasic.developpez.com/
http://purebasic.developpez.com/
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
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
A+
Denis
Denis

