Atozed Forums

Full Version: TIWButton.Image bug
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
I suppose you are using the latest IW vesion?

I'll have a look and get back to you.

Cheers,
(09-25-2023, 10:13 PM)Alexandre Machado Wrote: [ -> ]I suppose you are using the latest IW vesion?

I'll have a look and get back to you.

Cheers,

No, I was using 
Intraweb version: 15.2.69
Delphi version : 11.3

Thank you.
(09-25-2023, 10:13 PM)Alexandre Machado Wrote: [ -> ]I suppose you are using the latest IW vesion?

I'll have a look and get back to you.

Cheers,

I noticed that this was mentioned in a bug fix for IW version 15.3.0 patch notes. Sorry for the inconvenience.