Solved

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

Posted on 2000-05-14
5
535 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
[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
  • 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 50 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

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…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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 antispam), the admini…

734 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