Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Position on screen
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00408989
Message ID:
00409996
Vues:
23
>>>>>I have a form with scrollbars.
>>>>>Is there any way to determine the X,Y coordinates for the part of the screen that are shown?
>>>>
>>>>If I understand your question correctly, GetWindowRect() in the Win32 API should do the trick. You'll have to pass it a pointer to a RECT structure, but that isn't too tough (see MS KB article Q181289.
>>>
>>>Mike,
>>>
>>>What about _GetWRect() in Foxtools?
>>
>>Hi George,
>>
>>my foxtools does not have a function called _GETWRECT().
>
>Benn,
>
>_GetWRect() has been in foxtools since at least FPW 2.6. Unless this is an international version of the library, and for some unknown reason, it wasn't included. Try the following from the commnand window (after loading foxtools, of course):
DISPLAY STATUS TO STATUS.TXT NOCONSOLE
>lcstatus = FILETOSTR("STATUS.TXT")
>? AT("_GETWRECT", lcstatus)
The value will be greater than zero if it's there. In versions prior to 6.0, simply issue MODI FILE STATUS.TXT and use the find functionality of the editor.

Hi George,

you were right, it's there.

Do you know where I can find some information about the function and how to use it.
Benn Kjaer
MS Certified Professional - Visual Foxpro

"There is something rotten in the state of Denmark"
"Why make user-friendly programs, when there aren’t any friendly users :o)"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform