Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this new in VFP 9 or it was always this way?
Message
 
 
À
29/08/2005 13:29:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01044798
Message ID:
01044828
Vues:
13
>>>>I have a form and a container with bunch of textboxes and labels.
>>>>The textboxes of the container have ControlSource set to alias.fields.
>>>>I dropped the container on the form.
>>>>Then I was changing the value of the ControlSource of some of the textboxes in the container. But the form was still "looking" at the ControlSource set initially. That is, I thought that the form should use the latest change of the ControlSource textboxes but it does not work that way.
>>>>
>>>
>>>Where are you making the change, on the form or in the textbox class? If the latter, that's normal. If it's on the form, something else is going on.
>>>
>>>Tamar
>>
>>I was making the change in the textbox on the container. I don't understand why you are saying that this is normal. I thought the form would inherit all the properties of the container and therefore the properties of the textboxes of the container. But since you are saying it is normal, and I have no doubt that you know this better than I, I will just have to accept it as fact.
>>
>
>If you're making it in the container class, the change should carry through unless you've overridden it on the form. (Right-click and reset to default)
>
>I don't know why you're seeing that behavior unless there's another level of subclassing involved that you haven't mentioned.
>

So I guess my understanding of how things should work were right. But something was not working. And I have not changed anything on the form (like right-click and reset to default). And this is a very simple form. But as I said in the other message, by instantiating the container in the INIT method of the form (that is, adding it on-the-fly), I don't have the problem.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform