Hi there,
I have a program which works but I'd like to change it significantly. Basically it displays pictures in a TImage control based on a number generated randomly by the press of a button. At the minute I am using code like this to display the various images;
Image1.Picture.LoadFromFile('C:\Temp\andy.bmp');
this is enclosed within an if loop and executed based on the integer 1 being returned others load different bitmaps on the return of a different number.
Is there any way that I can build all these bitmaps into the code at run time and then call them as I like or am I stuck having to make calls to external directories.
Thanks
PL
I have a program which works but I'd like to change it significantly. Basically it displays pictures in a TImage control based on a number generated randomly by the press of a button. At the minute I am using code like this to display the various images;
Image1.Picture.LoadFromFile('C:\Temp\andy.bmp');
this is enclosed within an if loop and executed based on the integer 1 being returned others load different bitmaps on the return of a different number.
Is there any way that I can build all these bitmaps into the code at run time and then call them as I like or am I stuck having to make calls to external directories.
Thanks
PL