Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dynamic form design..
Message
 
 
To
24/05/2001 05:45:22
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00510753
Message ID:
00510840
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>>Hi all,
>>
>>I have to write a form which contain certain amount of fixed size objects, the form is needed to auto-detect the resolution of the user's monitor and display maximum possible number of objects in it.
>>
>>But I dont know how to detect the screen resolution, any help please?
>
>BTW Jimi,
>You could also set form to maximize and check form height, width too. You could also use scrollbars (if VFP6) to use more objects.
>Cetin

One thing to note about using this technique is the maximized settings do not take effect until the form is displayed. If you set the form's WindowState property in the property sheet or set the property in the Init of the form, the Height and Width properties will show the settings of the form as it was in the form designer.

With that in mind, I think it is better to go with Cetin's other suggestion of using Sysmetric() and also making the form maximized. With the function, you willbe able to determine beforehand the size of the form and position controls appropriately. Then when the form is displayed in the Show method, it will be maximized and the controls will already be in position.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform