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
 Copyright Font
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

skippix

USA
68 Posts

Posted - Sep 30 2012 :  02:24:10  Show Profile  Reply
I've been playing around with the Copyright demo, but can't find a way to override the default 'Times New Roman' font. I'm trying to do this near line 350 in the UseObjects procedure. Any ideas? Thanks!

klausdoege

Germany
389 Posts

Posted - Oct 01 2012 :  15:19:51  Show Profile  Reply
Hello,

the example perfectly works.
If you would like to change the font,
then by useobjects in line 329 and by useGDI in line 463
the Fontname change.

Klaus
www.klausdoege.de
Go to Top of Page

w2m

USA
1990 Posts

Posted - Oct 01 2012 :  16:35:33  Show Profile  Reply
To change the copyright font add a TPopupmenu to the form, Add a MenuItem called "Font"1 and give it a caption of "Font", then assign the ImageENVect1.Popupmenu to Popupmenu1, then add this code:

procedure TForm1.Font1Click(Sender: TObject);
begin
  ImageENVect.ObjFontName[-2] := 'Arial'; // 'Times New Roman';
  // the font name can be any valid font name
  ImageENVect.Update;
end;


After adding the copyright to the image scrolldown to the bottom of the image and select the "Copyright Object" and activate the popupmenu with a rightmouseclick and select "Font".

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html
Go to Top of Page

skippix

USA
68 Posts

Posted - Oct 01 2012 :  17:03:51  Show Profile  Reply
Thanks, William, for your reply. I'll try that and let you know how it works out.
Go to Top of Page

skippix

USA
68 Posts

Posted - Oct 01 2012 :  17:26:10  Show Profile  Reply
Got it!

By adding the assignment and update at line 517, I save myself a click ;-)

(and that puts me one step closer to being able to turn this into a batch process!)

Thanks again!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: