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
 DoPreviews
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jrpcguru

USA
273 Posts

Posted - Jan 16 2015 :  15:25:21  Show Profile  Reply
I would like to tell the DoPreviews dialog to automatically show the preview. I can find no example of how to do that. The following lines compile but do nothing:

ImageEnView1.Proc.IPDialogParams.SetProperty('LockPreview','prppDefaultLockPreview');
ImageEnView1.Proc.IPDialogParams.SetProperty('prppDefaultLockPreview', 'True');

What is the correct method?

J.R.

xequte

39053 Posts

Posted - Jan 16 2015 :  15:56:08  Show Profile  Reply
Hi

Please use:

ImageEnView1.Proc.PreviewsParams := [ioppDefaultLockPreview];

q.v. http://www.imageen.com/help/TImageEnProc.PreviewsParams.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

jrpcguru

USA
273 Posts

Posted - Jan 22 2015 :  17:52:56  Show Profile  Reply
I used this code:
ImageEnView1.Proc.PreviewsParams := [ioppDefaultLockPreview];
ImageEnView1.Proc.DoPreviews([peContrast,peHSV,peHSL,peRGB,peEqualize,peGamma,peSharpen], true,(Screen.width div 4) * 3, (screen.height div 4) * 3); // show only color effects;

This did nothing to lock the preview and according to the help file is used for something else. How do I turn on the preview feature of the DoPreviews dialog??

J.R.
Go to Top of Page

xequte

39053 Posts

Posted - Jan 25 2015 :  14:56:21  Show Profile  Reply
Hi JR

I'm away till the end of the week. I'll investigate after that.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

jrpcguru

USA
273 Posts

Posted - Feb 02 2015 :  08:38:40  Show Profile  Reply
I have revisited this question.
This syntax had previously failed to turn on previewing in proc.DoPreviews:
ImageenView1.Proc.PreviewsParams := [prppDefaultLockPreview];
Today I tried:
ImageEnView1.Proc.PreviewsParams := [prppDefaultLockPreview,prppResetSelectedTab];
The reset button disappeared, but the preview was locked. Then I tried:
ImageEnView1.Proc.PreviewsParams := [prppDefaultLockPreview,prppResetSelectedTab,prppShowResetButton];
Now I have locked previews and the Reset button is visible and resets only the selected tab as desired. I don't know why the first syntax failed, because now it works but I will use the last syntax.

J.R.
Go to Top of Page

xequte

39053 Posts

Posted - Feb 02 2015 :  15:18:45  Show Profile  Reply
Hi JR

I cannot reproduce that, nor see any issue with the code. Also the description in your last post sounds like something seriously iffy is going on.

What Delphi version do you use? Have you tried adding the ImageEn source to your library path and stepping through the code?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

jrpcguru

USA
273 Posts

Posted - Feb 02 2015 :  15:28:56  Show Profile  Reply
I use XE2.
I have not tried to step through your source code. I don't think I'm sufficiently advanced as a programmer in Delphi.

Now that it is working for me, I'm happy.

J.R.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: