hi all, im making some gui functions, its all going well so far but i was wondering what the best way to make say a button that when pressed returned the position of a list or a scroller that when moved, moved a list...
thanks alot
thanks alot
Type Button field x,y,width,height End type Clicked.Button = null repeat for b.Button = eahc Button if mousehit(1)=true and rectsoverlap(mousex(),mousey(),1,1,b\x,b\y,b\width,b\height)=true then Clicked.Button = B.Button exit else Clicked.Button = null end if next if Clicked.Button <> null then print Clicked\X+" "+Clicked\Y end if forever
MouseClick = MouseHit(1) MouseUp = (MouseDn=1) And (MouseDown(1)=0) MouseDn = MouseDown(1) MXspd = MouseXSpeed() MYspd = MouseYSpeed() MZspd = MouseZSpeed()