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
 IO.DoPreviews does not remember dialog settings
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

PeterPanino

859 Posts

Posted - Jun 14 2021 :  15:24:38  Show Profile  Reply
When I invoke the DoPreviews dialog repeatedly, e.g.:

ImageEnView1.IO.DoPreviews([ppJPEG])


...the dialog does not remember:

1. "Lock preview" checkbox status

2. Dialog size

3. Not sure about parameters

Is there a setting to make the DoPreviews dialog remember these things?

PeterPanino

859 Posts

Posted - Jun 14 2021 :  16:15:05  Show Profile  Reply
I have tried this one, but it does not work:

procedure TForm1.ImageEnView1ShowDialog(Sender: TObject; DlgType: TIEDlgType; Form: TForm);
begin
  if Form is TfIOPreviews then
  begin
    TfIOPreviews(Form).chkLockPreview.Checked := True;
  end;
end;
Go to Top of Page

PeterPanino

859 Posts

Posted - Jun 14 2021 :  16:43:56  Show Profile  Reply
I have found the bug:

procedure TForm1.ImageEnView1ShowDialog(Sender: TObject; DlgType: TIEDlgType; Form: TForm);
begin
  if Form is TfIOPreviews then
  begin
    TfIOPreviews(Form).DefaultLockPreview := True;
  end;
end;


The variable DefaultLockPreview is NEVER assigned, so per default, it is false! This is nonsensical: Why would a user choose to deactivate the Preview?

Please set the variable DefaultLockPreview to TRUE in the next update. Thank you!
Go to Top of Page

PeterPanino

859 Posts

Posted - Jun 14 2021 :  17:11:13  Show Profile  Reply
Other suggestions:

• Similarly, as with OnShowDialog, there should be an event OnCloseDialog. This would allow the user to save and remember the form size when the form closes (and then restore the form size the next time the dialog shows).

• Please set a SIZE-GRIP on the form's bottom-right corner. That would make the resizing of the form a lot easier for the user!
Go to Top of Page

xequte

38175 Posts

Posted - Jun 15 2021 :  00:48:25  Show Profile  Reply
Hi Peter

The dialog size is stored in:
https://www.imageen.com/help/TIEImageEnGlobalSettings.IOPreviewsDialogHeight.html
https://www.imageen.com/help/TIEImageEnGlobalSettings.IOPreviewsDialogWidth.html

Though there is a bug in the current release that resets the height. This will be fixed for 10.0.2.

Parameters like "Lock Preview" are set by:

https://www.imageen.com/help/TImageEnIO.PreviewsParams.html


I'll try to get sizing grips onto all ImageEn forms for v10.0.2 too.


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

PeterPanino

859 Posts

Posted - Jun 15 2021 :  03:27:52  Show Profile  Reply
Hi Nigel,

thanks for the clarification! I am awaiting the new release!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: