Sign in to follow this  
Followers 0

Fonts Size/color In Msgbox

2 posts in this topic

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

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()
    Case $msg = $OK
       $Choice="You have Selected OK"
    Case $msg = $Cancel
        $Choice="You have Selected Cancel"
    Case $msg = $GUI_EVENT_CLOSE
      MsgBox(0, "GUI Event", "You clicked CLOSE! Exiting...")

;Can the font size/color be changed here?
 $again = MsgBox(36, "Try Again", "Do you want to try again?")
    Until $again = 7

Share this post

Link to post
Share on other sites

#2 ·  Posted (edited)


I think that MsgBox are defined by the system.

But why not use a second GUI ?


Edited by Groumphy

----------------------GroumphyMore information about me [Fr]

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0