I'm using the MessageBox class to show errors to users, and while that might not be the right behavior, it's very convenient. This is a touchscreen application, however, so I need the 'ok' button to be much larger than it is (curse my inordinately large fingers!).
I think that if I increase the font size in the dialog box, I should be ok. Is there a way to do that? Or really, is there any way to increase the dialog size?
Thanks
WindowStyle = 'modal'; fontSize = 16; % Embed the required tex code in before the string. You can have the fontSize on line 22 be an input argument if you want.
The first parameter msg is the string displayed in the dialog box as the message. The second and third parameters are optional and respectively designate the type of buttons and the title displayed in the dialog box. MsgBox Function returns a value indicating which button the user has chosen.
As far as I'm aware you can't, as the 'normal' dialog boxes are using your default system font settings.
Roll your own is probably the best way forward. It's fairly trivial to do, and much fun! And you can build in things that the standard dialog doesn't support (without PInvoke magic) such as centering in the middle of the screen etc.
please check out my free to use FlexibleMessageBox which can be used instead of MessageBox and has a (static) FONT-Property.
Regards, Jörg
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With