what i have is a sprite which acts as a scroll bar, it works exacty as a windows scroll bar does, which was a nice accomplishment. the only other optoin i would like ot have is to bound the mouse scroll wheel to the scroll bar as it works inside a windows enviorment, scrolling the wheel up would move the scroll bar up. does any one know how to acheive this?
i havew already screwed arround with mousemovez() and mouse(), but nothing worked as in windows.
sample code of my variables is provided
Mouse click scrollbar and move it
If Sprite Exist(18) = 1
If MouseClick() = 1
If Sprite Collision(2,18) = 1 Or scroll(1)=1
If Sprite Y(18) > Screen Height() / 1.630
If Sprite Y(18) < Screen Height() / 1.188 - Sprite Height(18)
scroll(1)=1
if mousey()>= Screen Height() / 1.630
Sprite 18, Sprite X(18), MouseY() - Sprite Height(18) / 2, 336
textbox(0)=(Sprite y(18)/(Screen Height()/18))-10
textbox(1)=textbox(0) + 18
endif
EndIf
EndIf
EndIf
Else
scroll(1)=0
EndIf
If Sprite Y(18) <= Screen Height() / 1.630
Sprite 18, Sprite X(18), Screen Height() / 1.627, 336
EndIf
If Sprite Y(18) >= Screen Height() / 1.188 - Sprite Height(18)
Sprite 18, Sprite X(18), Screen Height() / 1.188 - Sprite Height(18), 336
EndIf
EndIf
NB. sprite 18 is the scroll bar and sprite 1 is the mouse
any help would be appreciated
w00t -what does it mean?