zhao Posted May 13, 2007 Posted May 13, 2007 (edited) How to create a button with menu like this? here is the picture: comicsdown_225.zipverycd_140.zipverycd_source_140.zip Edited February 1, 2008 by zhao
yxrkt Posted May 13, 2007 Posted May 13, 2007 context menu does the trick.. #include <GUIConstants.au3> Opt("GUIOnEventMode",1) $aa = GUICreate("",200,200,200,200) $button = guictrlcreatebutton('context',1,1,98,45) GUIctrlSetOnEvent(-1,'en') $context = guictrlcreatecontextmenu($button) $con1 = guictrlcreatemenuitem('la',$context) $button2 = guictrlcreatebutton('close',1,50,98,45) GUIctrlSetOnEvent(-1,'lukk') guisetstate() func lukk() exit EndFunc func en() mouseclick('right') endfunc while 1 sleep(10) Wend
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