
Screen resolution auto adjusting?
were released on Fri, 05 Nov 1999 12:17:09 -0500 bearing the
following fruit:
Quote:
>> on Thu, 4 Nov 1999 15:42:43 +0100 bearing the following
>> fruit:
>> >Hello,
>> >I' ve got a normal exe form "form1" which is full of picture's and objects
>> >under a resolution of 1024 x 768.
>> >I've a start the program under a lower resolution say 800 x 600, not
>> >everything in the form is displayed. Some object's disapear partly out side
>> >the form.
>> >I'de like to see the form and everything in it automacticly scaled....
>> >Any idea's??
>> Design your forms in 600x480 then you'll never have any
>> problem. The only other thing you can do is add code to
>> resize/move the controls on your form when the form size
>> changes.
>> D
>Can you show some examples of how this is done?
If the form resize event
You will need to set a minimum size for the form, the
easiest way to do this is:
If If width < 8000 Then width = 8000
If Height < 4260 Then Height = 4260
Resize controls:
ListView1.width = ScaleWidth - 1365
ListView1.Height = ScaleHeight - 1050
Or just move them in relation to the new form size:
Command1(1).Left = ScaleWidth - 1230
Command1(1).Top = ScaleHeight - 600
NB: the above examples are made up.
D