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
 How to swirch off AutoFit in DoPreview dialog?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

graphman

259 Posts

Posted - Sep 09 2016 :  06:40:49  Show Profile  Reply
For Original and Result windows

xequte

38616 Posts

Posted - Sep 10 2016 :  00:44:53  Show Profile  Reply
Hi

You need to assign the OnPreview event of TImageEnProc, e.g.

ImageEnView1.Proc.OnPreview := MyPreviewHandler;

See the example at:

http://www.imageen.com/help/TImageEnProc.OnPreview.html

And let us know if you need more advice.


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

graphman

259 Posts

Posted - Sep 12 2016 :  04:30:38  Show Profile  Reply
I trying to use

void __fastcall TAbleBatchConv_Form1::ImageEnProc1Preview(TObject *Sender, TForm *PreviewForm)
{
((TfPreviews *)PreviewForm)->ImageEn1->AutoFit = false;
}
//---------------------------------------------------------------------------

But see error
[BCC32 Error] Unit1.cpp(10413): E2451 Undefined symbol 'TfPreviews'
Go to Top of Page

graphman

259 Posts

Posted - Sep 12 2016 :  04:32:38  Show Profile  Reply
I need to zoom original image in DoPreview dialog.
It was available in old versions.
Go to Top of Page

graphman

259 Posts

Posted - Sep 12 2016 :  05:02:42  Show Profile  Reply
I have added
#include "Previews.hpp"
to fix error
But cannot use zoom in DoPreview dialog yet
Go to Top of Page

xequte

38616 Posts

Posted - Sep 12 2016 :  05:54:06  Show Profile  Reply
Do you mean zoom by clicking? Then set ImageEnView1.MouseInteract := [miZoom];

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

graphman

259 Posts

Posted - Sep 12 2016 :  06:44:52  Show Profile  Reply
> Do you mean zoom by clicking?

Yes

> Then set ImageEnView1.MouseInteract := [miZoom];

I tried already. There is no effect.
Go to Top of Page

graphman

259 Posts

Posted - Sep 12 2016 :  07:20:14  Show Profile  Reply
I used previous version.
After installing the latest version it works without problem.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: