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
 Feature wish: NoFilesToDisplayInfoText for the multi view components
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

imageorganizernx

Australia
14 Posts

Posted - Oct 24 2023 :  05:45:07  Show Profile  Reply
Inspired by the Developer Express grids, it would be useful to have an option to display a text in the middle of the multi view components when no files are available. I'm using the TImageEnMView component, and when there are no files, I'd like the user to have that confirmed. In the DevEx grids, you get a "<No data to display>" text as default in this case.

If it exists and I missed it, please let me know :)

Image Organizer NX

xequte

38608 Posts

Posted - Oct 25 2023 :  02:03:24  Show Profile  Reply
Hi

Please email me for the latest beta which has OnDrawCanvas:

// Show warning when there is no content to display
procedure TMainForm.ImageEnMView1DrawCanvas(Sender: TObject; ACanvas: TCanvas; ARect: TRect);
var
  s: string;
  tw, th: Integer;
begin
  if ImageEnMView1.ImageCount = 0 then
  begin
    ACanvas.Font.Color := clGray;
    ACanvas.Font.Style := [fsBold];

    s  := 'No images to display';
    tw := Canvas.TextWidth( s );
    th := Canvas.TextHeight( s );
    ACanvas.TextOut( ( ARect.Right - tw ) div 2, ( ARect.Bottom - th ) div 2, s );
  end;
end;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

imageorganizernx

Australia
14 Posts

Posted - Oct 25 2023 :  02:06:35  Show Profile  Reply
Thanks, will do!

Image Organizer NX
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: