10-19-2019, 11:00 PM
(This post was last modified: 10-19-2019, 11:01 PM by Rassamaha78.)
Hello. I am rewriting my project from regular IW to IWBootstrap (3).
I have a table (TIWGRid) in which several dynamic buttons are created, the code was like this:
Now I want to use TIWBSButton, I added Parent to the code:
The buttons on the page are displayed, but the page does not load to the end, the loading animation icon is constantly visible. How to add TIWBSButton to TIWGrid ?
I have a table (TIWGRid) in which several dynamic buttons are created, the code was like this:
Code:
with grdGetNumber.Cell[ i, 4 ] do
begin
Control := TIWButton.Create( Self );
with TIWButton( Control ) do
begin
Caption := 'Buy';
Width := 60;
Height := 24;
Name := 'BTNGETNUMBER' + IntToStr( i );
OnAsyncClick := OnBuyKeyAsyncClick;
Tag := i;
end;
end;
Code:
with TIWBSButton( Control ) do
begin
Parent := TWinControl( grdGetNumber );
BSButtonStyle := bsbsPrimary;
...
end;
The buttons on the page are displayed, but the page does not load to the end, the loading animation icon is constantly visible. How to add TIWBSButton to TIWGrid ?