Custom Query (3927 matches)
Results (400 - 402 of 3927)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #3587 | Fixed | _ArrayAdd - do not add | ||
| Description |
_ArrayAdd is not working anymore expect for Boolean array. Standard examples are not working properly anymore. Array is extended, but value not added. to fix just change comparison
to
it seems not 100 % logical, but it works |
|||
| #3586 | Fixed | _ArraySwap, error in description of parameter $bCol | ||
| Description |
*it is: [optional] If True then for 2D array above parameters refer to rows; if False (default) above parameters refer to columns *should be: [optional] If True then for 2D array above parameters refer to columns; if False (default) above parameters refer to rows The example works correct hence the description has a glitch ;-) |
|||
| #3585 | Fixed | pb _GUICtrlTreeView_Sort not sorting level 1 treeview -- With Solution | ||
| Description |
with deep tree, _GUICtrlTreeView_Sort does not sort it. Proposed solution : for detail see post Solution ; #FUNCTION# ====================================================================================================================
; Author ........: Gary Frost (gafrost)
; Modified.......: mlipok, guinness, gillesg
; Ths time optimized ===============================================================================================================================
Func _GUICtrlTreeView_Sort3($hWnd)
If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd)
Local $iItemCount = _GUICtrlTreeView_GetCount($hWnd)
If $iItemCount Then
Local $aTreeView[$iItemCount], $i=0
; get only A child at each level
Local $hHandle = _GUICtrlTreeView_GetFirstItem($hWnd)
$aTreeView[1]=$hHandle
$aTreeView[0]=2
__GUICtrlTreeView_SortGetFirstChild($hWnd, $hHandle, $aTreeView )
redim $aTreeView[$aTreeView[0]]
$aTreeView[0]=0
ConsoleWrite(_ArrayToString($aTreeView,@CRLF)&@CRLF)
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_Sort3
func __GUICtrlTreeView_SortGetFirstChild($hWnd, $hItem, byref $aTreeView)
Local $hChild = _GUICtrlTreeView_GetFirstChild($hWnd, $hItem)
if $hChild <> 0 then
$aTreeView[$aTreeView[0] ]= $hChild
$aTreeView[0]+=1
__GUICtrlTreeView_SortGetFirstChild($hWnd,$hChild,$aTreeView)
EndIf
local $hNext = _GUICtrlTreeView_GetNextSibling($hWnd, $hItem)
if $hNext <> 0 then __GUICtrlTreeView_SortGetFirstChild($hWnd,$hnext,$aTreeView)
EndFunc
Hope it help |
|||
