Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialog Box with custom buttons

Status
Not open for further replies.

AP81

Programmer
Apr 11, 2003
740
AU
Hi All,

I was wondering if it is possible to make a dialog with custom buttons. For example:

Title := 'Save Invoice';
Caption:= 'Save invoice as: ';
Buttons := 'new invoice', 'overwrite current invoice', 'cancel'

I know that the easier way is to do this with a form, but I was wondering if this was possible.

Thanks in advance.




------------------------------------
There's no place like 127.0.0.1
------------------------------------
 
Create a form in the normal way, set its BorderStyle to bsDialog and set the appropriate BorderIcons, place your contrls and buttons on the form and set the ModalResult property of the uttons as you feel appropriate. Then open the form with .ShowModal as you would any other Dialog Box.

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top