Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(Solved)...Using Menu like PopupMenu
#1

I was wondering if there is any way to use Menu like PopupMenu. With PopupMenu you can call it with a string.

Example:
Code:
Copy      Help
int i=PopupMenu("Item0[]Item1[]Item2")
out i

I would like to be able to use the Menu in the same way the main reason for this is you can use Icons with Menu and also you could make menus dynamically with exe.

This is what i would think the call would look like.

Code:
Copy      Help
str mn=
;Find window or control :mac "TO_FindWindow" * target.ico
;Window/control actions :mac "TO_Window" * windows.ico
;Control-specific actions :mac "TO_Controls" * controls.ico
;-
;Find accessible object :EA_Main _hwndqm * findacc.ico
;Accessible object actions :mac "TO_Accessible" * lightning.ico
;-
;Find HTML element :EH_Main _hwndqm * findhtm.ico
;HTML element actions :mac "TO_Html" * web.ico
;-
;Click menu :mac "TO_Menu" * controls.ico
;-
;Find image :mac "TO_Scan" * image.ico
;-
;About ... :QmHelp "CONTROLS" 0 3 * info.ico

menu(mn)


This should probably be in Wish List, if you want to move it please do.

#2
Code:
Copy      Help
str mn=
;;/
;Find window or control :mac "TO_FindWindow" * target.ico
;Window/control actions :mac "TO_Window" * windows.ico
;Control-specific actions :mac "TO_Controls" * controls.ico
;-
;Find accessible object :EA_Main _hwndqm * findacc.ico
;Accessible object actions :mac "TO_Accessible" * lightning.ico
;-
;Find HTML element :EH_Main _hwndqm * findhtm.ico
;HTML element actions :mac "TO_Html" * web.ico
;-
;Click menu :mac "TO_Menu" * controls.ico
;-
;Find image :mac "TO_Scan" * image.ico
;-
;About ... :QmHelp "CONTROLS" 0 3 * info.ico

int i=DynamicMenu(mn "" 1)
;out i
;GetLastSelectedMenuItem ...

But QM menus cannot be used in exe.
#3

I forgot that you could not use Menu with exe Sad.

Thanks.


Forum Jump:


Users browsing this thread: 1 Guest(s)