Kaso Posted October 17, 2005 Posted October 17, 2005 I'm sure its been cover but i didn't find anything. is it possible to change the font size in a message box or is it totally dependant upon windows settings?
Mikey Posted October 17, 2005 Posted October 17, 2005 I'm sure its been cover but i didn't find anything. is it possible to change the font size in a message box or is it totally dependant upon windows settings?Hi Kaso. I tried the below code and was able to change font size. BTW, it was in the manual.#include <GUIConstants.au3> GUICreate ("My GUI default font") ; will create a dialog box that when displayed is centered $font="Comic Sans MS" GUISetFont (9, 400, 4, $font); will display underlined characters GUICtrlCreateLabel ("underlined label",10,20) GUISetFont (9, 400, 2, $font); will display underlined characters GUICtrlCreateLabel ("italic label", 10,40) GUISetFont (9, 400, 8, $font); will display underlined characters GUICtrlCreateLabel ("strike label",10,60) GUISetState () ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend
LxP Posted October 17, 2005 Posted October 17, 2005 You are correct Kaso -- the text size of a Windows message box is entirely dependent on Windows settings and there is no way to adjust this on a per-box basis. Your best bet is to adopt Mikey's suggestion and assemble a GUI made for the purpose. You can then use your own sizes, styles, icons, placements, button labels etc. AnonymousX 1
Kaso Posted October 17, 2005 Author Posted October 17, 2005 yeah thats what i thought. I have yet to try GUI's but as I can see they are impressive. Thats my new project to learn how to make them use gui's instead of inputbox and msgbox. Thanks Mikey I did see that gui font thing but it doesn't work for msgbox.
Mikey Posted October 18, 2005 Posted October 18, 2005 yeah thats what i thought. I have yet to try GUI's but as I can see they are impressive. Thats my new project to learn how to make them use gui's instead of inputbox and msgbox. Thanks Mikey I did see that gui font thing but it doesn't work for msgbox.Sorry Kaso, as you can see I'm a newb. You needed it for 'msgbox', not 'dialogbox'. I hope I didn't sound condescending when I mentioned it was in the manual, I'm sure you did a search in the manual as well.
Kaso Posted October 18, 2005 Author Posted October 18, 2005 hey no prob, i didn't take it offensively. I know you over looked what I was asking. But I am going to try GUI's so I will be referencing your post for the font size for it. thanks again
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