Quantcast
Channel: Atozed Forums - All Forums
Viewing all articles
Browse latest Browse all 275

How to create control at runtime if using template?

$
0
0
Code:
procedure TIWForm1.btnTestAsyncClick(Sender: TObject; EventParams: TStringList);
begin
  var B := TIWButton.Create(Self);
  B.Parent := Self;
end;
this can be used to create control at runtime, however, when refresh page, the html element of button is lost and not redrawn.
This issue only occur when using template processor. if possible I did like to create the control at runtime, and not add extra thing to the template.html.

Viewing all articles
Browse latest Browse all 275

Trending Articles