8 |
The LA Fox Developer Newsletter
SeDtember 1998
From Robin’s Nest...
WindowState and More
by Robin Connelly, LA
Fox
Screen.WindowState
=
2
is the same as saying
ZOOM window screen max
(The oops technique
_screen... is a tiny bit faster about
0.3%, that is less than one percent difference, measure over
multiple 1000 iteration runs with both static and resized window
between commands. Actually, if the window is already maxi-
mized the oops technique wins by over 30% faster, but the
elapsed times for already maximzied were 3/100,000 of a
second compared to 2/100,000 of a second. Only way to even
geta timing is to iterate 1000 times or more.)
VFP help for WindowState
Specifies whether a form window is displayed as a maximized,
minimized, or normal window at run time. Available at design
time and run time.
Syntax
[Object.]WindowState[ = nState]
Settings
nState The settings for the WindowState property are:
Setting. Description
0
Normal
I
Minimized (minimized to an icon). If the main Visual
FoxPro window is minimized when Visual FoxPro is
exited, the main Visual FoxPro window isn’t displayed
before exiting. If you application displays a dialog before
exiting, be sure to set _SCREEN.WindowState to 0
before displaying the dialog.
2
Maximized (enlarged to fill the screen)
(Ed. Note: Robin is a valuable asset and resource to LA Fox.
He maybe reached at his company, QuoteDesk,
robin©quotedesk.com.J
Hot Tip (Con’t from adjacent column)
With VFP under win95, this results in the error “Entry Point
OpenComm not found”. To resolve this use:
OpenComm = RegFN(”OpenComm” , “®CII•
user.exe”)
Humor from the ‘Net
Contributed by Brad Schulz
1.
Men are from earth. Women are from earth. Deal with it.
2.
Age is a very high price to pay for maturity.
3.
I doubt, therefore I might be.
4.
To be intoxicated is to feel sophisticated but not be able to
say it.
5.
Never underestimate the power of stupid people in large
groups.
6.
The older you get, the better you realize you were.
7.
Procrastination is the art of keeping up with yesterday
8.
Don’t sweat the petty things, and don’t pet the sweaty
things.
9.
Give a man a fish and he will eat for a day. Teach him how
to fish, and he will sit in a boat and drink beer all day.
10. Women like silent men, they think they’re listening.
I If you ate pasta and antipasta, would you still be hungry?
12.
If work is so terrific, how come they have to pay you to do
it?
13.
If all the world is a stage, where is the audience sitting?
14.
If you try to fail, and succeed, which have you done?
Hot Tip.
How to resolve the error message “Entry Point Not found”
when trying to Register an API function using Foxtools’
RegFnØ?
In Fox 2.6, the FoxTools’ RegFn is used to register calls to the
Windows API. But sometimes “Entry Point Not found” error
message occurs. This error message comes when the speci-
fied function is not found in the libraries which are searched by
default. To resolve this, explicitly specify the name of the library
in which the function is found, as the fourth parameter to
RegFnO.
Example:
To register the function “OpenComm” under FoxPro 2.6 the
following is used:
OpenComm
=
RegFN(”OpenComm”,”~cII” ,“I”)
(Con't, adjacent column)
Page 8
|
8 |