HockeyFan Posted October 21, 2005 Posted October 21, 2005 How can I change the text in a MsgBox to display a different font and size? Thanks!
fmen Posted October 21, 2005 Posted October 21, 2005 How can I change the text in a MsgBox to display a different font and size?Thanks! 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.
BigDod Posted October 21, 2005 Posted October 21, 2005 How can I change the text in a MsgBox to display a different font and size?Thanks! You could always use SplashTextOnSplashTextOn("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
HockeyFan Posted October 21, 2005 Author Posted October 21, 2005 You could always use SplashTextOnYes...excellent idea...but I wanted an OK button for the user to click to control when the program continues.
BigDod Posted October 21, 2005 Posted October 21, 2005 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
HockeyFan Posted October 21, 2005 Author Posted October 21, 2005 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 WEndThanks...that should do the trick.
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