Method: AutoItX3::Control#disable
- Defined in:
- lib/AutoItX3/control.rb
#disable ⇒ Object
Disables (“grays out”) self.
Return value
nil.
Raises
- Au3Error
-
Failed to disable the control.
Example
ctrl.disable
101 102 103 104 105 106 107 108 |
# File 'lib/AutoItX3/control.rb', line 101 def disable Control.functions[__method__] ||= AU3_Function.new("ControlDisable", 'SSS', 'L') res = Control.functions[__method__].call(@title.wide, @text.wide, @c_id.wide) if res == 0 raise(Au3Error, "Could not disable control '#{@c_id}' in '#{@title}'!") end nil end |