Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIWButton.Image bug
#1
When using TIWButton.Image.WebFontClass to create icon button, adjusting some property of the button (Css, Visible, Enabled) asynchronously will make the icon disappear.
To replay, create a IW project
1) In IWAppForm, add font awesome to contentFile (https://cdnjs.cloudflare.com/ajax/libs/f...me.min.css).
2) Add 2 TIWbutton.
3) 1st button set TIWButton.Image.WebFontClass to 'fa fa-plus'.
4) 2nd button create OnAsyncClick Event.
Code:
procedure TIWForm1.btnBugAsyncClick(Sender: TObject; EventParams: TStringList);
begin
// TIWControlImage for icon button break if change any of the below one in async
  btnIcon.Css := 'test';
//  btnIcon.Visible := not btnIcon.Visible;
//  btnIcon.Enabled := not btnIcon.Enabled;
end;
- For sample attached (IWButtonBug.zip), click on bug button to replay the issue


Attached Files
.zip   IWButtonBug.zip (Size: 7.42 KB / Downloads: 2)
Reply


Messages In This Thread
TIWButton.Image bug - by RenSword - 09-25-2023, 04:56 AM
RE: TIWButton.Image bug - by Alexandre Machado - 09-25-2023, 10:13 PM
RE: TIWButton.Image bug - by RenSword - 09-26-2023, 01:37 AM
RE: TIWButton.Image bug - by RenSword - 10-04-2023, 02:09 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)