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
 Feature wish: NoFilesToDisplayInfoText for the multi view components

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
imageorganizernx Posted - Oct 24 2023 : 05:45:07
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
2   L A T E S T    R E P L I E S    (Newest First)
imageorganizernx Posted - Oct 25 2023 : 02:06:35
Thanks, will do!

Image Organizer NX
xequte Posted - Oct 25 2023 : 02:03:24
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