Post Reply 
Code snippet: drawmenu with catching user action
03-04-2014, 04:02 PM (This post was last modified: 03-04-2014 04:03 PM by Han.)
Post: #8
RE: Code snippet: drawmenu with catching user action
(03-04-2014 03:36 PM)Stefan Wrote:  @Han: You mention in your article that a mouse click actually causes three events. Can you explain this a bit more? If I use wait(-1) I only get one list as return value.

Correct.

Quote:Are there cases in which I could get a list of lists with more than 1 event?

Not that I am aware of.

Quote:Or is this just an issue if I loop over WAIT(-1), where I would catch the same user action three times?

Correct. If you issue a loop over WAIT(-1), then you would catch the same user action three times (as a mouse down, mouse up, and a "click"). Since your handler only checks for the click event, the other two are simply ignored.

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Code snippet: drawmenu with catching user action - Han - 03-04-2014 04:02 PM



User(s) browsing this thread: 1 Guest(s)