Constrain Window Size

Hello,

I was wondering if there is a way in which I could limit how much a window can be scaled down?

A

How about this

void testApp::windowResized(int w, int h)
{
    int minWidth = 200;
    int minHeight = 200;
    
    if(w < minWidth || h < minHeight) 
    {
        setWindowShape(minWidth, maxHeight);
    }
}
1 Like

Great, thanks :smile: