Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWGrid + TIWBSButton
#1
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:
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;
Now I want to use TIWBSButton, I added Parent to the code:
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 ?
Reply


Messages In This Thread
TIWGrid + TIWBSButton - by Rassamaha78 - 10-19-2019, 11:00 PM
RE: TIWGrid + TIWBSButton - by Alexandre Machado - 12-06-2019, 12:17 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)