ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to set a transparent border for the iekTEXT

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
zhengyuanyi27 Posted - Jun 15 2011 : 17:40:43
Dear all,
Could someone help me to set the border of an iekTEXT transparent?
I tried the objmemoborderstyle, but failed.
Thanks a lot.

The following is my codes.
selectedImageenvect.ObjKind[-1]:=iekTEXT;
h:=selectedImageenvect.AddNewObject;
selectedimageenvect.ObjMemoBorderStyle[h]:=psClear;


======================================================

Hi

Try using:

selectedimageenvect.ObjBrushStyle[h] := psClear;


Ciao
6   L A T E S T    R E P L I E S    (Newest First)
EricNat Posted - Jan 26 2012 : 15:24:17
Thanks. Works great!
fab Posted - Jan 26 2012 : 11:14:53
Use ObjPenStyle[] property. Example:

ImageEnVect1.ObjKind[-1] := iekTEXT;
ImageEnVect1.ObjPenStyle[-1] := psClear;
ImageEnVect1.ObjText[-1] := 'Test';
ImageEnVect1.AddNewObject();

EricNat Posted - Jan 26 2012 : 10:07:33
Yes, that is correct. I am calling it after the object is added. The other object property changes that I make (using -2 as well) work okay. I just cannot seem to get the border rectangle to go away. I have also tried using -1 and setting it before the object is added. That did not work either.
xequte Posted - Jan 26 2012 : 00:37:59
Hi

You are using index, -2, which means the last object added, so are you calling this after adding an object?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
EricNat Posted - Jan 25 2012 : 23:55:47
I am trying to set the border of a iekTEXT object as transparent (so that there will just be text without any border). The above solution does not seem to work for me. I am using 4.01. Is there a bug here or am I doing something wrong. I am setting ObjBrushStyle[-2]:=psClear. Shouldn't that do it?
zhengyuanyi27 Posted - Jun 17 2011 : 08:02:08
Thanks a lot!
It works!