|
|
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DoubleClick or RightClick [SOLVED]
DoubleClick or RightClick [SOLVED] [message #1633] |
Sat, 11 March 2006 00:01 |
Justin
Messages: 57 Registered: March 2006 Location: Orange County California
|
Member |
|
|
How do I respond to actions other than the left mouse button?
Currently I am using code like this to handle single left-click actions:
btnTest <<= THISBACK(Compute);
Would I have to manually handle the Win32 messages within the 'Compute()' function? or is there an easier way of doing this?
[Updated on: Sun, 09 April 2006 04:35] by Moderator Report message to a moderator
|
|
|
Re: DoubleClick or RightClick [message #1634 is a reply to message #1633] |
Sat, 11 March 2006 00:35 |
|
mirek
Messages: 14105 Registered: November 2005
|
Ultimate Member |
|
|
Justin wrote on Fri, 10 March 2006 18:01 | How do I respond to actions other than the left mouse button?
Currently I am using code like this to handle single left-click actions:
btnTest <<= THISBACK(Compute);
Would I have to manually handle the Win32 messages within the 'Compute()' function? or is there an easier way of doing this?
|
Depends. To handle events inside your view area, us LeftDown, LeftUp, LeftDouble, RightDown etc... virtuals.
However, this seems like you are interested in events going to your widget (Button?), so in fact Button is to handle these events. Standard Button does not react to right mouse clicks - you would need to derive and add virtuals (quite easy to do).
OTOH, some Ctrls do react to rightclicks. E.g. ArrayCtrl pops up the menu (which you can define). Anyway, widget reaction to input events is widget specif.
Mirek
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Thu Oct 31 23:45:59 CET 2024
Total time taken to generate the page: 0.00478 seconds
|
|
|