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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Message Box Button labels for one messagebox

Status
Not open for further replies.

manpaul

Technical User
Jan 10, 2005
118
CA
I would like to change the wording that comes with the messagebox buttons.

instead of using yes no and cancel I would like to say

Search Invoicing
Search Inventory Part Number
Search Inventory Acct Code

Now I want the messagebox to process the same way just different labels on the buttoens
 
You will have to create your own little form to emulate the messagebox and add your own buttons.

Set the border style to 2 - Fixed dialogue
Set MinButton and MaxButton to .F.
Set WindowType to 1 - Modal

Set up your buttons so they close the form and return a value.

I like work. It fascinates me. I can sit and look at it for hours...
 
Thanks Thanks what I will do.

I was hoping that there would be a parm to load the captions

Thats life
 
You can't change it today, but the future has a really cool thing called a TaskDialog...it's coming in Windows Vista. You can have "buttons" with any text you want, plus a description of what those buttons will do. I just saw it demoed here at the PDC and it's way cool.

Craig Berntson
MCSD, Visual FoxPro MVP, Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"
 
You can't change it today...

Not true. I change the captions on all of the messagebox buttons in my example that is at the link that tamayok linked to above. However, it does require the FLL I created to bind to CBT events in the Windows OS.

On the Taskdialog... sounds really cool. I can't wait to get ahold of Windows Vista and try out some the new features and APIs.

boyd.gif

SweetPotato Software Website
My Blog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top