How does one enable a popup-menu that is associated with a fill-in in ChUI?
OE 10,2b, AIX
TIA!
You need to set the widget's MENU-KEY attribute to indicate which key will display the popup menu. Here's how to set it to F10 but you can use almost any key.
assign cxa:menu-key in frame f1 = "F10".
Not sure what you mean by 'enable', from the user's perspective should work with shift-f10 I guess
By enable, I mean to make the menu visible and have focus so the user can interact with it.
I'm also trying to get it to work in Windows ChUI (v11.5.1, Windows 10).
Shift-F10 does not work. But thanks for the suggestion.
In this Q&D example, how is myPopup enabled and given focus?
define variable cxa as character no-undo.
define menu myPopup
menu-item a label "A"
menu-item b label "B".
define frame f1
cxa
with size-chars 50 by 10.
assign
menu myPopup:popup-only = true
cxa:popup-menu in frame f1 = menu myPopup:handle.
enable
cxa
with frame f1.
wait-for go, end-error of frame f1.
You need to set the widget's MENU-KEY attribute to indicate which key will display the popup menu. Here's how to set it to F10 but you can use almost any key.
assign cxa:menu-key in frame f1 = "F10".
Thank you Matt, That did the trick..