Button using an Icon

Hello community,

I would like to know if there is a way to have a button with an image using an icon from an icon Sheet/file. I know how to create a button from a sprite_button and a separate file for the image.

I thought about using the blt method (ex : contents.blt()), but I have no idea how to associate the resulting image to a button or sprite_button.

For example, I want to turn the icon index 45 from the IconSet file into a button. How could I do that ?

Any idea or suggestion ?

----
Vand

Original thread: https://forums.rpgmakerweb.com/threads/button-using-an-icon.85950/