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 hide controls in build in dialogs of IE?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

yogiyang

India
537 Posts

Posted - May 02 2019 :  07:45:03  Show Profile  Reply
Hello,

I am using following code to allow use to correct image using HSL:
ieViewMain.Proc.PreviewsParams := ieViewMain.Proc.PreviewsParams +
    [prppDefaultLockPreview];
  ieViewMain.Proc.DoPreviews([peHSL]);

But in the dialog that comes up I do now want to show following controls:




How to do it?

TIA


Yogi Yang

w2m

USA
1990 Posts

Posted - May 02 2019 :  08:59:04  Show Profile  Reply
I don't think it is possible. You can make your own dialog to do the same thing or add controls to your main form to set HSL to the TImageEnView.

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

xequte

4712 Posts

Posted - May 02 2019 :  22:55:29  Show Profile  Reply
Hi

Actually, there is a way, but is it not easy. You can use the OnShowDialog event:

https://www.imageen.com/help/ImageEn/TIEView.OnShowDialog.html

So something like:

procedure TMainForm.ImageEnView1ShowDialog(Sender: TObject; DlgType: TIEDlgType; Form: TForm);
begin
  // add Previews to uses
  if DlgType = iefProcPreview then
    with TfPreviews(Form) do
    begin
      ImageEn1.Visible := False;
      Label1.Visible := False;
      ResultToSourceButton.Visible := False;
      // And fix layout...
    end;
end;


Nigel
Xequte Software
www.imageen.com
Go to Top of Page

yogiyang

India
537 Posts

Posted - May 06 2019 :  01:44:06  Show Profile  Reply
Hello Nigel,

Thanks for the sample code.

After I do this will the controls visible re-arrange themselves or will we have to do that programmatically?

TIA


Yogi Yang
Go to Top of Page

xequte

4712 Posts

Posted - May 06 2019 :  04:11:30  Show Profile  Reply
Hi

You will need to do that programmatically.

You should open the forms in Delphi to get a better idea what you are dealing with.

Note: The forms include conditional defines, so to view them you need to:
- open the unit, e.g. previews.pas
- Remove the IFDEF at the start of the unit, and then ELSE/ENDIF block at the end
- Close the unit
- Reopen it


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To: