Any way to limit window size?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • You can set up a condition and use the Window Control object to prevent the window being resized beyond certain dimensions.

    Compare two general values:
    WinXSize( "Window Control" ) > 800
    → Set horizontal size to 800

    Alternately, if you don't want them resizing it altogether, check "No Thick frame" in the application's display properties.

    Please login to see this link. - The encyclopaedia written by clickers, for the community.
    Please login to see this link. | Please login to see this link.

  • Just back from playing with windows in the other post :)
    I think you should accomplish that by thicking "no thick frame" in application properties - window
    This will disallow users to drag windows borders and resize application

    You can also use Window Control object
    setting an action to "always--> set window width/height"
    user could still resize application window dragging its boundaries,
    but after releasing mouse button, the window would return to your specified size

    a selection of my Fusion examples can be found Please login to see this link.

  • Neither of these quite work for me. The first does achieve what I'm looking for, but it's kinda ugly. If they resize beyond the limit, it still lets them, and flickers back and forth between where they're resizing to, and the size limit, until they release the mouse button.

    For the thick frame option, I do want them to be able to resize it, just not beyond certain sizes.

  • Yes, afaik, for windows programs, theres no control I've heard about to let people resize windows but cap the maximum size of the window. You can disable resizing, or you can resize the frame and have it flicker back which doesn't look good, but I'm not familiar with anything to set size limits. What you COULD do if its viable for your project, is load your application as a subapplication in a frame, then allow the user to resize the subapplication to be smaller than the frame window. You can mess around with how you'd go about doing that (should the frame always be full sized, and the subapp gets smaller while leaving black borders?).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!