class CustomTableItem
Attributes
backcolor[RW]
color[RW]
Public Instance Methods
drawContent(table, unusable_dc, x, y, w, h)
click to toggle source
Calls superclass method
# File lib/watobo/gui/conversation_table.rb, line 5 def drawContent table, unusable_dc, x, y, w, h FXDCWindow.new(table) { |dc| if @color and not selected? if @backcolor dc.foreground = @backcolor hg = table.horizontalGridShown? ? 1 : 0 vg = table.verticalGridShown? ? 1 : 0 dc.fillRectangle(x + vg, y + hg, w - vg, h - hg) end dc.foreground = @color def dc.setForeground color 1 # stop super from setting color back end end dc.setFont unusable_dc.getFont super table, dc, x, y, w, h } end