Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help using SYS(1270)
Message
From
26/09/2003 17:30:01
 
 
To
26/09/2003 17:10:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00832850
Message ID:
00832856
Views:
18
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform