Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Changing the default record delete confirmation

Posted on 2000-03-05
4
Medium Priority
?
396 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 75 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

715 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