I'm using Delphi 7, Ent., SP3 on a WinXP Pro SP3 box.
I have a small application to display image thumbnails. There can be 5 to +500 thumbs on multiple tabs.
The layers of the form are as follows:
Components in italic
are created at run-time.
I need an event handler for each TImage or
each TLabel to launch Windows Image/Fax viewer on DblClick event. When the event handler fires, I need to have either the name of the associated TImage or the TLabel name.
How can this be done when the TImage and TLabel are created at run-time?
A screen shot of the demonstration application is shown below. Note, the Caption of the Labels is the TImage control name. The Name of the label is Lblx
where x=1 to x=n
PS. The name of the TImagex
can be stored in an array...