Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API to get the position of a browse window
Message
From
13/11/2017 04:24:58
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01655526
Message ID:
01655530
Views:
46
>I'd like to get the position and size of an existing browse window. Could anyone tell me any API which gives me the information?
>
>The browse window is created by a normal BROWSE command without the "name" clause.

First, what Tore said, I concur.

Second, you can use the title clause in the browse command to set the name of the browse window to what you want it; otherwise it should be equal to the alias of the cursor but I remember some cases when it was not. Then you can use wontop() and related functions, plus window related commands to access that window. But still, that syntax is age old, and I don't think anyone is using it nowadays - I don't.

Or, if you don't want to use the name clause, create a blank form. Set its properties the way you like it (caption, sizing, border etc).
xx=createobject("form")
xx.Width=400
xx.Height=344
* more properties set here
BROWSE window (xx.Name)
So instead of doing a browse and then getting its position, set the position in advance and use it.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform