We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Pushbutton with image

Hi, I want to create a push button which, instead of text, displays an image. I created the image in my favourite image editor and saved it into a *.png file. Now it seems that AI can only use a *.ico file? Or didn't I find the way to use the *.png?
Thanks, Hans
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Pushbutton with image

Hello Hans,

This is quite strange.

The "Image Button" control should accept PNG images just fine.
Screenshot_203.png
Screenshot_203.png (76.93 KiB) Viewed 5161 times
As a matter of fact, the sample path points to an imaginary PNG file. :)

Are you not able to select a PNG file when you try to do so?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Re: Pushbutton with image

Hi Catalin, thank you for the reply. So It must be an image button, not a PushButton. That works!
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Pushbutton with image

Hello Hans,

Glad to hear it works as expected! :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Re: Pushbutton with image

I also played with simple PushButtons after I remembered that I can crate *.ico files in VisualStudio. This approach is more convenient because I don't have to create six images, and using transparent background, they have correct colors. However, I find it dificult to create icons that look equally nice in the installer as they do when I create them. Straight lines become ugly bent things and I just cannot find out the optimal size for the icon. The attached screenshot shows a button with an icon that originally had two V shapes with straight lines at a 45° angle. Now they are not only squiggly but also in ways different from each other.
2024-10-31_09h39_49.png
2024-10-31_09h39_49.png (407 Bytes) Viewed 4970 times
The question with the optimal size of course would also apply to an ImageButton. When I create the dialog in AI, buttons are 18x18 units. This is the same height as is displayed for Edit type controls.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Pushbutton with image

Hello Hans,

If possible, could you please provide the ICO file (or files, if you created more sizes of the same file) so I can run some tests on my end?

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hsc
Posts: 117
Joined: Wed Mar 02, 2016 2:55 pm

Re: Pushbutton with image

Hi Catalin, sorry but over my experiments, the file got lost. When this happens again, I'll return to this thread. Thank you anyway!
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: Pushbutton with image

No worries, Hans!

If you require any further assistance, please do not hesitate to contact me and I will gladly help.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”