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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to set a transparent border for the iekTEXT
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

zhengyuanyi27

61 Posts

Posted - Jun 15 2011 :  17:40:43  Show Profile  Reply
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

zhengyuanyi27

61 Posts

Posted - Jun 17 2011 :  08:02:08  Show Profile  Reply
Thanks a lot!
It works!
Go to Top of Page

EricNat

USA
37 Posts

Posted - Jan 25 2012 :  23:55:47  Show Profile  Reply
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?
Go to Top of Page

xequte

39053 Posts

Posted - Jan 26 2012 :  00:37:59  Show Profile  Reply
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
Go to Top of Page

EricNat

USA
37 Posts

Posted - Jan 26 2012 :  10:07:33  Show Profile  Reply
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.
Go to Top of Page

fab

1310 Posts

Posted - Jan 26 2012 :  11:14:53  Show Profile  Reply
Use ObjPenStyle[] property. Example:

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

Go to Top of Page

EricNat

USA
37 Posts

Posted - Jan 26 2012 :  15:24:17  Show Profile  Reply
Thanks. Works great!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: