Is this WAD or an error Jeff
LIBRARY rexxgui
guierr = "SYNTAX"
guiheading = 1
guicreatewindow('NORMAL')
sw_toggle = 0
again:
DO FOREVER
guigetmsg()
IF EXISTS('GuiObject') == 0 THEN DO
IF EXISTS('GuiSignal') THEN DO
END
END
ELSE DO
IF EXISTS('GuiSignal') == 0 THEN DROP (guiobject)
ELSE SELECT guiobject
WHEN 0 THEN NOP
OTHERWISE
END
END
CATCH SYNTAX
CONDITION()
SIGNAL again
CATCH HALT
FINALLY
guidestroywindow()
END
RETURN
wm_contextmenu:
guiaddmenu('List')
RETURN
toggle_menu:
IF sw_toggle = 0 THEN
DO
SAY 'Setting a MARK for toggle_menu'
guisetmenuopts('Toggle_menu', 'MARK')
sw_toggle = 1
END
ELSE
DO
SAY 'Clearing toggle_menu'
guisetmenuopts('Toggle_menu', '')
sw_toggle = 0
END
RETURN
Run the script, right-click on the TEXT text and select the toggle popup menu. I'm getting an undefined control in the toggle_menu procedure. Is this a bug ? |