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
 Default font size for TImageEnVect?

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
Maxim Gussev Posted - Jul 30 2016 : 08:19:41
Good morning all,

Is there a variable controlling the default font size (for TImageEnVect)?

Let's say I added an object:
...h := ImageEnVect.AddNewObject;
...ImageEnVect.ObjKind[h] :=iekTEXT;

Then I have to set up the font height (...ObjFontHeight[h]:=...)

I am wondering if there is a way to set some default value for all new objects...

Thank you in advance!
Maxim.

1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Jul 30 2016 : 09:01:10
 

Is there a variable controlling the default font size (for TImageEnVect)?

I do not think there is a way to set the default font, so just use
FontDialog1.Font.Size := 12;
ImageEnVect.SetObjFont(h, FontDialog1.Font);

when you create the object.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development