Creating Image Viewer Component
Posted on 2007-11-25
Hi, I am making an Image viewer component in Delphi 7 that displays only bmp's. I have placed all of my sub components in a TPanel, including
an Image Box
a Load File Button
An exit (close) button
A label that displays the file size
I have managed to code where I want my buttons , labels and image box to be, but what I want to know is how I add events to the buttons, what code do I add to make the exit button close and to open a bmp?
I first made an application with all of the functionality working, just need to know how to transfer that to the compnent code?
Any ideas would be gratefully appreciated.