Solved

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

Posted on 2000-05-14
5
528 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
Comment Utility
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 50 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
Thanks guys,

Have fun.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

763 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

11 Experts available now in Live!

Get 1:1 Help Now