FiREFLi Posted September 30, 2004 Share Posted September 30, 2004 Now, onclick is easy Private Sub cmdYes_click() ... but how about a hover/mouseover? I haven't experimented at all, something which I probably should have done, sorry guys. :laugh: Thanks for any help. I'm tihnking it's probably just something very simple. Cheers :) Link to comment Share on other sites More sharing options...
0 Winston Posted September 30, 2004 Share Posted September 30, 2004 Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) MsgBox "hey" End Sub Link to comment Share on other sites More sharing options...
0 FiREFLi Posted October 1, 2004 Author Share Posted October 1, 2004 Thanks man! That's awesome... Now I have your attention I'll pick your brains some more :D I'm a bit of a noob (totally infact) to VB so what does all this mean? Bit by bit if you would :) Button As Integer, Shift As Integer, X As Single, Y As Single Button as integer :s Link to comment Share on other sites More sharing options...
0 SoftContest Posted October 1, 2004 Share Posted October 1, 2004 Those are event parameters. You can access them the same as you do with variables. See this for more information about MouseMove: http://msdn.microsoft.com/library/default....veXControls.asp Try this: Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Debug.Print Button, Shift, X, Y End Sub And watch the debug window while you move the mouse over the button. Link to comment Share on other sites More sharing options...
Question
FiREFLi
Now, onclick is easy
but how about a hover/mouseover?
I haven't experimented at all, something which I probably should have done, sorry guys. :laugh: Thanks for any help. I'm tihnking it's probably just something very simple.
Cheers :)
Link to comment
Share on other sites
3 answers to this question
Recommended Posts