Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SYS(1270) returns screen object?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00339660
Message ID:
00339894
Vues:
17
>>Hi George.
>>
>>>> I don't think that this is goofy at all. If the mouse pointer is within the VFP main window, and no form is present it returns a reference to the _SCREEN object. If it's over the command window or an edit window or outside the main VFP screen it returns .F. This is consistent because the screen is an object and these other items aren't. <<
>>
>>SYS(1270) without the optional co-ordinates works as I would expect. But I tested by getting the current _screen co-ordinates using AMOUSEOBJ(). I then positioned my form so it was over those co-ordinates. When I used SYS(1270, x-coordinate, y-coordinate) to get the name of the object, it should have been the name of my form but it was 'Screen'.
>>
>>I think that it a little goofy. Unless my co-ordinates were bogus ;-)
>>
>Hi Marcia,
>
>Again, these are relative to the container, not absolute. It seems that SYS(1270) relies on absolute co-ordinates (to the desk top) rather than relative. So I don't think that the co-ordinates are bogus, they're just not what the function needs.


Your coordinates are bogus < BG >. If you give coordinates that are the absolute position of the form, you must take into account THE FORM's tile bar size. The title bar is not actually included in the form's dimensions. Try some numbers that are a little offset from the top and left coordinates and you'll see what I mean.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform