Search the Community
Showing results for tags 'GUICtrlCreateContextMenu'.
-
Hi, not sure if this really a conflict or im doing something wrong, but what is happening is that if i have $WS_EX_CONTROLPARENT in place, i can move the GUI around as expected, but there's no context menu, removing it the menu is back. #include <WindowsConstants.au3> $GUI = GUICreate('test', 300, 200, 150, 300, $WS_POPUP, $WS_EX_CONTROLPARENT) GUISetState(@SW_SHOW) Local $MainMenu = GUICtrlCreateContextMenu(-1) $OptMenu = GUICtrlCreateMenu("Options", $MainMenu) GUICtrlCreateMenuItem("111", $OptMenu, 0, 0) GUICtrlCreateMenuItem("222"
-
Hi, guys! I'm trying to create a Tab control which has a Context Menu on each Tab Item. But, since all Tab Items are part of the same Tab control, I will need to create only one Context Menu at time, deleting and creating a new one each time a new Tab Item is selected. My problem is that I can delete the old Context Menu in fact, but I'm not being able to create a new one once the form is created. This is a simplified example that represents the script that I'm trying to create: #include <GUIConstantsEx.au3> ; Variables Dim $Tab, $SelectedTab, $MainForm, $TabItem Dim $TabContext
-
Screenshot attached! I have a background image where all the buildings are black. When the distribution switches in the buildings respond to a ping, the buildings turn green. Dim $hImgMain = GUICtrlCreatePic("img\fullmap-nologo.gif",0,0,768,635) Dim $hImgAud = GUICtrlCreatePic("",263,287,36,27) Dim $hImgBus = GUICtrlCreatePic("",181,321,97,28) Dim $hImgCtr = GUICtrlCreatePic("",181,239,97,82) ... If ping($sIpAud) Then GUICtrlSetImage($hImgAud,"img\Green-Aud.gif") I'd like each building to have a context menu: $hMenuAud = GUICtrlCreateContextMenu($hImgAud) $hMenuAud1 = GUICtrlCr
- 2 replies
-
- pic
- context menu
-
(and 2 more)
Tagged with: