Re: limiting size for a window

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
euphoric said...
dcole said...
CoJaBo said...

It probably doesn't work because this isn't the correct way to do it. You want to check the dimensions before the resize, not re-resize the window after it is resized.

I disagree, you have to check to dementions after the resize to see if they fit your requirments.

...and it does work. If the window is smaller than 400,300 then it snaps back to 400,300.

Don, CoJaBo is right.

CoJaBo is wrong. The code works.

You are right, it is better to check the size first, as the snap-back effect is ugly. But the thing to note here is that the code itself is functional under Windows, but CoJaBo's answer presumes the code is not functional at all.

CoJaBo is right in that there is a "correct way" to manage control dimensions, as he stated.

My issue is "doing it the right way." Yes, the code works. But my definition of "works" means "without ugliness." :)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu