| View previous topic :: View next topic |
| Author |
Message |
filip Valued Contributor


Joined: 07 Aug 2004 Posts: 340
|
Posted: Tue Sep 28, 2004 12:14 pm Post subject: How to define RIGHT mouse CLICK |
|
|
Hi guys
How to define RIGHT mouse CLICK that can be use for POPUP menu
Can someone create this mode
VDS function and commands:
WINDOW RCLICK
@CLICK(B)
@mousedown(R)
This is code from ?
left mouse click and move window
| Code: | :BITMAP1CLICK
%X = @diff(@mousepos(X),@winpos(Window move,L))
%Y = @diff(@mousepos(Y),@winpos(Window move,T))
while @mousedown(L)
%%X2 = @diff(@mousepos(X),%X)
%%Y2 = @diff(@mousepos(Y),%Y)
if @greater(0,%%X2)
%%X2 = 0
end
if @greater(0,%%Y2)
%%Y2 = 0
end
window position,Window move,%%Y2,%%X2
wend
goto loop |
BYE... |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Sep 28, 2004 1:41 pm Post subject: |
|
|
Hi Filip,
You probably can do what you want with something like this right after the line with ":BITMAP1CLICK"...
| Code: | :BITMAP1CLICK
if @equal(@click(b),RIGHT)
info You clicked with the right mouse button!
rem Some more code here
goto loop
end
rem Now, just continue with the code you already had
%X = @diff(@mousepos(X),@winpos(Window move,L))
%Y = @diff(@mousepos(Y),@winpos(Window move,T))
while @mousedown(L).......
rem etc....  |
Btw. I added the [ vds ] tags to your original message, so it is easier to read for other people...  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|