Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API to get the position of a browse window
Message
De
13/11/2017 04:24:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Divers
Thread ID:
01655526
Message ID:
01655530
Vues:
42
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform