Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DoubleClick or RightClick [SOLVED]
Re: DoubleClick or RightClick [message #1634 is a reply to message #1633] Sat, 11 March 2006 00:35 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Method to Open a New Layout Window
Next Topic: PromptOK from CONSOLE_APP_MAIN, how?[SOLVED]
Goto Forum:
  


Current Time: Sat Jun 07 19:22:40 CEST 2025

Total time taken to generate the page: 0.04651 seconds