Page MenuHomeFeedback Tracker

RscListNBox doesn't handle any other button , except LMB
Feedback, NormalPublic

Description

While onMouseButtonUp EH fires up and returns the pressed Button, the LNB doesn't "react" to any input of the other Mouser Buttons.

This would open up the possibility to use the RMB and other Mouse Buttons, to select a line.

So:

RMB - Same mechanic as LMB (selecting Lines)

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Ingame UI
Steps To Reproduce

Create RscListNBox,

_disp = findDisplay 46 createDisplay "RscDisplayEmpty";
_ctrl = _disp ctrlCreate ["RscListNBox", -1];
_ctrl ctrlAddEventhandler ["MouseButtonDown",{systemchat str ["Button: ",(_this#1)," - Selected Row: ", lnbCurSelRow (_this#0)];}];
_ctrl lnbSetColumnsPos [0.1,0.4,0.7];
_ctrl lnbAddRow ["bla"];
_ctrl lnbAddRow ["bla2"];
_ctrl lnbAddRow ["bla3"];

Press RMB.

Additional Information

Probably the same with the normal RscListBox

Event Timeline

Dscha created this task.Tue, May 19, 7:57 PM
Dscha updated the task description. (Show Details)Tue, May 19, 11:00 PM
BIS_fnc_KK changed the task status from New to Reviewed.
dedmen added a subscriber: dedmen.Sat, May 23, 3:39 PM

Problem found. Its a typo that should really be affecting alot more than just ListBox.

dedmen claimed this task.Sat, May 23, 3:40 PM
dedmen changed the task status from Reviewed to Assigned.
dedmen added a subscriber: BIS_fnc_KK.
dedmen added a comment.EditedSat, May 23, 3:46 PM

?? Cannot repro? Your code above. I found a typo in our code but seems to be unrelated and your thing seems to work

Ah I missunderstood the report, you want it to select a line, and not to ignore it.
But.. why don't you just add that via script if you need it? Forcing right click to select a line could break scripted solutions that do different actions on right click?

does this need more info or cleared up in direct chat? @dedmen

dedmen changed the task status from Assigned to Feedback.Mon, May 25, 5:09 PM