LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to have a List box as normal control and its check column as indicator?

Hello,

I have a List box with some items on it that the user can select.
On this List box, the check column is displayed and permit delivering some state information to the user. The problem is, the user can click the checkmarks on or off.
For my application, the check column should not be changeable from the user.

How can I do that?

I thought the ATTR_DRAGGABLE_MARK could solve that, but setting or restting it doesn't change anything.
My other question is: what is ATTR_DRAGGABLE_MARK? I didn't understand it from the CVI help...


Rac,
using CVI 7.0
0 Kudos
Message 1 of 3
(3,036 Views)
To exclude the possibility to toggle the check box with the mouse, you can swallow (=discard) mouse event if the pointer is inside this column. On mouse events, eventData2 holds mouse horizontal position, so you can swallow mouse event if this value is below some appropriate value.

Remember that you must filter out the enter and spacebar keys too, that produce the same effect of mouse click, that is toggle the checkmark.

Look at the attached sample project.

Roberto

Message Edited by Roberto Bozzolo on 05-18-2005 03:07 PM



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(3,035 Views)
Well done, well explained...

Thanks Roberto!
0 Kudos
Message 3 of 3
(3,025 Views)