Modify

Opened 15 years ago

Closed 15 years ago

#1895 closed Bug (Fixed)

Bugs in _GUIScrollBars_Init()

Reported by: neil.wilson@… 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 Jon, 15 years ago

Component: AutoItStandard UDFs
Owner: set to Gary

comment:2 by Jon, 15 years ago

Milestone: 3.3.7.2
Owner: changed from Gary to Jon
Resolution: Fixed
Status: newclosed

Fixed by revision [6000] in version: 3.3.7.2

Modify Ticket

Action
as closed The owner will remain Jon.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.