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
 IO.DoPreviews does not remember dialog settings

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
PeterPanino Posted - Jun 14 2021 : 15:24:38
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?
5   L A T E S T    R E P L I E S    (Newest First)
PeterPanino Posted - Jun 15 2021 : 03:27:52
Hi Nigel,

thanks for the clarification! I am awaiting the new release!
xequte Posted - Jun 15 2021 : 00:48:25
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
PeterPanino Posted - Jun 14 2021 : 17:11:13
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!
PeterPanino Posted - Jun 14 2021 : 16:43:56
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!
PeterPanino Posted - Jun 14 2021 : 16:15:05
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;