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
 How to get the imagebottomtext of selected image
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

egold2005

11 Posts

Posted - May 08 2020 :  06:35:08  Show Profile  Reply
Hi folks,
I am using FolderView.OnGetTextEx to provide custom bottom text for the images.
The first thing i noticed is that setting font.color has no effect.


   vFileText := '';
   if Position = iemtpBottom then begin
      with FcdsAttachments do
         if locate('user_file_name', Text, []) then begin
            if FieldByName('tracer_nbr').asString > '' then begin
               vFileText := 'Order Nbr ' + FieldByName('tracer_nbr').asString;
               Font.Color := clBlue //does not work
            end else  begin
               vFileText := 'No order found';
               Font.Color := clRed 
            end
         end;

      Text := vFileText
   end

Then i need to grab the bottom text of selected image for taking some UI actions. I am using ImageSelect event, and then trying to read the following property but it is always empty.

FolderView.ImageBottomText[AIdx]

Any ideas? My environment is D2007 and ImageEn 8.7.6.

Thanks alot,
Eugene.

xequte

39140 Posts

Posted - May 08 2020 :  16:56:21  Show Profile  Reply
Hi Eugene

Setting the font color is not supported in <9.0.1, but you can email me for an update that supports it (please check that your registration is still valid). Otherwise just set the relevant properties.

OnGetTextEx only specifies the *Displayed* value. If you want to be able to read the ImageBottomText property, then set ImageBottomText instead of using OnGetTextEx.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: