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
 Print dialog suggestions
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

913 Posts

Posted - Mar 06 2024 :  12:51:58  Show Profile  Reply
ImageEn has very flexible methods to show the PRINT DIALOG, for example:

// Create a temporary TIEBitmap to hold the flattened image
  TempBitmap := TIEBitmap.Create;
  try
    // Copy the current image (and not the layers) to TempBitmap
    TempBitmap.Assign(ImageEnViewPreview.IEBitmap);

    // Draw all layers onto TempBitmap
    ImageEnViewPreview.LayersSaveMergedTo(TempBitmap);

    // Now TempBitmap contains the "flattened" image
    // create an IO object from TempBitmap:
    var PIO := TImageEnIO.CreateFromBitmap(TempBitmap);
    try
      // now print from the IO object:
      PIO.DoPrintPreviewDialog(iedtDialog);
    finally
      PIO.Free;
    end;
  finally
    // Free the temporary bitmap
    TempBitmap.Free;
  end;


Now to the suggestions:

1. The Print dialog should have a SIZE-GRIP in its bottom-right corner. This would make it easier for the user to resize the Print dialog.

2. The Print dialog always opens at a predefined, relatively small size, even if the user has previously resized it. This is frustrating for the user. Please make the Print dialog remember its previous size. It should be possible to programmatically set the size of the Print dialog before displaying it. This would also enable the developer to persistently save and restore the Print dialog's size between sessions.

xequte

38448 Posts

Posted - Mar 06 2024 :  19:14:00  Show Profile  Reply
Hi

1. Windows design standards tend not to use grips in these kinds of dialogs.

2. Please save PrintPreviewParams to the registry or ini:

http://www.imageen.com/help/TImageEnIO.PrintPreviewParams.html

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

PeterPanino

913 Posts

Posted - Mar 08 2024 :  12:37:54  Show Profile  Reply
In my opinion, what we often call "Windows design standards" are just bad habits. If we want to increase our productivity, we need to break these bad habits.
Go to Top of Page

xequte

38448 Posts

Posted - Mar 08 2024 :  14:36:15  Show Profile  Reply
I disagree that it is useful here. If a dialog does not benefit from being sized, like the print dialog, then there is no reason to provide a visual reminder that it can be sized.

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