Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
>>>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement