Since 30 May 2018 update, the LabelCaption of a Tadvedit can be set or be empty but can not be changed or re-set after being empty.
What exact steps to execute? Does this concern design-time ? run-time ? Both?
I cannot see an issue here to set the LabelCaption to a text or empty both at design-time and run-time.
put a tadvedit in a form and set labelcaption twice to see it
I did a quick fix in TCustomAdvEdit.SetLabelCaption with the following change:
if (FLabel = nil) and (Value <> '') then
begin
FLabel := CreateLabel;
FLabel.Caption := Value;
UpdateLabel;
end
else
if Assigned(FLabel) {and (Value = '')} then
begin
FLabel.Caption := Value;
UpdateLabel;
end;
begin
FLabel := CreateLabel;
FLabel.Caption := Value;
UpdateLabel;
end
else
if Assigned(FLabel) {and (Value = '')} then
begin
FLabel.Caption := Value;
UpdateLabel;
end;
My advedit's version : 3.4.6.1
That clarified it. Thanks for reporting. We've applied a fix for this.