How to check if a string belongs to a main menu or submenu

Hello,

Based on the string description, it is possible to recognize the beginning of a submenu by the term "Popup." Then one knows that the next string "Selection" belongs to a submenu. However, there is no signal term that indicates that the last submenu entry "Copper" or the next main menu entry "Hide" has been reached. Also the ID seems to give no hint.

Would be very helpful if the string description contained the name of the submenu, e.g., instead of Entry 7010 in Menü 1,  Entry 7010 in Submenu 1 of Menü 1, or something similar

In the resource file (.rc, see further below) of the corresponding DLL the beginning and end of a submenu is easy to detect, but I want to avoid having to parse the resource file.

Is there any other COM property or method that can help detecting if a string belongs to a main menu or submenu?

String descriptions:

Insert into list o&f search results, Entry 35106 in Menü 1
Show, Popup-Menü 1 in Menü 1
Selection, Entry 7010 in Menü 1
All, Entry 7009 in Menü 1
Only mounting panels, Entry 7011 in Menü 1
Only doors, Entry 7012 in Menü 1
Copper, Entry 7237 in Menü 1
Hide, Entry 7008 in Menü 1

Screenshot of a dropdown menu with options 'Insert into list of search results', 'Show', 'Hide', 'Simplified representation', 'List with preselection', and 'Configure representation...'. 'Show' is highlighted.

Screenshot of a software interface showing a list of menu entries with IDs and descriptions. Entries include 'Insert into list of search results', 'Show', 'Selection', 'All', 'Only mounting panels', 'Only doors', 'Copper', 'Hide'.

Snippet from corresponding resource file:

Screenshot of a text resource file with a 'POPUP' menu definition. It includes menu items 'Selection', 'All', 'Only mounting panels', 'Only doors', and 'Copper' with corresponding IDs.

Regards 

Karl-Heinz



Generated Image Alt-Text
[edited by: RWS Community AI at 2:52 PM (GMT 0) on 14 Nov 2024]
emoji
Parents Reply Children
No Data