William Pew wrote on 2015-03-06: 
>  Hi Tracy!
>  
>  Thanks for the quick reply. Actually what I'm trying to do is 'automate'
>  a feature that's already built into mwresize. If you right click the
>  resizer tab in the bottom right hand  corner of the form mwresize pops
>  up a small menu of choices (75%, 85%, 95%, etc) which, when you make a
>  selection, resizes the form and all of its controls to the requested
>  percentage of the forms original size. What I would like to do, in the
>  absence of auto-resizing to match the current screen resolution, is to
>  set up a public variable which would contain a number to be used as a
>  fixed choice without having to use the menu when the form opens. This
>  way I can get the resolution fairly close to what looks best. Thus, if
>  the form is so large because of a lower resolution that you can't get at
>  the resizer controls, you can set this (maybe during the initial system
>  configuration at install time) to get the form resized automatically.
>  
>  Kind of a 'back door' approach but a viable solution if I can get it to
>  work.
>  
>  Bill
> 

Bill,

I would have a property on the form class "FirstActivate" = .T.
In the Activate event, I would determine the max size of the form using  
    _Screen.ViewPortHeight and _Screen.ViewPortWidth
Then I would call the method the popup calls with an appropriate parameter
to accomplish your task.

Tracy


Tracy Pearson
PowerChurch Software


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to