Hi,
I am using a TImageEnVect component in a C++ Builder XE3 application.
When I am adding a text object, setting the autosize property to true and transparency to some value other than 255 the text appears truncated.
The code I am using to reproduce this behavior looks like this:
ImageEnVect1->AddNewObject(iekTEXT, TRect(10, 10, 100, 100), clBlack);
ImageEnVect1->ObjTextAutoSize[IEV_PREVIOUS_INSERTED_OBJECT] = true;
ImageEnVect1->ObjTransparency[IEV_PREVIOUS_INSERTED_OBJECT] = 254;
ImageEnVect1->ObjText[IEV_PREVIOUS_INSERTED_OBJECT] = "some text which might be a little longer";
When transparency is not set (i.e. set to 255) the text appears just fine.
Am I doing something wrong here?
- Alexander
www.k-software.de