Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Application->MessageBox + Other Buttons, e.g. checkbox etc ...

Posted on 2000-05-14
5
Medium Priority
?
542 Views
Last Modified: 2010-04-04
Hi boys and girls,

Using Borland cpp Builder 4.x

In my code I often use
Application->MessageBox(....
to display a window with standard buttons.

My question.
Since the buttons are standard, is there a way to easily override them, add buttons, display a checkbox in the lower right corner ??

Or do I have to rewrite the Application->MessageBox call and display a window of my own with the same properties + extras I want ?

Hope this makes sense ?

sneeuw
0
Comment
Question by:sneeuw
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:shenqw
ID: 2808474
You can use MessageBox, you can use CreateMessageDialog.

Example in $(delphi)\Demos\Ado\AdoTest\AdoTest.dpr

procedure ShowProperties(Props: Properties);
var
  I: Integer;
  F: TForm;
  Button: TButton;
begin
.......
0
 

Accepted Solution

by:
LuK earned 200 total points
ID: 2808476
Application->MessageBox uses the API-Call MessageBox, so it only supports
the standart buttons(Ok,Cancel,Abort,Yes,No,Retry,Ignore,Help). To edit the box, you have to rewrite the Application->MessageBox call.
0
 

Author Comment

by:sneeuw
ID: 2808795
Hi Luk,

So there's no easier way ?
I have to create my own window which looks like the standard one, but with more buttons and options ??
0
 

Expert Comment

by:LuK
ID: 2810945
Soory, bur you on the standart MessageBox you can only change the text, the caption, the icon(no,error,question,infomation,warning) and choose one of this buttoncombinations:
Ok,Ok and Cancel, Yes and No, Yes and No and Cancel, Retry and Ignore and Abort

I think, there is a way to add an Help-button, but I din't know how. That's all you can change without create a own Dialog.
0
 

Author Comment

by:sneeuw
ID: 2811808
Thanks guys,

Have fun.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

886 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