Page 1 of 1

Customize IBCConnectDialog

Posted: Sat 12 Jun 2010 22:47
by dennis
I am an 'intermediate' Delphi developer and I would like to 'customize' the IBCConnectDialog so it has:

- a 'Role' text edit to allow a user to input a role

- a database dropdown combo box that would have a auto size drop down list that would allow the user to see the entire path to the database and have a 'browse' selection which would open up a fileopen dialog to allow the user to select a database file.

I noticed in the documentation it is mentioned to 'inherit from the IBCConnectDialog class' and override some methods. This does not seem too difficult. However, how does one 'reconfigure' the dfm file to customize the form displayed.

Is there any step by step instructions or examples available?

Thanks,

Dennis

Posted: Mon 14 Jun 2010 13:06
by Dimon
You can look at the example of customizing the InterBase connect dialog in the ConnectDialog demo of IBDAC demo project.

Custom Dialog

Posted: Tue 15 Jun 2010 22:24
by dennis
Thanks, Dimon.

I have succeeded in doing so, but I don't understand some of the coding. (I didn't purchase the source code). It would be nice to understand what is going on!

(ie - the edexit procedure)

Thanks,

Dennis

Posted: Wed 16 Jun 2010 08:22
by Dimon
You can find the IBCConnectForm.pas unit with the TIBCConnectForm class implementation by the following path: IBDAC_InstDir\Lib\.
IBDAC_InstDir is the IBDAC installation directory on your computer.

Posted: Thu 17 Jun 2010 02:42
by dennis
Thanks, Dimon. I will study it!

Cheers,

Dennis