Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM dialog: right, double and middle click button
#1
Is it possible to execute code when a button in a QM dialog is:
- right clicked (double also possible?)
- double clicked
- middle click (double also possible?)

Just like the event "BN_CLICKED" (when clicking on the lightning-bolt icon when a button is selected in the dialog editor), but now for the above mentioned events.

I tried "WM_RBUTTONDBLCLK" but it does not work for buttons.
It might have been covered in an older topic, but could not find it through search.
#2
Also there is BN_DOUBLECLICKED. For others need to subclass the button control (look in the templates menu) or try WM_SETCURSOR (OutWinMsg will tell you whether it is received).
#3
Thank you!
#4
@r0n

Can you provide an example of the above problem?  the above function is very useful, thanks


Forum Jump:


Users browsing this thread: 1 Guest(s)