Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help using SYS(1270)
Message
De
26/09/2003 17:30:01
 
 
À
26/09/2003 17:10:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00832850
Message ID:
00832856
Vues:
19
I assume this is for a button that operates on the target object which was added dynamically somehow.

What I would do instead is one of two things:

1. In the code that dynamically adds the target object, also add the corresponding button, with a reference (name or object) to the target object. e.g.
** pseudo-code
lcNewName="newName"
lcNewButton="cmdFor"+lcNewName
oForm.NewObject(lcNewName, cClass, cLib)
oForm.NewObject(lcNewButton, "yourCmdButtonClass", "yourlib")
oForm.&lcNewButton..cOperatesOn = lcNewName
* etc.
2. Add a container class with just the target object and commandbutton.


HTH

Trey

>Hello,
>
>I need to find the first object to the left of a command button.
>
>I'm trying to take advantage of sys(1270), but the problem is, SYS(1270) tells me which object exists in a given position relative to the windows desktop, but I don't know how to determine the position of the button relative to the windows desktop.
>
>TIA,
>Alex
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform