MLJman Posted May 5, 2006 Share Posted May 5, 2006 I have been trying to find if it is possible to change the Font size and color in MsgBox. I have found how to do it with GUICtrlCreateButton, but can it be done with MsgBox? I have looked through this Form but got a bit muddled. Sorry if it is obvious, but I am new at this Here is my example code: #include <GUIConstants.au3> Dim $again Dim $Choice Do GUICreate(" Chose ID and Quantity",250, 150) $OK = GUICtrlCreateButton ("OK", 100, 60, 50, 30, $BS_DEFPUSHBUTTON) GUICtrlSetFont (-1,11, 600, -1, "Arial") $Cancel = GUICtrlCreateButton ( "Cancel", 100, 110, 50, 20) GUISetState () While 1 $msg = GUIGetMsg() Select Case $msg = $OK $Choice="You have Selected OK" GUIDelete($OK) ExitLoop Case $msg = $Cancel $Choice="You have Selected Cancel" GUIDelete($Cancel) ExitLoop Case $msg = $GUI_EVENT_CLOSE MsgBox(0, "GUI Event", "You clicked CLOSE! Exiting...") Exit EndSelect Wend ;Can the font size/color be changed here? $again = MsgBox(36, "Try Again", "Do you want to try again?") GUIDelete($Cancel) Until $again = 7 Exit Link to comment Share on other sites More sharing options...
Groumphy Posted May 5, 2006 Share Posted May 5, 2006 (edited) Hello, I think that MsgBox are defined by the system. But why not use a second GUI ? G. Edited May 5, 2006 by Groumphy ----------------------GroumphyMore information about me [Fr] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now