Atozed Forums

Full Version: ImageButtons are not visible at startup
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello.

At the initial start of the web application, the IWImageButtons are not visible. In order to see them, you need to click the "refresh" button in the browser. This happens in chrome and edge browsers. In Internet Explorer, the buttons are immediately visible. But just Internet Explorer is not the browser that I need.
This is a big problem for me, since the main menu of my program is made using IWImageButtons.

Help me please. How to force web application to update buttons on startup?
I am using IW 15.2.24 and Delphi 10.4.1

I have attached a screenshot of the test application, which shows the behavior of different browsers at startup. Additionally, I attach the source of the test case.
I'll try your project and see how it goes. Please hold on...
Hello, Alexandre.
I tested my example on Delphi 2007 + IW 11.0.65. When starting in Google Chrome, all ImageButtons are visible as expected.
How can I achieve the same in IW 15.2.24?
I really look forward to help.
(03-02-2021, 08:09 PM)Alexandre Machado Wrote: [ -> ]I'll try your project and see how it goes. Please hold on...

Hello, Alexander. I still haven't solved the problem. Should I wait for your answer?
Try to render the button's size. It's width is 0px.

You can set it design or runtime:
IWImageButton1.StyleRenderOptions.RenderSize := True;
(03-12-2021, 04:52 PM)microSOLUTIONS Wrote: [ -> ]Try to render the button's size. It's width is 0px.

You can set it design or runtime:
IWImageButton1.StyleRenderOptions.RenderSize := True;

I checked IWImageButton1.StyleRenderOptions.RenderSize: = True;

Thank you dear friend! Your tip helped. Now the buttons behave as I expected.