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
 Detect Ok or Cacel in DoPreview Dialogs of ImageEn
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

yogiyang

India
725 Posts

Posted - May 13 2019 :  07:13:26  Show Profile  Reply
Hello,

I am using the following code
ImageEnViewMain.Proc.DoPreviews([peHSL]);

To show a HSL dialog to user.

Now I want to read the parameters that the user applied in the dialog.

For that I need to detect whether the user clicked on Ok or Cancel button in the built in DoPreview dialogs of ImageEn.

How can we determine this?

TIA


Yogi Yang

w2m

USA
1990 Posts

Posted - May 13 2019 :  08:22:47  Show Profile  Reply
DoPreviews returns true or false.

if ImageEnViewMain.Proc.DoPreviews([peRotate]) = False then
   ShowMessage('Preview Cancelled')
else
begin
  ShowMessage('Preview Applied');  
  ShowMessage('Rotate Angle' +
    ImageEnView1.Proc.IPDialogParams.GetProperty('ROTATE_Angle');
end;

TIPDialogParams.GetProperty

Declaration

function GetProperty(const Prop: String): String;

Description

Return a parameters of the Image Processing Dialog as a string.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: