1

Base on this question:

How to create an image button in Inno Setup?

How to fill the entire button with the image in Inno Setup? At the same time use different images on one button such as for, mouse click, mouse hover, disabled and normal view?

Codename K
  • 890
  • 4
  • 23
  • 52
  • 1
    In fact, you can use an image **instead** of a button (set the `Visible := false` button property and place the image in its place) and set event handlers to the image that will do what the button does. So you can also set the image to change when you click and so on. I may post an example later. – yonni May 22 '22 at 08:49
  • 1
    See also this example: https://github.com/KngStr/Inno-All-in-One-Setup/blob/master/IsPack_Restools/Inno_ISCmplr_Setup/Example/Example_MouseEvent_ImgBtn.iss – yonni May 22 '22 at 09:01
  • Thanks. However, is it possible to do this with the regular buttons? – Codename K May 22 '22 at 11:48
  • 1
    **I did not check this**, but it seems that in the post you linked there is a solution for this as well (if you change the parameters X and Y and make sure that the size of the uploaded image matches the size of the button). Of course you have to hide the caption on the button in such a case... try and succeed! – yonni May 22 '22 at 14:55
  • 1
    @yonni I do not think that (my) code can do what you claim. Though indeed your idea with using images to implement a button is imo the easiest approach. – Martin Prikryl May 22 '22 at 17:39

0 Answers0