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
 TOpenImageEnDialog.OnCreateCustomControls
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jrpcguru

USA
266 Posts

Posted - Nov 03 2013 :  12:40:44  Show Profile  Reply
Your help file documents how to add another control to the file dialog via this event. Using both Delphi 7 and Delphi XE2, I can create the sample control and it works correctly the first time I execute the dialog. After that I receive ImageEx error, System Error, Code : 1400, Invalid Window Handle.

I actually desire to add a button called 'Select All' and I have proven that my button works. But both my button and your sample code generate this error so I hope you can suggest a fix.
Thanks.

J.R.

xequte

38616 Posts

Posted - Nov 03 2013 :  16:20:36  Show Profile  Reply
Hi

We'll have a fix for this in v5.0.1 (ready in the next week or so).

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

jrpcguru

USA
266 Posts

Posted - Nov 05 2013 :  08:58:21  Show Profile  Reply
Thanks for the prompt reply. I ended up hijacking the hidden AdvancedButton in the open dialog and re-purposing it for my needs. However there was an oddity. I could make it visible, change its OnClick, and change its location, but couldn't change its caption. Turns out your source code sets the caption after calling the OnCreateCustomControls event. I didn't see any obvious reason for that, so I wonder if your update could include that slight change?

J.R.
Go to Top of Page

xequte

38616 Posts

Posted - Nov 05 2013 :  11:54:20  Show Profile  Reply
Hi

The caption is localized for language support so we won't be able to change that. You would be best to add your own button.

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

jrpcguru

USA
266 Posts

Posted - Dec 14 2013 :  20:34:52  Show Profile  Reply
I've just installed version 5.0.5 and am pleased to say it fixed the bug that prevented me from adding my own button to the common file dialog. Thank you.

J.R.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: