With VFP9
I'm creating a container class "myContainer" which contains 3 labels: myLabel1, myLabel2 etc. The initial captions are set to "Title" and the 3 labels are arranged and colored so as to provide a 3D appearance.
I've added a new property "myFormTitle" with an initial value of "Title".
After dropping the class on a form, I'd like for the 3 labels to inherit any changes to the myFormTitle property.
Is it possible to place code similar to the following some place where the changes would take place in realtime while in the form designer?
myContainer.myLabel1.caption = myContainer.title
myContainer.myLabel2.caption = myContainer.title.
myContainer.myLabel3.caption = myContainer.title.
I tried the GotFocus() of the container with no luck.
Thanks in advance for your suggestions. Feel free to tell me a better way to do this.
CDavis
I'm creating a container class "myContainer" which contains 3 labels: myLabel1, myLabel2 etc. The initial captions are set to "Title" and the 3 labels are arranged and colored so as to provide a 3D appearance.
I've added a new property "myFormTitle" with an initial value of "Title".
After dropping the class on a form, I'd like for the 3 labels to inherit any changes to the myFormTitle property.
Is it possible to place code similar to the following some place where the changes would take place in realtime while in the form designer?
myContainer.myLabel1.caption = myContainer.title
myContainer.myLabel2.caption = myContainer.title.
myContainer.myLabel3.caption = myContainer.title.
I tried the GotFocus() of the container with no luck.
Thanks in advance for your suggestions. Feel free to tell me a better way to do this.
CDavis