>>I put the following code in the init of my form class: (To Ed: I didn't use activate because I don't want it running so much)
>>
>>THIS.rel_height = THIS.HEIGHT/768
>>THIS.rel_width = THIS.WIDTH/1024
>>THIS.height = _SCREEN.Height * THIS.rel_height
>>THIS.width = _SCREEN.width * THIS.rel_width
>>THIS.Resize()
>>
>>I used 768/1024 because my laptop can't go down to 640/480 and I needed to simulate a lower resolution.
>>
>>On my computer, this works fine. The form resizes and all the controls resize with it. You get the same form in miniature.
>>
>>On my test user's computer (640/480), it shrinks and resizes as well, but it cuts off the right end. It's as though the form ends in the middle of a bunch of controls. This happens if I use 768/1024 or 478/800 as my base height/width. If I then resize the form, all the controls stay in their relative positions.
>>
>>The other problem is that it autocenters before the resize. Is there a formula for centering the form, or a method to call?
>>
>>Thanks,
>>
>>-Michelle
>
>
>Not sure about your resizing problem, but setting the AutoCenter property to .T. again will force it to re-center.
Thanks. One problem down. :)
-Michelle
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement