Page MenuHomeFeedback Tracker

ctrlScrollValues/ctrlSetScrollValues work with values greater than 1
Closed, ResolvedPublic

Description

Both commands work with values greater than 1, despite that the BIKI states otherwise.

Details

Severity
None
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting
Steps To Reproduce
  • Add this code into initPlayerLocal.sqf:
#include "\a3\ui_f\hpp\defineResincl.inc"

fnc_handleEvent = {
    params ["_control"];

    // _control ctrlSetScrollValues [1, -1];

    hint (str (ctrlScrollValues _control));
};

[
    missionNamespace,
    "OnDisplayRegistered",
    {
        params ["_display"];

        if ((ctrlIDD _display) != IDD_FUTURAGEAR) exitWith { };

        (_display displayCtrl IDC_FG_UNIFORM_CONTAINER) ctrlAddEventHandler ["LBDblClick", { call fnc_handleEvent; }];
        (_display displayCtrl IDC_FG_VEST_CONTAINER) ctrlAddEventHandler ["LBDblClick", { call fnc_handleEvent; }];
        (_display displayCtrl IDC_FG_BACKPACK_CONTAINER) ctrlAddEventHandler ["LBDblClick", { call fnc_handleEvent; }];
    }
] call BIS_fnc_addScriptedEventHandler;
  • Open inventory and select a container whose item list has scrollbar.
  • Scroll the list down and double click on any item.
  • As you can see, ctrlScrollValues returns the Y value is greater than 1:

  • Uncomment commented line.
  • Open inventory and select a container whose item list has scrollbar.
  • Double click on any item.
  • As you can see, ctrlSetScrollValues doesn't scroll the list completely down.

Event Timeline

Schatten created this task.Oct 18 2023, 6:13 PM
This comment was removed by BIS_fnc_KK.
This comment was removed by BIS_fnc_KK.

Should be fixed in Revision: 151097

BIS_fnc_KK removed BIS_fnc_KK as the assignee of this task.Oct 24 2023, 4:30 PM
BIS_fnc_KK changed the task status from New to Feedback.
BIS_fnc_KK added a subscriber: BIS_fnc_KK.

Should be fixed in Revision: 151097

Glad to know about this! Thanks!

dedmen set Ref Ticket to AIII-56047.Dec 7 2023, 6:23 PM
Wulf closed this task as Resolved.Dec 21 2023, 5:32 PM
Wulf claimed this task.
Wulf added a subscriber: Wulf.

Fixed in Dev build 151218.