Jump to content

Recommended Posts

Posted

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

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
  • Recently Browsing   0 members

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