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
 Detect Ok or Cacel in DoPreview Dialogs of ImageEn

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
yogiyang Posted - May 13 2019 : 07:13:26
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
1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - May 13 2019 : 08:22:47
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