Jump to content

MsgBox Text


Recommended Posts

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()


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

Link to comment
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


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

Link to comment
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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...