Jump to content

How to get message from PopupMenu of GUICtrlViewList in HitTest Example


nu852
 Share

Recommended Posts

Hi,

In _GUICtrlListView_HitTest Example, it shows up a popupmenu when user right click on ListView item. And there will be two options, one is "Open", another is "Save".

Supposed that I want to get further proceed when user to press either of above options. How should the applications be alerted that user has pressed such options.

For example, when user press the "Open" option in popupmenu of the ListView, the application will copy the item data to clipboard. What should I do?

(I just want to know how to get such window message when user press the popupmen item and get further process.)

Thanks in advance.

Link to comment
Share on other sites

Hi,

In _GUICtrlListView_HitTest Example, it shows up a popupmenu when user right click on ListView item. And there will be two options, one is "Open", another is "Save".

Supposed that I want to get further proceed when user to press either of above options. How should the applications be alerted that user has pressed such options.

For example, when user press the "Open" option in popupmenu of the ListView, the application will copy the item data to clipboard. What should I do?

(I just want to know how to get such window message when user press the popupmen item and get further process.)

Thanks in advance.

Does the example for GuiCtrlCreateContextMenu help you?

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Does the example for GuiCtrlCreateContextMenu help you?

I don't think so.

Because the Popupmenu in GuiCtrlViewList is created and destroyed on the fly. Right click on another GuiCtrlViewList item leads to re-create and re-detroyed another Popupmenu.

In GuiCtrlCreateContextMenu Example, the contextmenu exists (although not show) all the time.

In GuiCtrlViewList_HitTest Example, the popupmenu does not exist.

(Just when you right click on ViewList item, popupmenu is created and show up, after user press the menuitem on the popupmenu, the popupmenu is destroyed again.)

Link to comment
Share on other sites

I don't think so.

Because the Popupmenu in GuiCtrlViewList is created and destroyed on the fly. Right click on another GuiCtrlViewList item leads to re-create and re-detroyed another Popupmenu.

In GuiCtrlCreateContextMenu Example, the contextmenu exists (although not show) all the time.

In GuiCtrlViewList_HitTest Example, the popupmenu does not exist.

(Just when you right click on ViewList item, popupmenu is created and show up, after user press the menuitem on the popupmenu, the popupmenu is destroyed again.)

By "I don't think so" I suppose you mean it would require making some changes to the example and you want an example ready-made to do just what you want.

I don't think I can help then.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...