Is there a way to suppress the checkmark on a bevel button menu? I want no check to appear at any time while selecting from this menu.
TIA
Not using the built-in BevelButton menu.
As an alternative you could create your own menu using MenuItem and show it in the Action event with MenuItem.Popup. I’m thinking something like this:
[code]Dim m As New MenuItem
m.Append(New MenuItem(“One”))
m.Append(New MenuItem(“Two”))
m.Append(New MenuItem(“Three”))
Dim clicked As MenuItem = m.PopUp[/code]
Thanks, Paul
Construct the menu in the MouseDown event and set the menuvalue to -1 :
me.DeleteAllRows
me.AddRow "Line 1"
me.AddRow "Line 2"
me.MenuValue = -1
I like Franois’ suggestion better.
Thanks, Franois. That works beautifully.
You can even construct the menu in the Open event and set the menuValue to -1 in the MouseDown event.
That works only once for me. When I click the button, no checkmark, but once I select a menuitem, that item will have the checkmark again.
I am using this code in the open event of the button:
me.DeleteAllRows
me.AddRow("Load urls")
me.AddRow("Load websites")
me.MenuValue=-1
With this note written by Apple: “Avoid using bevel buttons”, see
Developer.apple.com/Design/Human Interface Guidelines/Macos/Buttons/Bevel-Buttons/,
currently I’m about to replace all the bevel buttons I’ve set in my Xojo applications.
Some of them owns a menu, and I hope to put a menu into the replacement as well, with the hint written by Paul above.
[quote=443996:@FranoisVanLerberghe][/quote]
That did it! Thanks!