Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running code from parent class/Setting focus
Message
From
18/11/1996 13:02:04
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00012644
Message ID:
00012648
Views:
27
>so this is my first question :
>I have a form in 3.0 generated with the wizard, I used
>the 'txtbuttons' class, what I need is to add code to
>the click method of one of the buttons and execute
>the original code in the parent class, but it doesn't
>seems to work, what I'm doing is adding this lines
>in the click method of the edit button :
>
>wait 'This is my click..' window nowait
>this::click()
>and it doesn't work

you shoudl substitute the this with the name of the object whose click mehtod you want to call

>also I tried this.parent.click() and reported me that 'this object doesn't inherit from class THIS.'
>what I'm doing wrong ?

this.parent.etc is completely different thing - here you refer to the container that holds the current (this) contro

>My second question is how do I make and object the current object at run time, in the old days I used to
>do something like :
>_CUROBJ=OBJNUM(m.MyVariable)
>but now the CurrentObject property that substitute
>_CUROBJ is read only at run time, what can I do ?
you just call the contol's SETFOCUS method to move the focus to that control

Arnon
Previous
Reply
Map
View

Click here to load this message in the networking platform