$WS_MINIMIZEBOX and $WS_SIZEBOX cause it to appear on the taskbar as it should. $WS_MINIMIZEBOX does not trigger a context menu but $WS_SIZEBOX does give the taskbar item a context menu "Maximize" appears disabled as it should cause $WS_MAXIMIZEBOX is not declared, but "Close" is enabled, is there anyway to disable the "Close" option?
The reason this is an issue is that it will give problems when there is another GUI in the script present. and the selector should not be able to receive a $GUI_EVENT_CLOSE message while running.
Func _ScrRec_RegionSelector($width = 640, $height = 480, $left = -1, $top = -1, $border = 5) Local $rc[2] $rc[0] = GUICreate('Selector', $width, $height, $left, $top, BitOR($WS_SIZEBOX, $WS_MINIMIZEBOX, $WS_POPUP), BitOR($WS_EX_TOPMOST, $WS_EX_LAYERED)) $rc[1] = GUICtrlCreateLabel('', $border, $border, $width - ($border * 2), $height - ($border * 2), -1, 0x00100000) GUICtrlSetResizing(-1, 102) GUICtrlSetBkColor(-1, 0xF60D16) GUISetBkColor(0x41A317, $rc[0]) _WinAPI_SetLayeredWindowAttributes($rc[0], 0xF60D16, 255) GUISetState() Return $rc EndFunc ;==>_ScrRec_RegionSelector





