Oxygen Basic

Programming => Problems & Solutions => Topic started by: chrisc on April 22, 2018, 02:30:46 PM

Title: how to disable a control
Post by: chrisc on April 22, 2018, 02:30:46 PM
in PB DDT  they have a statement to disable and enable a control like a button or combo box

http://www.manmrk.net/tutorials/basic/PowerBASIC/PBWIN8/control_disable.html (http://www.manmrk.net/tutorials/basic/PowerBASIC/PBWIN8/control_disable.html)

of course we can't use DDT commands in O2,  what would be its equivalent statement in SDK?

Title: Re: how to disable a control
Post by: José Roca on April 22, 2018, 02:56:57 PM
EnableWindow.
Title: Re: how to disable a control
Post by: Mike Lobanovsky on April 22, 2018, 03:10:18 PM
Yes. (http://www.oxygenbasic.org/forum/index.php?topic=1636.msg17943#msg17943)
Title: Re: how to disable a control
Post by: chrisc on April 22, 2018, 03:31:00 PM
Thanxx Jose and Mike