Opened 15 years ago
Closed 15 years ago
#1895 closed Bug (Fixed)
Bugs in _GUIScrollBars_Init()
| Reported by: | Owned by: | Jon | |
|---|---|---|---|
| Milestone: | 3.3.7.2 | Component: | Standard UDFs |
| Version: | 3.3.6.1 | Severity: | None |
| Keywords: | GUIScrollBars_Init | Cc: |
Description
In _GUIScrollBars_Init(), when setting up the $tSCROLLINFO struct for both horizontal and vertical scroll bars, the code in _GUIScrollBars_Init() assigns the fMask as follows:
DllStructSetData($tSCROLLINFO, "fMask", BitOR($_SCROLLBARCONSTANTS_SIF_PAGE, $_SCROLLBARCONSTANTS_SIF_PAGE))
This is incorrect as the range and page are being set for both scrollbars and should be:
DllStructSetData($tSCROLLINFO, "fMask", BitOR($_SCROLLBARCONSTANTS_SIF_RANGE, $_SCROLLBARCONSTANTS_SIF_PAGE))
Also _GUIScrollBars_Init() states that -1 can be given for the $iHMax and the $ivMax. If however, $ivMax is not given or $ivMax = -1, then nMax in the $tSCROLLINFO for the vertical scrollbar will = -1 and not the default value of 27.
DllStructSetData($tSCROLLINFO, "nMax", $ivMax)
This should be:
DllStructSetData($tSCROLLINFO, "nMax", $aSB_WindowInfo[$index][7])
Attachments (0)
Change History (2)
comment:1 by , 15 years ago
| Component: | AutoIt → Standard UDFs |
|---|---|
| Owner: | set to |
comment:2 by , 15 years ago
| Milestone: | → 3.3.7.2 |
|---|---|
| Owner: | changed from to |
| Resolution: | → Fixed |
| Status: | new → closed |

Fixed by revision [6000] in version: 3.3.7.2