Board index » delphi » How to translate paradox password dialog?

How to translate paradox password dialog?

Set the LoginPrompt property of your TDatabase component to False. Then
create an OnLogin event handler for your TDatabase component that displays
your own dialog to prompt the user for the password. You _do not_ need to
use a TSession component to do this.

--
Bill

 

Re:How to translate paradox password dialog?


I recently added a password to a paradox table.
Evertything worked out fine except that the dialog box where a user can
enter the password is in English. (Button captions are add, remove etc).
Is there a way to translate the dialog, the buttons etc to another language
(in my case Dutch).
(I use bde 5.01 with delphi 4.03 pro)

Thanks for help

Diederik van Donk

Re:How to translate paradox password dialog?


Hi Diederik,
  You can add yourself's password dialog. Just add a session control in
your datamodule and add some code to display the dlg in onpassword event
handler. Remeber to set the session property to this session control.
Quote
Diederik van Donk wrote:
> I recently added a password to a paradox table.
> Evertything worked out fine except that the dialog box where a user can
> enter the password is in English. (Button captions are add, remove etc).
> Is there a way to translate the dialog, the buttons etc to another language
> (in my case Dutch).
> (I use bde 5.01 with delphi 4.03 pro)

> Thanks for help

> Diederik van Donk

Re:How to translate paradox password dialog?


Quote
>   You can add yourself's password dialog. Just add a session control
in
> your datamodule and add some code to display the dlg in onpassword
event
> handler. Remeber to set the session property to this session control.

You do not need to drop a session component onto form. You can use
default session, named Session, to achive the same effect. Just write
onpassword event handler and somwhere in Your startup code( for example,
in Your MainForm OnCreate event). Then You have to use
Session.AddPassword method to supply given password to the BDE.

Gert

Other Threads