desensitizing selected elements of CW_BGROUP [message #12557] |
Wed, 19 August 1998 00:00 |
Richard G. French
Messages: 65 Registered: June 1997
|
Member |
|
|
I would like to display a set of non-exclusive buttons in a group,
but to be able to apply a 'sensitivity mask' to the group which
would sensitize only those buttons that have a 1 in the mask,
desensitizing the ones with a 0. WIDGET_CONTROL lets you
desensitize and ENTIRE compound widget - what I want to do is
to desensitize only selected buttons in the button group. I've
looked at the CW_BGROUP and WIDGET_CONTROL documentation and
don't see a way to do this. Presumably, one could monkey with
the CW_BGROUP code and implement a SENSITIVE=[0,1,0,1,1] kind
of keyword, but I am not eager to do that. Suggestions welcome!
The workaround I have so far is to apply this mask in
my event handler and simply ignore events that are insensitive.
The down side of this is that the labels for those buttons are
not dimmed, so the user does not have a visual indication that
those buttons are inactive.
Thanks for any suggestions. Please reply to
rfrench@ahab.wellesley.edu as well as to this group. Net is flakey
here.
Dick French
|
|
|