PDA

View Full Version : How to center the picture ?



Jacques Delannay
27-Jul-2012, 06:25 AM
Hi,
is it possible to center the picture in the cimageContainer ?
My cGalleryImageContainer has width bigger as the high.
When I show a picture wich is in "portrait" the picture appairs on the left of the container.
Is it possible to have it centered ?

Jacques

Vincent Oorsprong
27-Jul-2012, 07:11 AM
Jacques,

No that is not possible.

chuckatkinson
31-Jul-2012, 11:56 AM
You might try setting your cImageContainer like this and see if helps the display


Set pcBackColor to (GetSysColor (clBtnFace iand $FFFFFF))
Set peImageStyle to ifFitOneSide

Jacques Delannay
31-Jul-2012, 02:20 PM
Thanks for the answer !
I have adapted the size of the cimagecontainer in the way that a normal jpg file in paysage fit exactly the container. In this way, we don't see that the image is left centered. As I don't have a lot of portrait image, it doesn't matter.