Sign in to follow this  
Followers 0
WTS

context menu with icons?

2 posts in this topic

#1 ·  Posted (edited)

Hey there, how do I create a context menu with icons?

Oops I forgot code. thanks

#include <GUIConstants.au3>
; == GUI generated with Koda ==
$Form2 = GUICreate("AForm1", 900, 600, 149, 111)
GUISetState(@SW_SHOW)
$Menu = GUICtrlCreateContextMenu()
$Menu2 = GUICtrlCreateMenuitem('Hello World',$Menu)
GUICtrlSetImage('ico.ico',$Menu2)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;;;;;
    EndSelect
WEnd
Exit
Edited by WTS

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