07-10-2023 07:58 AM
@MGiacomet wrote:
>>Your MCLB datatype is defined as a scalar (selection mode 0 or 1 item or 1 item
Ok, my bad in the pic; but the (wrong) behavior is the same even if set for multiple selection
Seems fine here. See attached. As I said, you still have to decide which row you start from.
>>Your MCLB doesn't have the key focus
Setting Key Focus puts an extra border around the MCLB, which isn't shown (or needed) once you do a mouse click to start the selection
Fair enough. I don't particularly like the look of the border either, but as I said, I don't think I ever needed this.
07-10-2023 08:06 AM
And it looks like there are some workarounds for the key focus border:
https://forums.ni.com/t5/LabVIEW/How-do-I-get-rid-of-the-Key-Focus-object-border/m-p/844469#M383119
https://forums.ni.com/t5/LabVIEW/how-to-remove-String-key-focus-border/m-p/4054018#M1162990
07-11-2023 07:49 AM
Keeping "Focus" (pun intended), here...
There isn't really a way to programmatically start the selection (confirmed by NI's support); The MCLB needs a mouse click (you'll only see the dotted border around the selected item, thus indicating the selection starting point, if a mouse click happens) to start the selection.
07-11-2023 09:24 AM
@MGiacomet wrote:
Keeping "Focus" (pun intended), here...
There isn't really a way to programmatically start the selection (confirmed by NI's support); The MCLB needs a mouse click (you'll only see the dotted border around the selected item, thus indicating the selection starting point, if a mouse click happens) to start the selection.
Fair enough. I personally don't like the highlighting of a single cell and set the MCLB to highlight the entire row, so I don't mind, but it is true that even though it does provide the requested functionality, it doesn't behave in the exact same way as clicking it with the mouse does.
I think that if I had a user who wanted it to behave in exactly the same way as happens when you click, then I would work around this by simulating a mouse click on the relevant cell.
07-12-2023 07:28 AM
Yeah, tried that... but if the user moves the mouse, the simulated click may happen at the wrong row/cell. Haven't found a way to temporarily disable the mouse to prevent this.
Clearly a bug (oops, NI will say "by design" 😜) that should have had a fix already.
06-19-2024 08:28 AM
Hi,
I am facing this exact issue. I have 2 MCLBs, which are somehow connected, in which, if a row of the first one is clicked, specific items in the second Box must appear. I can use Porperty Node to highlight a row in the first MCLB, but this does not simulate the actual click, which must lead to showing the selection in the second table. Is there any news on this issue?