Customize IBCConnectDialog

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
dennis
Posts: 10
Joined: Tue 23 Oct 2007 14:10

Customize IBCConnectDialog

Post by dennis » Sat 12 Jun 2010 22:47

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

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 14 Jun 2010 13:06

You can look at the example of customizing the InterBase connect dialog in the ConnectDialog demo of IBDAC demo project.

dennis
Posts: 10
Joined: Tue 23 Oct 2007 14:10

Custom Dialog

Post by dennis » Tue 15 Jun 2010 22:24

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

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 16 Jun 2010 08:22

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.

dennis
Posts: 10
Joined: Tue 23 Oct 2007 14:10

Post by dennis » Thu 17 Jun 2010 02:42

Thanks, Dimon. I will study it!

Cheers,

Dennis

Post Reply