8 |
The LA Fox Developer Newsletter
|
SeDtember 1998
|
From Robin’s Nest...
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 maximized 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
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.
(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:
|
say it.
groups.
things.
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?
it?
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 specified 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”)
|
Page 8
|
8 |