Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API to get the position of a browse window
Message
De
14/11/2017 10:19:55
 
 
À
14/11/2017 05:07:53
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:
01655588
Vues:
50
>>>>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.
>>>>
>>>>TIA
>>>
>>>It may be a silly question, but why don't you use the Name clause?
>>
>>Because I want to write a program to re-position and resize the browse windows which were created by many old programs. Re-coding the old programs is possible but involves much work.
>
>Then the least work is involved with creating the form beforehand - create a form class with the properties you want and some code to position and size it the way you want, perhaps store the position and size in some table, and just add a createobject line before the browse, and add the ... window (loForm.name) in the browse command. That's about six words per browse.

tsk... too much typing ;-)
create a function windowedBrowse (tcParam) doing all that, search for browses, replacing them with "= windowedBrowse([" and add ending "])" to the end of program line, perhaps via macro ;-))
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform