How to enable a TGButton that's been disabled?

How does one undo TGButton::SetState(kButtonDisabled)? The EButtonState enum has no “enabled” item.

I disable a button if its action would interefere with an ongoing task. When its ok to use that button’s services, I’d like to re-enable it. Is there a better way to do this?

I’m using win32gdk v 3.10/00 (9/25/03) on win2K.

Thanks,
Ed Oltman

[quote=“eoltman”]How does one undo TGButton::SetState(kButtonDisabled)? The EButtonState enum has no “enabled” item.

I disable a button if its action would interefere with an ongoing task. When its ok to use that button’s services, I’d like to re-enable it. Is there a better way to do this?

I’m using win32gdk v 3.10/00 (9/25/03) on win2K.

Thanks,
Ed Oltman[/quote]

Use eg SetState(kButtonDown);

Hi Ed,
To enable the disabled button you can call SetState(kButtonUp) or SetState(kButtonDown) methods.

Best regards, Ilka