Thanks for your reply
You're right, it is called the TitleBar (I had just forgotten that and
in haste, I called it the caption band :-[ ).
I tried using the windowstate property, but it does not work well in
some monitors.
That is why I want to test for sizes using the sysmetric functions.
However, some of their uses are cryptical to me:
what are 3,4,10,11,12,13 in the parameters?
I don't quite understand what is the sizable window frame, non sizable
window frame, double or panel window frame.
I mean, if I look at the VFP window, what portion of it do these 6
functions refer to?
Rafael
El 11/12/2012 05:49 p.m., Tracy Pearson escribió:
Rafael Copquin wrote on 2012-12-11:
I have an app that is used by users with different monitor sizes.
Some of my forms are wide and fit perfectly in monitors with a screen
resolution of 1280 x 1024, but some users have older monitors with
smaller screen sizes.
Some are square monitors, others are rectangular and some are older than
me :-)
I have incorporated the sizer class that _occurs when the user double
clicks on the caption band of the form_.
However, in some monitors the caption band does not display. It just
disappears under the app menu and all they see is a big screen, where
the top band is invisible and even the bottom part disapears.
I was trying to use the sysmetric functions, namely sysmetric(1) and
sysmetric(2), to automatically refit the form to a proper size, in the
init and even in the activate event.
It works, sort of, in some instances, but in some of them it does not.
Especially after I call a secondary form, to make a special calculation.
When focus returns to the main form, the size is all screwed up.
I need to know how to automatically doubleclick the top band, so even if
it does not show, the resizing class operates and shows the whole form
properly.
Is there any method/property that I can use? Or any special trick that
escapes me?
Rafael Copquin
Rafael,
When a user Dbl-Clicks on the Caption band..
I believe this is the TitleBar that also has the Min/Max buttons? If that is
the case, then why not just have the form.WindowState = 2
Tracy Pearson
PowerChurch Software
[excessive quoting removed by server]
_______________________________________________
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.