Sign in to follow this  
Followers 0
HockeyFan

MsgBox Text

6 posts in this topic

B)

How can I change the text in a MsgBox to display a different font and size?

Thanks! :o

Share this post


Link to post
Share on other sites



B)

How can I change the text in a MsgBox to display a different font and size?

Thanks! :o

I'm pretty sure you can't.

I guess you can make a gui-like msbox and tweak it any way you like but that would be overkill.

Share this post


Link to post
Share on other sites

B)

How can I change the text in a MsgBox to display a different font and size?

Thanks! :o

You could always use SplashTextOn

SplashTextOn("Title", "Message goes here.", -1, -1, -1, -1, 4, "", 24)
Sleep(3000)
SplashOff()


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

You could always use SplashTextOn

Yes...excellent idea...but I wanted an OK button for the user to click to control when the program continues.

Share this post


Link to post
Share on other sites

Yes...excellent idea...but I wanted an OK button for the user to click to control when the program continues.

Here is my pathetic attempt

#include <GuiConstants.au3>

GuiCreate("My message box", 400, 78,(@DesktopWidth-400)/2, (@DesktopHeight-78)/2)

$Button_1 = GuiCtrlCreateButton("OK", 340, 20, 50, 30)
$Label_2 = GuiCtrlCreateLabel("This is a message", 20, 20, 300, 40)
GUICtrlSetFont($Label_2, 24)
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Button_1
        ExitLoop
    EndSelect
WEnd


Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

Here is my pathetic attempt

#include <GuiConstants.au3>

GuiCreate("My message box", 400, 78,(@DesktopWidth-400)/2, (@DesktopHeight-78)/2)

$Button_1 = GuiCtrlCreateButton("OK", 340, 20, 50, 30)
$Label_2 = GuiCtrlCreateLabel("This is a message", 20, 20, 300, 40)
GUICtrlSetFont($Label_2, 24)
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $Button_1
        ExitLoop
    EndSelect
WEnd
Thanks...that should do the trick.

B)

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