Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » MessageBox: buttons translation Collapse All
Subject Author Date
Sublight Developer Oct 27, 2010 - 10:32 PM

Would it be possible to add API for changing default text of MessageBox buttons (programmatically, for example with static properties in MessageBox class):



 


It would be also useful if developer could set "AlwaysOnTop" property on message box (for example additional parameter in MessageBox.Show(...), or you could add method MessageBox.ShowOnTop(...)).


Kind regards,

Sublight developer

Sublight Developer Nov 8, 2010 - 11:52 AM

Thank you very much for implementing my request! Elegant Ribbon library is the best!

Technical Support Oct 29, 2010 - 9:48 AM

Thank you for the feature request. Yes. We’ll provide this functionality most likely in version 3.9.

Technical Support Nov 8, 2010 - 9:35 AM

We have just implemented what you requested. This should work in this way:

MessageBox mb = new MessageBox("Hello", "Elegant UI",MessageBoxButtons.YesNoCancel);
mb.Button1Text = "Hi";
mb.Button2Text = "Ciao";
mb.Button3Text = "Arrivederci";
mb.ShowDialog(null);
So this will be available in the upcoming release 3.8 (earlier than expected).


As for the "AlwaysOnTop", you can achieve that in this way:
MessageBox.Show("Hello",
   "Elegant UI",
   MessageBoxButtons.RetryCancel, 
   MessageBoxIcon.Information, 
   MessageBoxDefaultButton.Button1, 
   MessageBoxOptions.ServiceNotification
);