After filing Feedback Case #51074 and learn that way is how toolbar work on macOS, I want to learn more about toolbars and buttons.
According to this page , toolbar items could be either 'image buttons' or 'system controls'.
Then I read ToolButton.Style page.
Then I did some tests. Created a toolbar on mac that works just like Xojo, then I ran the project on windows and it looks different.
- the first ToolButton uses ToolStyleDropDown
- the second ToolButton uses ToolStylePushButton
- it works the same as Xojo
- click on the text label on the first ToolButton and it does nothing
- click on the icon on the first ToolButton and the DropDownMenu open
- click on the icon/text on the second ToolButton activate the button (Event Handler Action)
- the first ToolButton icon has an arrow (small "down" icon) at the right side
- if I click the first icon/text then the Event Handler Action is fired (activate the button)
- if I click the right side of that icon, where the small down indicator shows, then I get the DropDownMenu
- if I click on the second ToolButton that activate the button
A few questions:
1.- the first ToolButton (Xojo for Windows) is a custom button?
2.- the docs say "an arrow is drawn by default", is there an option to remove that or change the arrow? (within Xojo)
3.- is there an option on Xojo Mac to create a ToolBar just like Pages/Numbers/Keynote use? (more like a 'system controls' toolbar)
I'm trying to create a toolbar that looks as close as possible for windows and mac, just like Xojo's toolbar.