Hi,
Thanks for the answer!
In fact, I would like to improve an editor (written with Delphi 7), i.e, to make it more flexible related with LaTex edition.
So, my basic idea is to enable the user add, remove or change images in a specific folder (the images are really of different sizes) and, in run time, the program will read these files and show all images in the user interface.
As soon as the user to choice one image (with mouse or keyboard) it will add the textual description of the image inside of the editor.
For example, if a have the images: 'alpha.bmp' (W=11; H=18), 'epsilon.bmp' (W=6; H=18), 'gama.bmp' (W=10; H=18), 'subiota.bmp' (W=4; H=18), etc, stored in a folder named 'Greeg', I need to load all (run time) and show it in a suitable way, for the user choice what he want to use.
Regards,
JCFaria
Main Topics
Browse All Topics





by: developmentguruPosted on 2007-10-30 at 12:56:34ID: 20180572
I would need to know more about what you want to accomplish. An Image List only holds one size of image so it is not likely a good candidate. Again, due to the probability that the images are different sizes, a TDrawGrid is probably not the best choice. Do you want to be able to view the images one at a time?
If so, I would create your main form with a list box left aligned, a splitter, and a TScrollBox client aligned and a TImage inside the scroll box. You can put buttons on the form to add or remove from the list box which would simply be a list of file names and locations. When the user clicks on a particular file in the list you could call the TImage control's Picture.LoadFromFile. If you set the TImage's AutoSize property to true then it will become the needed size and the scroll bars will be there due to the scroll box.
If you were wanting something else entirely I would need more details.
Let me know.