It turns out that Apple already has a way of handling this, it is just not exposed to Xojo developers.
#Xojo controls how to
Or simply figuring out how to do it properly. However the ring would Inside of the control, not on the outside, so it means redesigning the control to simulate the ring being outside. This could be done by watching the focus state of the control, grabbing the highlight color from the OS and drawing it myself. This one is a bit tricky, as this custom control has rounded corners (to fit in with the Big Sur style) I wanted to make it show a rounded focus ring too. NSImageWithSymbolNameAndFallBack( ".square.dashed", _ NSSegmentedControlSetImageForSegment( me.handle, _ For this example, I'm applying it to a Segmented Control in the open event of the control.
Use the SFSymbols application to find the symbol you want to use, once you've found it, command-shift-c to copy the name (not the symbol).NSToolbarSetDisplayMode( Toolie ) = NSToolbarDisplayModeValue.iconOnly SF Symbols in the controls Hiding the button labels is done by using the following code, place it under where you add the controls to the toolbar. Run your project and the controls should now appear in the toolbar/titlebar.
#Xojo controls code
#Xojo controls trial
If you don't have an active license plan for App Wrapper, you can always take advanatge of the 14-Day trial by downloading it from /appwrapper/aw4.html These steps are only required for Intel apps.
#Xojo controls full
Now that Xojo 2020r2 is out Xojo's ARM Mac apps do NOT need to be modified to enable the full Big Sur GUI features. AW4 can modify the application, telling the macOS that this application is compatible with BS. Getting the unified titlebar with Xojo 2020r1.2 isn't possible, until I added functionality to App Wrapper. In order to be able to continue this series, I needed to get App Wrapper 4 much closer to release and I wanted to make a little sample application to demo some of cool functionality that you can get. Preparing your Xojo made Mac App for macOS Big Sur Part 4 - OAK & App Wrapper combined Wednesday, NovemSam RowlandsĬontinuing on the preparing your Xojo made Mac app for macOS Big Sur, this article covers using Ohanaware App Kit & App Wrapper 4 to get that GUI goodness. Preparing your Xojo made Mac App for macOS Big Sur Wednesday, November 25, 2020