Custom Query
Results (40 - 42 of 3883)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#1276 | Fixed | _TicksToTime() displayed seconds increment at wrong time | Valik | Andrew |
Description |
In the _TicksToTime function the value for Seconds is derived by this line... $iSecs = Round(Mod($iTicks, 60)) causing the displayed seconds to increment at 500 ms. I believe the code should be... $iSecs = Int(Mod($iTicks, 60)) so seconds only increments at 1000 ms (like a normal clock). |
|||
#1277 | Fixed | _GDIPlus_ImageGetGraphicsContext needs to be "disposed" in help example | Jon | Andrew |
Description |
The help file gives an example of how to use this function. At the end of the example, the object is NOT DISPOSED. For a novice (like myself) it is not obvious that this object needs to be disposed (otherwise massive memory leak). It seems all the other "create" functions have a matching "dispose" function but not this one. Through trail-and-error I found the required line was... _GDIPlus_GraphicsDispose($hGraphics) |
|||
#3736 | Duplicate | _GUICtrlTreeView_Sort fails when there is just one item in TreeView | Andy289 | |
Description |
I know that there is nothing to sort if you have just one item but a proper validation should be performed to avoid an array subscript dimension range exceeded error. Func _GUICtrlTreeView_Sort($hWnd) If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) Local $iItemCount = _GUICtrlTreeView_GetCount($hWnd) ; <------------- if $iItemCount = 1 If $iItemCount Then Local $aTreeView[$iItemCount], $i = 0 ; <------------- this array has just an index ; get only A child at each level Local $hHandle = _GUICtrlTreeView_GetFirstItem($hWnd) $aTreeView[1] = $hHandle ; <------------- and this would fail $aTreeView[0] = 2 __GUICtrlTreeView_SortGetFirstChild($hWnd, $hHandle, $aTreeView) ReDim $aTreeView[$aTreeView[0]] $aTreeView[0] = 0 For $i = 0 To UBound($aTreeView) - 1 _SendMessage($hWnd, $TVM_SORTCHILDREN, 0, $aTreeView[$i], 0, "wparam", "handle") ; Sort the items in root Next EndIf EndFunc ;==>_GUICtrlTreeView_Sort |