Atozed Forums
TIWButton.Image bug - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html)
+--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html)
+---- Forum: English (https://www.atozed.com/forums/forum-16.html)
+----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html)
+----- Thread: TIWButton.Image bug (/thread-3511.html)



TIWButton.Image bug - RenSword - 09-25-2023

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/font-awesome/4.7.0/css/font-awesome.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


RE: TIWButton.Image bug - Alexandre Machado - 09-25-2023

I suppose you are using the latest IW vesion?

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

Cheers,


RE: TIWButton.Image bug - RenSword - 09-26-2023

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


RE: TIWButton.Image bug - RenSword - 10-04-2023

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