Page MenuHomeFeedback Tracker

lnbSetTooltip in RscListNBox only show the value of the first column defined
Closed, ResolvedPublic

Description

See also:
https://community.bistudio.com/wiki/lnbSetTooltip

While it is possible to set tooltip on any column, only tooltip from the primary column 0 is displayed for the whole row under cursor, which makes adding tooltips to columns other than 0 impractical.

Details

Severity
None
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
Scripting
Steps To Reproduce
  1. Execute in console
TEST_Display = findDisplay 46 createDisplay "RscDisplayEmpty";
TEST_ListNBox = TEST_Display ctrlCreate ["RscListNBox", -1];
TEST_ListNBox lnbAddRow ["COL1", "COL2"];
TEST_ListNBox lnbSetTooltip [[0,0],"1"];
TEST_ListNBox lnbSetTooltip [[0,1],"2"];
  1. Hover the mouse over the first and the second element

Notice both are showing "1"

Event Timeline

dedmen added a subscriber: dedmen.Dec 9 2020, 4:28 PM

Eh, is that normal that your listbox, has actually 3 columns? the right one just has empty text...

New config property for ListNBox "tooltipPerColumn" bool

dedmen changed the task status from New to Feedback.Dec 10 2020, 12:30 PM

2.01.147037

dedmen claimed this task.Dec 10 2020, 12:30 PM
dedmen set Ref Ticket to AIII-53645.
LouMontana closed this task as Resolved.May 25 2021, 11:51 AM