Sign in to follow this  
Followers 0
Bert

GUICtroCreateMenu and font size

5 posts in this topic




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

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

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