| Mirage Source http://miragesource.net/forums/ |
|
| Form Size?!?! http://miragesource.net/forums/viewtopic.php?f=201&t=3372 |
Page 1 of 1 |
| Author: | Ramsey [ Sun Feb 10, 2008 10:09 pm ] |
| Post subject: | Form Size?!?! |
I am trying to make the size of my frmMirage 800x600. But the height is 6240 and width is 7770 and its somehow smaller than 800x600, how do I fix this? |
|
| Author: | Stomach Pulser [ Sun Feb 10, 2008 11:04 pm ] |
| Post subject: | Re: Form Size?!?! |
Change the scale height/width? |
|
| Author: | Lea [ Sun Feb 10, 2008 11:18 pm ] |
| Post subject: | Re: Form Size?!?! |
The measurement is in Twips. There's a constant called TWIPS_PER_PIXEL or something like that, so multiply your number by that constant and it will be the correct size. That's how you do it programatically, anyways. |
|
| Author: | Ramsey [ Mon Feb 11, 2008 12:18 am ] |
| Post subject: | Re: Form Size?!?! |
Stomach Pulser wrote: Change the scale height/width? I tried that before and I tried it again and it does nothing. Am I doing something wrong? |
|
| Author: | Rian [ Mon Feb 11, 2008 1:22 am ] |
| Post subject: | Re: Form Size?!?! |
Do what Dave suggested. |
|
| Author: | Lea [ Mon Feb 11, 2008 4:25 am ] |
| Post subject: | Re: Form Size?!?! |
You cant set it via the scale width/height, only the actual width and height. That box is more for application designers, where you drag the form to a size that looks nice and isn't critical. |
|
| Author: | Tony [ Mon Feb 11, 2008 6:32 am ] |
| Post subject: | Re: Form Size?!?! |
Just resize manually and look at scaled while your doing it (: |
|
| Author: | Robin [ Mon Feb 11, 2008 11:40 am ] |
| Post subject: | Re: Form Size?!?! |
Screen.TwipsPerPixelX Screen.TwipsPerPixelY That's the actual constants Dave. |
|
| Author: | Ambientiger [ Mon Feb 11, 2008 2:51 pm ] |
| Post subject: | Re: Form Size?!?! |
Is the amount of Twips-per-pixel variable? I've always used 15 Twips to each pixel and not had a problem. Ramsey, if you set the ScaleMode for the Form in question to 3-Pixel and then set the width/height to 12,000 and 9,000 respectively that should sort things out. I don't think the form defaults to pixel measurement, however, anything you put on that form will if you change the ScaleMode. |
|
| Author: | Lea [ Mon Feb 11, 2008 3:50 pm ] |
| Post subject: | Re: Form Size?!?! |
Thanks Robin I wouldn't think the value would be different. It may be for different screen resolutions or different video cards or whatever. Either way, it wouldn't hurt to use it. |
|
| Author: | Ramsey [ Mon Feb 11, 2008 4:39 pm ] |
| Post subject: | Re: Form Size?!?! |
I got it guys, thank you. Theres 15 twips per pixel. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|