Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TxTbuttons class doesn't enable objects.
Message
From
14/11/1996 13:00:31
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00012180
Message ID:
00012246
Views:
33
>>>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 ...[removed to save space]

>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.

Keep in mind, that any object that you placed on the pageframe when
either of its pages was the current object at design time, becomes
hiearchically (S) dependent on that page. Apparently, the txtButtons
class looks for any and all textfields that are hierarchically dependent
to the form itself, not to its subordinates...In short, if you syncronize
the hierarchical dependency of both of your textboxes and make them
both be subordinate to the form and not to the pageframe, then you will
see the expected functionality work the way you thought it should :)
Some things are better be left unknown...NOT!!!
Previous
Reply
Map
View

Click here to load this message in the networking platform