Size of toplevel window


#1

Hi Jules,
I’m having difficulties sizing/resizing toplevel windows which are using native title bars (only tested native title bars, don’t know about juce title bars).
Basically, my problem is setting a proper “client size”, i.e the size inside the frame. I’m guessing that setBounds (and the related calls) only set the "outer size"
which in a way is quite logical. I’m calling for a “setClientBounds” member, which simply adds the dimensions of the frame title bar.

Thanks for listening!


#2

ResizableWindow::setContentComponentSize() ?


#3

Ah, that sounds like what I was after. I was inheriting the TopLevelWindow itself, but I might just as well use the ResizableWindow.
Thanks for the info!