Dawntide Posted August 5, 2012 Author Share Posted August 5, 2012 Hey,I want to change the Window size of my game, but in this tutorial:http://www.touchofdeathforums.com/smf2/index.php/topic,67409.0.htmlHe tells me to change Height and Width, but my Height is 9345 and my Width is 11655\. Why are these values so damn high? My window is in the default size.My Scale.Height is 595 and my Scale.Width is 771\. So what is the diffrence and how can i fix my damn high and weird values?thanks Link to comment Share on other sites More sharing options...
zerohero Posted August 5, 2012 Share Posted August 5, 2012 A valid question, hopefully this clears it up for you -Essentially they are to get an exact width and height of forms -> ScaleWidth and ScaleHeight are used to get the forms width and height excluding it's titlebar and bordersHeight and Width are auto set when you scale the client up or down. Hope this helps! Link to comment Share on other sites More sharing options...
jcsnider Posted August 5, 2012 Share Posted August 5, 2012 In a standard vb6 forum, the height and width are set to be measured in twips. Now, in the form properties you can set the scale mode to be several different types, one of those scale modes (the one we use) is pixels… thus, the scalewidth/scaleheight is the width/heights in pixel value. Link to comment Share on other sites More sharing options...
Dawntide Posted August 5, 2012 Author Share Posted August 5, 2012 But the screen resolution for example is in pixels too, isn't it? So 9000 pixels would be ridiculous high. Shouldn't Height and Scale.Height be near together and do not have a diffrence of over 8000 pixels?! Link to comment Share on other sites More sharing options...
jcsnider Posted August 5, 2012 Share Posted August 5, 2012 No. Set your scale mode to pixels. (It is a form property) then randomly input values into width/height until you get your scale width and scale height where you want it (800 by 600) or w/e. The values will be very different because 1 twip does not equal 1 pixel. Link to comment Share on other sites More sharing options...
Dawntide Posted August 6, 2012 Author Share Posted August 6, 2012 My scale mode is at pixels and wasn't ever changed, but the values are weird in my opinion.![](http://s7.directupload.net/images/120806/k29hkgxl.png) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now