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
 Default font size for TImageEnVect?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Maxim Gussev

USA
4 Posts

Posted - Jul 30 2016 :  08:19:41  Show Profile  Reply
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.

w2m

USA
1990 Posts

Posted - Jul 30 2016 :  09:01:10  Show Profile  Reply
 

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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: