01-23-2024, 04:16 PM
I do something similar and found that the template must still contain a tag for the control and the control also be properly named:
Template snippet:
Creation:
Template snippet:
Code:
<div class="row"><div class="col-sm-12 text-center p-1">{%btnAdmin%}</div></div>
Creation:
Code:
TIWButton *b = new TIWButton(this);
b->Parent = this;
b->Name = "btnAdmin";
b->Caption = "Admin";
b->Css = "btn btn-secondary form-control";
b->HotKey = 'A';
b->StyleRenderOptions->RenderFlags = TRenderFlags() << rfRenderVisibility;