LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabled control receiving events

Hello,

 

If I have set the attribute ATTR_DIMMED to 1 (active) on a control i.e. disable (or grayed out) the control. Will the callback function that is set for that control, receive any events at all? I have done this on a textbox control and the callback function does not get called anymore (until ATTR_DIMMED  is set 0).

 

Best regards,

Christian G.

0 Kudos
Message 1 of 3
(3,510 Views)

A dimmed control does not receive any event, neither the EVENT_DISCARD.

As an alternative to dimming the control, you may consider to set it as an indicator instead, either in the editor or programmatically calling SetCtrlAttribute (..., ..., ATTR_CTRL_MODE, VAL_INDICATOR);

 



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,503 Views)

Thanks!

0 Kudos
Message 3 of 3
(3,501 Views)