Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to execute QM item in dialog
#7
I want to add the function of the right click to open the item, but it doesn't work. I don't understand the code below.
@kevin
How to add the following sub-function to the above code? 
Huh
 
Code:
Copy      Help
,case WM_RBUTTONUP
,Acc a.FromMouse
,int rcrn=a.Role
,str rcitem=a.Name
,if rcrn=34
,,int rccbh=a.Hwnd
,,int rciti= a.elem -1
,,mac "sub.rcmessage" "" rcrn rcitem rciti rccbh
,else
,,mac "sub.rcmessage" "" rcrn rcitem
 
Code:
Copy      Help
#sub rcmessage
function i [~item][itemindex][chwnd]
str mtext
sel i
,case 43:
,mtext="button was right clicked"
,,;mac+ item
,case 34:
,,;mtext.format("combo list item: (%s) was right clicked" item)
,,;CB_SelectItem(chwnd itemindex)
,,mac+ item
,case 33:
,,mtext="combo list was right clicked on an empty item"
if(!empty(mtext))
,mes(mtext)


Messages In This Thread
How to execute QM item in dialog - by win - 04-20-2019, 09:44 PM
RE: How to execute QM item in dialog - by win - 04-25-2019, 01:49 AM
RE: How to execute QM item in dialog - by Kevin - 04-25-2019, 02:39 AM
RE: How to execute QM item in dialog - by win - 04-25-2019, 03:00 AM
RE: How to execute QM item in dialog - by Kevin - 04-25-2019, 05:11 AM
RE: How to execute QM item in dialog - by win - 04-25-2019, 05:13 AM
RE: How to execute QM item in dialog - by win - 04-25-2019, 06:17 AM
RE: How to execute QM item in dialog - by Kevin - 04-26-2019, 12:51 AM
RE: How to execute QM item in dialog - by win - 04-26-2019, 01:09 AM
RE: How to execute QM item in dialog - by win - 04-26-2019, 02:11 AM
RE: How to execute QM item in dialog - by win - 04-26-2019, 06:19 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)