Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Mouseover - Picture
Message
De
12/12/1999 19:37:20
 
 
À
12/12/1999 19:17:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00300887
Message ID:
00302524
Vues:
30
>>You can poll the mouse to ask what object it's above using AMOUSEOBJ().
>
>Is that similar to SYS(1270)?

It returns an array of data about the mouse position rel;ative to VFP obejects; the following is from the VFP6 Help file

Creates an array containing information about the mouse pointer position and the object over which the mouse pointer is positioned.

Syntax

AMOUSEOBJ(ArrayName [, 1])

Returns

Numeric

Arguments

ArrayName

Specifies the name of the array containing the mouse pointer information. If the array you specify doesn't exist, Visual FoxPro automatically creates the array. If the array exists and isn't large enough to contain all the lines in the memo field, Visual FoxPro automatically increases the size of the array. If the array is larger than necessary, Visual FoxPro truncates the array.

The array that is created contains four rows. The following table describes the contents of each row in the array:

Array row Description
1 Contains an object reference to the object over which the mouse pointer is positioned when AMOUSEOBJ( ) is executed.
2 Contains an object reference to the container of the object over which the mouse pointer is positioned when AMOUSEOBJ( ) is executed.
3 Contains the horizontal (X) coordinate in pixels of the mouse pointer, relative to the container of the object over which the mouse pointer is positioned when AMOUSEOBJ( ) is executed.
4 Contains the vertical (Y) coordinate in pixels of the mouse pointer, relative to the container of the object over which the mouse pointer is positioned when AMOUSEOBJ( ) is executed. .Signature { margin-top: 12px; color: #666666; } .Signature a { color: #666666; }
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform