Author Topic: Dynamic Dialogs, enable an EditBox  (Read 211 times)

Tech68

  • Newbie
  • *
  • Posts: 1
Dynamic Dialogs, enable an EditBox
« 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

kdmoyers

  • Sr. Member
  • ****
  • Posts: 452
Re: Dynamic Dialogs, enable an EditBox
« Reply #1 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
DialogControlState(DH,"bigbutton",@dcsAddStyle,@csDisabled) ; make disabled

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

td

  • Tech Support
  • *****
  • Posts: 4044
    • WinBatch
Re: Dynamic Dialogs, enable an EditBox
« Reply #2 on: December 28, 2021, 05:13:01 pm »
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