Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 02-05-2006, 08:24 AM
Nobby Nobby is offline
Junior Member
 
Join Date: Jun 2005
Posts: 9
Default How do you change the defaultbtn on a messagedlg

Can any one help I need to change the defaultbtn on a messagedlg

Nobby

Beginner
Reply With Quote
  #2  
Old 02-05-2006, 09:04 AM
gLes gLes is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,273
Default RE: How do you change the defaultbtn on a messagedlg

Use the MessageBox function from the Windows unit. What you are looking for are the MB_DEFBUTTON2, MB_DEFBUTTON3, MB_DEFBUTTON4 flags:

[link]http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing/dialogboxes/dialogboxreference/dialogboxfunctions/messagebox.asp[/link]

Hope that helps

gLes
Reply With Quote
  #3  
Old 02-05-2006, 11:51 AM
SourceCode SourceCode is offline
Senior Member
 
Join Date: Apr 2005
Posts: 810
Default RE: How do you change the defaultbtn on a messagedlg

The code on this page might help,

http://www.swissdelphicenter.ch/torry/showcode.php?id=1241

If this helps please Accept as ANswer
Thanks.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 07:07 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2017, vBulletin Solutions, Inc.