Click ToolbarButton in DropDownMenu to change check state only

I have a Toolbar that contains a ToolbarButton of style DropDownMenu. This menu displays a set of items which are the ListBox column names that the user can check or un-check to show and hide the columns in the ListBox. Currently if the user wants to hide or show multiple columns, the user needs to show this menu every time. Does anyone know of a way to allow the user to click a menu item in this DropDownMenu so the menu doesn’t hide, just updates the check state? So the user can click several column names then click somewhere else to hide the menu. Or in code can you show the DropDownMenu after an item has been clicked?

This is for Desktop macOS and Windows. Running Xojo 2024r4.2

Thanks, Mark

not the answer you’re looking for, but to solve this problem, I use a motor window with a list box listing all the columns, and you can simply select or deselect what you want to see, and when the motor box closes, it returns a an array, which I then use to set the calm widths of the list box

What is a “motor box” ? :slight_smile:

BTW: In moden Xojo Releases a Popover Window could be helpfull.

Okay thanks @Sascha_S. Looking at using the ShowPopover from the toolbar button but now hit another snag here.

@Henry_F_Gibson I’m also keen to know what this motor window/motor box is. Thanks