Problems with Window Resizing

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.
  • I'm trying to resize my application so that it fits on a 1080 display as it was originally made on my Surface Pro 3 with a higher resolution. The application is 640x1136 and I'm trying to resize to 320x568. I used the Window Control object and managed to achieve this but I had to resize to 336x626 to achieve a 320x568 resolution (I assume due to window borders), is there a more logical way of doing this? As if a user has window borders of a different size then I assume the frame won't display at 320x568...

    Also, upon resizing, an Edit Box and Rich Edit Box contained within the frame have disappeared, and text has not resized accordingly. Is there an easy way to fix this?

  • Using the Window Control object, try this:

    Set Horizontal Size:
    568 + WinXSize( "Window Control" ) - ClientWidth( "Window Control" )

    Set Vertical Size:
    568 + WinYSize( "Window Control" ) - ClientHeight( "Window Control" )

    Check out my Game on Itch.io
    Please login to see this link.

  • Thanks, that's solved quite a few problems I had!

    My only issue now appears to be that the text does not resize accordingly. Is there a simple fix to this that doesn't evolve going through and changing the text size of every Edit Box and Rich Edit Box?

  • What DaveC said is right, but you have to take the window borders into account or it'll look weird.

    How I did it before is I took a screenshot and blew up the screenie in MS Paint, then counted how many pixels wide your border is (right and left / both top and bottom- remember the top is a lot wider and I think my bottom was 6 pixels but I could be wrong).

    Factor those measurements into the equation and that might help!

    Weebish Mines, my retro Metroidvania!
    Please login to see this link.

Participate now!

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