WebLabel problem with multi-line string

WebLabel is not displaying the caption property once you've set it to a multi-line string.

once you've assigned a multi-line value to WebLabel.Caption, it no longer reflects forthcoming changes. (in this small example, with ShowMessage I can check that the Caption property is actually updated with the correct values, but it's not displayed anymore ).

image

procedure TForm1.BtnMultiLineClick(Sender: TObject);
begin
  weblabel1.Caption := webmemo1.Text;
end;

procedure TForm1.BtnSingleLineClick(Sender: TObject);
begin
  if webmemo1.Lines.Count > 0 then
    weblabel1.Caption := webmemo1.Lines[0]
  else
    weblabel1.Caption := '';
end;

procedure TForm1.BtnCheckClick(Sender: TObject);
begin
  showmessage(WebLabel1.Caption);
end;


image
image
image

We traced & solved this issue. The next update will address this.

Hello,

I just installed Web Core 2.4.5.1,

WebLabel now reflects changes when assigning multi-line string,
but the problem is still there when I assign a single-line string after having a multiline string assigned to the Caption property

here a small test project to highlight this :
test multiline label.zip (8.9 KB)

thanks to all the TMS team for the reactivity ;p

We applied a fix for that. It will be in the next update.

1 Like