Search the Community
Showing results for tags '$ws_ex_controlparent'.
-
I'm trying to implement a scrolling list of controls. I have it sort of working using the GUIScrollBars_Ex UDF by @Melba23 found here. I also want to be able to tab through the controls, which I have accomplished by adding $WS_EX_CONTROLPARENT to the child GUI. The problem is that with that style applied, the scrollbar doesn't act like a scrollbar, instead it acts as a title bar to the child GUI letting you drag the it around (and you can even "maximize" it by double clicking). Any ideas? #include <GUIConstants.au3> #include "GUIScrollbars_Ex.au3" $iButtonCount = 30 $hParent = GUICreate('Example', 300, 230) $hChild = GUICreate('', 300, 200, 0, 0, BitOR($WS_CHILD, $WS_TABSTOP), $WS_EX_CONTROLPARENT, $hParent) For $i = 0 To $iButtonCount GUICtrlCreateButton('Button in list', 0, $i*30, 300, 30) Next GUISwitch($hParent) GUICtrlCreateButton('More Buttons', 0, 200, 150, 30) GUICtrlCreateButton('More Buttons', 150, 200, 150, 30) GUISetState(@SW_SHOW, $hParent) GUISetState(@SW_SHOW, $hChild) _GUIScrollbars_Generate($hChild, 100, $iButtonCount * 30+20) While GUIGetMsg() <> $GUI_EVENT_CLOSE WEnd
-
- gui
- scrollbars
-
(and 2 more)
Tagged with:
-
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", $OptMenu, 1, 0) GUICtrlCreateMenuItem("333", $OptMenu, 2, 0) GUICtrlCreateMenuItem("444", $OptMenu, 3, 0) While 1 Sleep(100) WEnd