| Mirage Source http://www.miragesource.net/forums/ |
|
| Right Clicking... http://www.miragesource.net/forums/viewtopic.php?f=201&t=1512 |
Page 1 of 1 |
| Author: | Braydok [ Wed Mar 14, 2007 12:29 pm ] |
| Post subject: | Right Clicking... |
I have added the Visual Inventory to my game, and it works well, but I was wondering how you can make it so that when you right click, say, a picture box, it does something different than if you just clicked it or double clicked it. Could someone help me here? Thank you. ~Braydok |
|
| Author: | Verrigan [ Wed Mar 14, 2007 2:21 pm ] |
| Post subject: | |
Something like this.. Code: Private Sub Pic_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
Select Case Button Case vbLeftButton 'Do one thing. Case vbRightButton 'Do another thing. Case vbMiddleButton 'Do a third thing, even. :P Case Else 'Somehow, somebody has a 4th button, and VB doesn't support a forth button, so it shouldn't even get here... but hey.. End Select End Sub Hope that helps! |
|
| Author: | Braydok [ Wed Mar 14, 2007 5:41 pm ] |
| Post subject: | |
Wow, thanks Verrigan, this should help alot. I didn't know you were here. (I'm Elec0. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|