Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TxTbuttons class doesn't enable objects.
Message
 
To
13/11/1996 17:10:44
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00012180
Message ID:
00012232
Views:
32
>>Hi guys, is me again.
>>I have a form, which have a pageframe with 5 pages
>>and then I added to the form the class
>>'txtbuttons' from the wizard visual class library,
>>all my text boxes are contained in the page, that is
>>the hierarchy of one of my text boxes in page1 would be:
>>thisform.pageframe1.page1.txtFieldName1
>>where txtFieldName1 is disabled by default.
>>Then here is my problem, when I click on 'Edit' or
>>'Add' in my txtButtons class it doesn't enable any of my
>>text boxes, I looked at the code in the click event of
>>the visual class txtButtons and it looks fine to me,
>>I don't know what to do.
>>Any suggestion ?
>>Thanks in advance.
>>luisg@netrunner.net
>
>If the parent class method is supposed to disable/enable any other
>objects on the form, then make sure it uses a relative reference
>to those objects. In this case ensure that hierarchy of the class
>structure that is assumed in the parent class remains the same in
>your derived class. Also see if you added any code in Click method
>of your derived txtButtons class. If you did, then insert DODEFAULT()
>statement at the beginning of the method to let the parent class
>method execute itself, otherwise you are simply overwriting the
>functionality of the parent class.
Thanks Robert,
Let me explain you in detail what the problem is, I you have a form
with 3 objects, one object is in the form itself, lets say a texbox,
the second object is a pageframe with 2 pages, and the third object is
another textbox in page1 of pageframe1, both texboxes are bound to
two differents fields in Mytable, something like :
ControlSource1=MyTable.field1 and ControlSource2=MyTable.Field2.
Both textboxes are initially disabled.
Then you add to the form the 'txtbuttons' from the wizard class and
run the form,click on 'Edit' or 'Add' and the textbox that is in the
form gets enabled but the one that is in the pageframe doesn't ?
Got it ?
If you look at the method 'setallprop' in the txtbuttons visual class
you'll know what I'm saying.
Thanks again.
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform