Matrix of unknow numbers of pictures
Hi,
Working with BCB5 and FR3.
I need to print a matrix of pictures but the matrix changes from 1 x 1 to 5 x 7. How Can I insert TfrxPictureView objects on the fly to do that.
Thanks in advance,
Rinaldo
Working with BCB5 and FR3.
I need to print a matrix of pictures but the matrix changes from 1 x 1 to 5 x 7. How Can I insert TfrxPictureView objects on the fly to do that.
Thanks in advance,
Rinaldo
Comments
Probably place a pictureview object in an unattached childband the band can be made to show by using the engine.showband(bandname) method you will need to write code to load the picture into the picture view into the picture view and size to suit in obpevent of picture view object
you will also need several variables to track engine.curx, engine.cury props and store original curx cury settings, in obpevent and oap events.
Without specific knowledge of what you are working with(pictures stored in dbfields,where size info stored, etc.. ) and what you expect the output to look like it is very hard to be specific.
I am loading pictures from files. I have a preliminary version working. I decided to put 35 pictureview objects in design time. They are with visible propertie setting to false. At runtime, I set them true as much as I need after loaded from file, positioned and resized. I don't know if it is the best way but for now it's working for me.