I need some helpw with this. I have a new component (TCustomControl descendant). The component has a Caption property declared as:
In the OnCreate method, I have the following code:
constructor TPAG_Label.Create(AOwner: TComponent);
TextCase := csUpperCase;
AutoSize := false;
Color := clWhite;
BorderColor := clWhite;
Alignment := taLeftJustify;
Layout := tlTop;
Caption := Name;
In this instance, the caption of the component takes the name of the control (which is what I want). However, if I now type some text into the caption property, or change the component name, the caption doesn't refresh at all.
Can someone give me some guidance please?