Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi Popup Menu Checks

Tags:

delphi

I am using a popup menu in Delphi. I want to use it in a "radio group" fashion where if the user selects an item it is checked and the other items are not checked. I tried using the AutoCheck property, but this allows multiple items to be checked. Is there a way to set the popup menu so that only one item can be checked?

like image 478
Peter Avatar asked Sep 25 '08 16:09

Peter


1 Answers

To treat the popup (or any other) menu items like radio group items, set the 'RadioItem' property to true for each item you want to have in the radio group.

Instead of showing a checkmark, it will show a bullet by the selected item, but it will work the way you want, and the visual cue will actually match a windows standard.

like image 50
Zartog Avatar answered Sep 22 '22 21:09

Zartog