forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


How to define RIGHT mouse CLICK

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
filip
Valued Contributor
Valued Contributor


Joined: 07 Aug 2004
Posts: 340

PostPosted: Tue Sep 28, 2004 12:14 pm    Post subject: How to define RIGHT mouse CLICK Reply with quote

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
View user's profile Send private message Send e-mail
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Sep 28, 2004 1:41 pm    Post subject: Reply with quote

Hi Filip,

You probably can do what you want with something like this right after the line with ":BITMAP1CLICK"... Smile

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.... Smile


Btw. I added the [ vds ] tags to your original message, so it is easier to read for other people... Smile

_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group