how return the current slider of a ScrollAreaGadget ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Comtois
Addict
Addict
Posts: 1432
Joined: Tue Aug 19, 2003 11:36 am
Location: Doubs - France

how return the current slider of a ScrollAreaGadget ?

Post by Comtois »

I find for ScrollBar

GetGadgetState(): Returns the current slider position.


And for ScrollAreaGadget ?
Please correct my english
http://purebasic.developpez.com/
Denis
Enthusiast
Enthusiast
Posts: 779
Joined: Fri Apr 25, 2003 5:10 pm
Location: Doubs - France

Post 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
A+
Denis
Post Reply