Hi!
I did replace a custom BelvelButton with a custom SegmentedControl class (to support dark mode properly). It works fine but I have a small issue with the focus ring
The segmented control shows two segments with an icon (a flag for a language chooser). When a flag is clicked the chosen segments shows a focus ring and therefore it is obviously which language is active.
But when the new window is opened there is no focus ring shown at all.
I tried SegmentedControl.showFocus with no visible result. A SegmentedControlItem has no “.showFocus”.
Using segmentedControlName.setfocus works here with the same setup as you. Tested with the “XojoNotesDesktop” example project. Add NoteCategory.SetFocus to the EditNoteWindow.Open event.
The focus ring in dark mode is very faint, you have to look hard to see it. Also, you may need Full Keyboard Access turned on in System Preferences for this to work.