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
 ImageEnMView.GetTextEx

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
John Posted - Nov 13 2015 : 07:42:15
Hello

Delphi XE8, ImageEn 6.2.1 and Windows 7 64 bit

In the code below, changing the font color of the BottomTextFont of a specific image works fine. However, if the currently remarked out BackgroundColor := clSkyblue is implemented, the anticipated background color of the BottomText is not implemented. I have attached an image of the font.color change below the code.



procedure TformViewScannedXrays.ImageEnMView1GetTextEx(Sender: TObject; Index: Integer; Position: TIEMTextPos; var Text: WideString; Font: TFont;
  var BackgroundStyle: TBrushStyle; var BackgroundColor: TColor; var TruncSide: TIEMTruncSide);
var
  tempFileName: String;
  tempExtension: String;
begin
  if Position = iemtpBottom then
    begin
      tempExtension := ExtractFileExt( Text );
      if IEExtToFileFormat( tempExtension ) = ioJPEG then
        begin
          tempFileName := tempPtCephPath + Text;
          tempFileName := Copy(tempFileName, 1, Length(tempFileName) -3);
          tempFileName := tempFileName + 'iev';
          if FileExists(tempFileName) = True then
            begin
//              BackgroundColor := clSkyblue;
              Font.Color := clRed;
            end
          else
            begin
//              BackgroundColor := clWhite;
              Font.Color := clBlack;
            end;
        end;
    end;
end;





Suggestions??

TIA

John
2   L A T E S T    R E P L I E S    (Newest First)
John Posted - Nov 15 2015 : 21:15:29
Thanks

John
xequte Posted - Nov 15 2015 : 17:20:34
Hi John

You will also need:
BackgroundStyle := bsSolid;



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com