Prevent Window Resizing
Posted: Wed Dec 01, 2010 4:46 pm
Ok, you have designed a data entry form that looks perfect. But if you resize the window either weird things start to happen or the perfectness of your creation is destroyed. Would you like to prevent people from resizing your window so that all the glory of your hard efforts can be seen in the correct setting?
Yes the above is suppose to be laced with a bit of sarcasm but there may be situations where you do not want the window to be resized by the end user. I recently encountered this and here is the solution.
If you set the minimum and maximum values to your default window size in your OpenWindow() command then the user is effectively prohibited from resizing the window.
Of course if you want them to be able to resize the window some but not a lot you could also set the values such that they have a little leeway and can actual resize the window some but not a lot.
Slyvnr
Yes the above is suppose to be laced with a bit of sarcasm but there may be situations where you do not want the window to be resized by the end user. I recently encountered this and here is the solution.
Code: Select all
WindowBounds(windowID, minimum x, minimum y, maximum x, maximum y)
Of course if you want them to be able to resize the window some but not a lot you could also set the values such that they have a little leeway and can actual resize the window some but not a lot.
Slyvnr