Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ImageButtons are not visible at startup
#1
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.


Attached Files Thumbnail(s)
   

.zip   Project3.zip (Size: 100.19 KB / Downloads: 1)
Reply
#2
I'll try your project and see how it goes. Please hold on...
Reply
#3
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.
Reply
#4
(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?
Reply
#5
Try to render the button's size. It's width is 0px.

You can set it design or runtime:
IWImageButton1.StyleRenderOptions.RenderSize := True;
Reply
#6
(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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)