Menu-items act as a radio-set

marcelh

New Member
Hi,

is it possible for a set of menu-items to act like a radio-set? Just as the menu-items under View of the MS Windows Explorer to select a display type.

My environment:
Progress 9.1B GUI

Marcel Hoogesteger.
 
Marcel,
The closest I have got to this is to take the menu options you want as a radio set (e.g. Option1, Option2, Option3) and set them all to toggles. Thereafter, in the VALUE-CHANGED trigger of each of the options use the following code:

ASSIGN MENU-ITEM m_Option1:CHECKED IN MENU MENU-BAR-C-Win = FALSE
MENU-ITEM m_Option2:CHECKED IN MENU MENU-BAR-C-Win = FALSE
MENU-ITEM m_Option3:CHECKED IN MENU MENU-BAR-C-Win = FALSE.

CASE SELF:LABEL:
WHEN "Option1" THEN
ASSIGN MENU-ITEM m_Option1:CHECKED IN MENU MENU-BAR-C-Win = TRUE.
WHEN "Option2" THEN
ASSIGN MENU-ITEM m_Option2:CHECKED IN MENU MENU-BAR-C-Win = TRUE.
WHEN "Option3" THEN
ASSIGN MENU-ITEM m_Option3:CHECKED IN MENU MENU-BAR-C-Win = TRUE.
END CASE.

The only other thing to do is to assign the default option to CHECKED when you start your program.
 
Top