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

x
?
Solved

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

Posted on 2000-05-14
5
Medium Priority
?
540 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 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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 course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
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