Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Point method
Message
 
À
16/03/2009 11:59:40
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01388348
Message ID:
01388433
Vues:
88
>>>>I used thisform.point to return pixel at 50,50 on a form that is 100,100. If I place a window from a different program over the vfp form covering the pixel at 50,50.... thisform.point returns -1 as if the pixel at 50,50 is no longer there. Is there any way to change this behavior?
>>>
>>>Joe,
>>>Are you trying to get pixel colors? You can use this code to get color from anywhere on screen:
>>
>>Yes I want the pixel color of the vfp form. Not the whole screen. It seems that thisform.point only works if the form is not under a different window?
>
>Joe,
>I sent you code that does that via winAPI. I don't know how point method does it. I remember I tried it years ago and wasn't satisfied.
>
>(I didn't mean whole screen but any where on screen, where ever you move your mouse to, even on a second,third monitor and need not be a VFP form - better try running to see what I meant).
>Cetin

I ran it and I knew what you meant. My point was that I want a pixel color of the vfp form and not something that is stacked over it.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform