Kogmedia Posted May 29, 2007 Share Posted May 29, 2007 Hello, I am wondering if this is possible, I have 4 GUICtrlCreateMenuitem with GUICtrlCreateMenu Is it possible to have the GUICtrlCreateMenuitem without GUICtrlCreateMenu? Thanks in Advance, Keith :"> [font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search Link to comment Share on other sites More sharing options...
Zedna Posted May 29, 2007 Share Posted May 29, 2007 GUICtrlCreateContextMenu() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
star2 Posted June 2, 2007 Share Posted June 2, 2007 try this example #include <GUIConstants.au3> GUICreate("TEST", 200, 110) $a = GUICtrlCreateMenu ("with Menu") $a_1 = GUICtrlCreateMenuitem("test",$a) $test = GUICtrlCreateMenuitem("no Menu",-1) $con = GUICtrlCreateContextMenu () $con_1 = GUICtrlCreateMenuitem ("Context",$con) GUISetState() While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $test Then MsgBox (-1,"!!!!!","you've clicked the test MenuItem" & @CRLF & @CRLF & "Without [ GUICtrlCreateMenu ] ") EndIf If $msg = $a_1 Then MsgBox (-1,"!!!!!","you've clicked the test MenuItem" & @CRLF & @CRLF & "With [ GUICtrlCreateMenu ] ") EndIf If $msg = $con_1 Then MsgBox (-1,"!!!!!","you've clicked the test MenuItem" & @CRLF & @CRLF & "With [ GUICtrlCreateContextMenu ] ") EndIf WEnd [quote]Baby you're all that I want, When you're lyin' here in my armsI'm findin' it hard to believe, We're in heavenAnd love is all that I need , And I found it there in your heartIt isn't too hard to see, We're in heaven .Bryan Adams[/quote].............................................................................[u]AUTOIT[/u] Link to comment Share on other sites More sharing options...
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