Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to create control at runtime if using template?
#1
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.
Reply


Messages In This Thread
How to create control at runtime if using template? - by RenSword - 01-23-2024, 09:34 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)