Solved

Changing the default record delete confirmation

Posted on 2000-03-05
4
381 Views
Last Modified: 2010-04-04
I have many TTables and TDBNavigators in my app connected to a Paradox 7 db (using BDE).

What's the simplest way to change ALL the default delete record confirmation dialog boxes - those that appear when you press the "delete" function on the TDBNavigator? (I want to make it locale language)
0
Comment
Question by:idok
  • 2
4 Comments
 

Expert Comment

by:zb_russia
ID: 2586432
1. Search files:

Bdeconst.pas
Comconst.pas
Consts.pas
Dbconsts.pas
Ibconst.pas
Midconst.pas
Mxconsts.pas
Oleconst.pas
Webconst.pas
Sysconst.pas

2. Copy in a separate folder. Sample: MyLoc
3. Translate them. (in MyLoc)
4. In all projects, which you want localize, choose in the menu " to add in the project " and add all these files (or some).
5. Compile

Is taken from ru.delphi for Delphi 4.2
0
 

Author Comment

by:idok
ID: 2588402
No. I don't like that.

In my locale - I also need to reposition the "question" icon to the right side (RTL language).

So I want to catch the delete dialog appearing and replace it with my call - only trick is that I don't want to write so many exact same events on so many DBNav's.


0
 

Expert Comment

by:SuperSy
ID: 2630409
First of all, are you using the Resource DLL wizard to create a separate resource file?  

Oh, and what is your Delphi version?
0
 

Accepted Solution

by:
SuperSy earned 25 total points
ID: 2630459
Never mind all that.  I see you have a nice "HebMessageDlg" of your own already.  

Well, it looks like all the call to that "Delete records?" dialog is done in procedure TDBNavigator.BtnClick in "dbctrls".  

It seems like you already have a working "HebMessageDlg", so if you copy unit "dbctrls" into your project folder, change the MessageDlg() to your HebMessageDlg(), add your "dbctrls" to your project and compile.  

Hope it works!

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now