Method: CDK::BUTTONBOX#draw

Defined in:
lib/cdk/buttonbox.rb

#draw(box) ⇒ Object

This draws the buttonbox box widget.



250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
# File 'lib/cdk/buttonbox.rb', line 250

def draw(box)
  # Is there a shadow?
  unless @shadow_win.nil?
    Draw.drawShadow(@shadow_win)
  end

  # Box the widget if they asked.
  if box
    Draw.drawObjBox(@win, self)
  end

  # Draw in the title if there is one.
  self.drawTitle(@win)

  # Draw in the buttons.
  self.drawButtons
end