Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, July 30, 2009 5:53:14 PM(UTC)
razali84

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

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, August 2, 2009 3:52:20 AM(UTC)

Adam Boulad  
Guest

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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.053 seconds.