Jump to content
Sign in to follow this  
Bert

GUICtroCreateMenu and font size

Recommended Posts

GrungeRocker

What about posting your code?


[font="Verdana"]In work:[list=1][*]InstallIt[*]New version of SpaceWar[/list] [/font]

Share this post


Link to post
Share on other sites
Bert

I didn't think this question required it, but sure...here is a example:

You will notice I tried to change the menu and the menu item. Neither one would change.

#include <GuiConstants.au3>

GuiCreate("MyGUI", 215, 192,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))

$Button_1 = GuiCtrlCreateButton("Button1", 60, 90, 80, 30)
$menu = GUICtrlCreateMenu("test")
$menu_item = GUICtrlCreateMenuItem("menu item", $menu)
GUICtrlSetFont($menu, 12, 900)
GUICtrlSetFont($menu_item, 16, 900,2)


GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
        ;;;
    EndSelect
WEnd
Exit

Share this post


Link to post
Share on other sites
Bert

ok, that makes sense. The reason I ask is I made a menu toolbar a few days ago and I had a concern of a user having a different font size. This would have broken the thing, and I wanted to put in something so it would keep it from breaking.

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  

×