Custom Query (3921 matches)
Results (31 - 33 of 3921)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #45 | Wont Fix | Resizing GUI after _GUICtrlStatusBar_EmbedControl (Marquee Progress bar) | ||
| Description |
The progress bar disappears when you try to resize the gui in the following example. I've tried in a larger example to resize the status bar and re-embed the control after the WM_SIZE message with the same results. If you enable the commented code and resize the gui it will hard crash AutoIt. #include <GuiConstantsEx.au3>
#include <GuiStatusBar.au3>
_Main()
Func _Main()
Local $hGUI, $hProgress, $hInput, $input, $progress, $hStatus
Local $aParts[4] = [80, 160, 300, -1]
; Create GUI
$hGUI = GUICreate("StatusBar Embed Control", 400, 300)
GUISetStyle(BitOR($WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_SIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU))
$hStatus = _GUICtrlStatusBar_Create($hGUI)
_GUICtrlStatusBar_SetMinHeight($hStatus, 20)
_GUICtrlStatusBar_SetParts($hStatus, $aParts)
_GUICtrlStatusBar_SetText($hStatus, "Part 1")
_GUICtrlStatusBar_SetText($hStatus, "Part 2", 1)
; Embed a progress bar
$progress = GUICtrlCreateProgress(0, 0, -1, -1, $PBS_SMOOTH)
$hProgress = GUICtrlGetHandle($progress)
_GUICtrlStatusBar_EmbedControl($hStatus, 2, $hProgress)
; *** Warning *** Resizing the window with the following enabled will hard crash AutoIt.
;~ $progress = GUICtrlCreateProgress(0, 0, -1, -1, $PBS_MARQUEE)
;~ $hProgress = GUICtrlGetHandle($progress)
;~ _GUICtrlStatusBar_EmbedControl ($hStatus, 3, $hProgress)
;~ _SendMessage($hProgress, $PBM_SETMARQUEE, True, 200)
GUISetState()
EndFunc ;==>_Main
Do
Until GUIGetMsg() = $GUI_EVENT_CLOSE
GUIDelete()
|
|||
| #46 | Fixed | Wrong example _ArrayTrim in help | ||
| Description |
#include <Array.au3> Dim $avArray[5] $avArray[0] = "ab" $avArray[1] = "bc" $avArray[2] = "cd" $avArray[3] = "de" $avArray[4] = "ef" $aNewArray = _ArrayTrim( $avArray, 1, 1,1,3) _ArrayDisplay($aNewArray,"demo _ArrayTrim") Exit ;The new array in order should now be "a", "b" , "c" , "d", "e". Should Be #include <Array.au3> Dim $avArray[5] $avArray[0] = "ab" $avArray[1] = "bc" $avArray[2] = "cd" $avArray[3] = "de" $avArray[4] = "ef" $aNewArray = _ArrayTrim( $avArray, 1, 1,0,4) _ArrayDisplay($aNewArray,"demo _ArrayTrim") Exit ;The new array in order should now be "a", "b" , "c" , "d", "e". _ArrayTrim( $avArray, 1, 1,0,4) instead of _ArrayTrim( $avArray, 1, 1,1,3) |
|||
| #48 | Fixed | _GUICtrlTab_GetItemState, _GUICtrlTab_SetItemState not working | ||
| Description |
State Mask not set in _GUICtrlTab_GetItem and _GUICtrlTab_SetItem |
|||
Note:
See TracQuery
for help on using queries.
