Dynamic Dialogs, enable an EditBox

Started by Tech68, December 28, 2021, 11:08:44 AM

Previous topic - Next topic

Tech68

All,
In a Dynamic Dialog situation, I want to disable an EditBox until a RadioButton is selected. The Dialog box by default has the EditBox set to disable
In DialogControlState, @csDisabled is listed, but I need the opposit - to enable.
I cannot see another function to use Nor the opposite of @csDisabled

Please help

kdmoyers

It's been a while, but from memory, it's a little odd:
you either Add the disabled style or Remove the disabled style

Code (winbatch) Select
DialogControlState(DH,"bigbutton",@dcsAddStyle,@csDisabled) ; make disabled

DialogControlState(DH,"bigbutton",@dcsRemStyle,@csDisabled) ; make enabled
The mind is everything; What you think, you become.

td

The online documentation:

https://docs.winbatch.com/mergedProjects/WindowsInterfaceLanguage/html/WILAK_D__043.htm

It's also available in the Consolidated WIL Help file which can be found on systems with WinBatch installed.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade