Method: CDK::CDKOBJS#setBackgroundColor

Defined in:
lib/cdk/cdk_objs.rb

#setBackgroundColor(color) ⇒ Object

This sets the background color of the widget.



169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/cdk/cdk_objs.rb', line 169

def setBackgroundColor(color)
  return if color.nil? || color == ''

  junk1 = []
  junk2 = []
  
  # Convert the value of the environment variable to a chtype
  holder = CDK.char2Chtype(color, junk1, junk2)

  # Set the widget's background color
  self.setBKattr(holder[0])
end