04-01-2016 06:18 AM
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.
04-01-2016 07:20 AM
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);
04-01-2016 07:23 AM
Thanks!