WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: Tech68 on December 28, 2021, 11:08:44 AM

Title: Dynamic Dialogs, enable an EditBox
Post by: Tech68 on December 28, 2021, 11:08:44 AM
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
Title: Re: Dynamic Dialogs, enable an EditBox
Post by: kdmoyers on December 28, 2021, 11:36:25 AM
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
Title: Re: Dynamic Dialogs, enable an EditBox
Post by: td on December 28, 2021, 05:13:01 PM
The online documentation:

https://docs.winbatch.com/mergedProjects/WindowsInterfaceLanguage/html/WILAK_D__043.htm (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.