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
 ImageEnMView - ImageText Color
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

fourwhey

20 Posts

Posted - Aug 08 2016 :  17:00:35  Show Profile  Reply
Is it possible to change the color of ImageInfo, ImageTop, ImageBottom text per image? I see that ImageEnMView.InfoTextFont.Color can be defined, but that seems to affect the default and changes it for every thumbnail.

Thanks.

xequte

38610 Posts

Posted - Aug 08 2016 :  17:14:22  Show Profile  Reply
Hi

Yes, you can customize it in the OnGetTextEx event.

Please see the example at:

http://www.imageen.com/help/TImageEnMView.OnGetTextEx.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

w2m

USA
1990 Posts

Posted - Aug 08 2016 :  17:17:33  Show Profile  Reply
procedure TForm1.ImageEnMView1GetTextEx(Sender: TObject; Index: Integer; Position: TIEMTextPos; var Text: WideString;
  Font: TFont; var BackgroundStyle: TBrushStyle; var BackgroundColor: TColor; var TruncSide: TIEMTruncSide);
begin
  if Position = iemtpTop then
    Font.Color := clRed;
  if Position = iemtpBottom then
    Font.Color := clBlue;
  if Position = iemtpInfo then
    Font.Color := clGreen;
end;

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

fourwhey

20 Posts

Posted - Aug 09 2016 :  09:13:28  Show Profile  Reply
Thank you Nigel and Bill.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: