This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, July 30, 2009 5:53:14 PM(UTC)
Groups: Registered
Posts: 21
Hai,
I want to change the text color from red to other color. I try so many things but the color still not changed.
here is my code. version 14.5
LEAD1.AnnSetSelected LEAD1.AnnContainer, False, True
hRectObject = LEAD1.AnnCreate(ANNOBJECT_TEXT, True, True)
LEAD1.AnnSetAutoDefaults hRectObject, 0
LEAD1.AnnDefine hRectObject, x0 - xx, y0 + 50, ANNDEFINE_BEGINSET
LEAD1.AnnDefine hRectObject, x0 + 400, y0 + 110, ANNDEFINE_END
LEAD1.AnnSetFontBold hRectObject, True, False
LEAD1.AnnSetText hRectObject, tpuName , False
LEAD1.AnnSetFontSize hRectObject, 14, False
LEAD1.AnnSetForeColor hRectObject, RGB(0, 0, 255), False
LEAD1.AnnSetLineStyle hRectObject, 5, False
LEAD1.AnnSetLineWidth hRectObject, 0, False
LEAD1.AnnSendToBack hRectObject
LEAD1.AnnSetSelected hRectObject, False, False
LEAD1.AnnGroup LEAD1.AnnContainer, ANNFLAG_RECURSE + ANNFLAG_SELECTED, ""
hRectObject = 1
#2
Posted
:
Sunday, August 2, 2009 3:52:20 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
The LEADTOOLS API has the L_AnnSetTextOptions function to change the text color, but the LEAD Main OCX control does not expose that function.
If you need help using it with LEADTOOLS 14.5, please send your toolkit serial number to
support@leadtools.com and mention this post.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.