Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
![]() | Version 1.9 Build 1556 |
|
Package | display | |
Module | widgets | |
Tool | optionmenu |
This tool function recovers the index of the currently selected item in the menu. If the menu is empty, it returns F. If no menu item has been selected by the user, it returns unity.
- labels := "Absolute RelRef RelCen"; - f := frame(); - m := optionmenu(f, labels=labels); - m.selectindex(2); - m.getindex(); 2