Author |
Topic  |
|
jrpcguru
  
USA
273 Posts |
Posted - Jan 16 2015 : 15:25:21
|
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 |
|
jrpcguru
  
USA
273 Posts |
Posted - Jan 22 2015 : 17:52:56
|
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. |
 |
|
xequte
    
39053 Posts |
Posted - Jan 25 2015 : 14:56:21
|
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
|
 |
|
jrpcguru
  
USA
273 Posts |
Posted - Feb 02 2015 : 08:38:40
|
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. |
 |
|
xequte
    
39053 Posts |
Posted - Feb 02 2015 : 15:18:45
|
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
|
 |
|
jrpcguru
  
USA
273 Posts |
Posted - Feb 02 2015 : 15:28:56
|
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. |
 |
|
|
Topic  |
|