TIWButton.Image bug

<< Click to Display Table of Contents >>

Navigation:  Forum >

TIWButton.Image bug

Forum link

 

 

 


 

09-25-2023, 04:56 AM:

 

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

 

 

 


 

09-25-2023, 10:13 PM:

 

I suppose you are using the latest IW vesion?

 

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

 

Cheers,

 

 

 


 

09-26-2023, 01:37 AM:

 

(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.

 

 

 


 

10-04-2023, 02:09 AM:

 

(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.