SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MessageDlg with DefaultButton parameter

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
BillHop3



Joined: 29 Sep 2004
Posts: 10

PostPosted: Fri Feb 18, 2005 11:37 pm    Post subject: MessageDlg with DefaultButton parameter Reply with quote

With Windows' MessageBox API, whenever we prompt the user to confirm a deletion, we pass MB_YESNO | MB_DEFBUTTON2, allowing the "No" to be both the Default and Cancel button. The CLX version of MessageDlg adds an optional DefaultBtn parameter (serving the same purpose) that isn't in the VCL or your version of MessageDlg.
I've experimented with YesToAll/NoToAll with the captions renamed, etc., but I cannot get the MessageBox behavior without changing your code.

Please add an optional DefaultBtn parameter to your MessageDlg implementation.

P.S. It'd be even better if mtWarning, etc. types also triggered the appropriate system events so they 'beep'ed like MessageBox does.
Back to top
View user's profile Send private message AIM Address
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Sat Feb 19, 2005 5:49 am    Post subject: Reply with quote

Thanks for your suggestion. We will try to implement this.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group