Custom Query


Show under each result:

Results (172 - 174 of 3841)

Ticket Resolution Summary Owner Reporter
#608 Fixed GUICtrlSetBkColor not working properly on ListView control Jpm MsCreatoR <mscreator@…>

When GUICtrlSet(Bk)Color() function used on ListView control, there is need to redraw the window to see the changes:

Reproducing Example:

#include <GuiConstants.au3>

$hGUI = GUICreate("Test Script", 570, 200)

$ListView = GUICtrlCreateListView("Column", 20, 10, 260, 150)
GUICtrlCreateListViewItem("Item", $ListView)

$ListBox = GUICtrlCreateList("", 290, 10, 260, 150)

$SetColor_Button = GUICtrlCreateButton("Set Bk Color", 20, 170, 70, 20)
$Redraw_CheckBox = GUICtrlCreateCheckbox("Redraw", 120, 170)

GUISetState(@SW_SHOW, $hGUI)

While 1
	Switch GUIGetMsg()
		Case $SetColor_Button
			GUICtrlSetBkColor($ListBox, 0x0000FF)
			GUICtrlSetBkColor($ListView, 0x0000FF)
			GUICtrlSetColor($ListView, 0xFFFFFF)
			If GUICtrlRead($Redraw_CheckBox) = 1 Then _
				DllCall("User32.dll", "int", "RedrawWindow", "hwnd", $hGUI, "ptr", 0, "int", 0, "int", 5)

As the example shows, with other controls (such as ListBox) the function work correctly, but ListView needs to be redrawn.

Reproducable on,,, (beta).


#610 Fixed WinAPI.au3 _WinAPI_CreateFile() does not return 0 on failure as specified in beta help Gary Bowmore

Tested on WinXP SP3 AutoIt Beta WinAPI.au3

This may be either a documentation issue or a UDF bug

From Beta Help Return Value

Success: The open handle to a specified file Failure: 0

From testing I get 0xFFFFFFFF returned on failure

#Include <WinAPI.au3>
$sfile = "C:\I do not exist.txt" 
$hFile = _WinAPI_CreateFile($sFile, 2, 2, 2)
MsgBox(0,"File Handle", $hFile)
#615 Fixed License needs fixed Valik Valik

Reminder for Jon that the license is not right. Discussion here (private forum).

Setting as blocking, it needs fixed before the next stable release.

Note: See TracQuery for help on using queries.