Native title bar buttons question


#1

I have a juce document window with minimize and close buttons, and two additional buttons on the right, one to make the window a windowshade, and one to keep the window on top of all others when pressed.

The close and minimize buttons are the red “X” and grey “—”, and I’d rather have the red and yellow circles that all other OSX applictaions have.

I tried setting setUsingNativeTitleBar() to true, but then I loose the two additional buttons I’ve added.

Is there a way to have the best of both worlds, the system close/minimize/maximize buttons on the left, and my custom buttons on the right?


#2

no, not possible - the native titlebar can’t have juce components on it, and you can’t put native components on the juce-based one. Might be possible to mix them up one day, but would be a real hassle to do!

What about using the ShinyLookAndFeel with it’s almost mac-like icons?


#3

[quote=“jules”]
What about using the ShinyLookAndFeel with it’s almost mac-like icons?[/quote]

That’s a very nice compromise. Thanks!


#4