Displaying 1 result from an estimated 1 matches for "setbackcolor".
Did you mean:
selbackcolor
2008 Aug 20
0
FXTable scrolling problem
...ws as the table scrolls down
To accomplish this I subclassed FXTable (class Table < FXTable) and defined
the initialize method as shown below:
def initialize(parent)
super(parent, :opts=>LAYOUT_FILL|TABLE_COL_SIZABLE|TABLE_ROW_SIZABLE,
:padding => 2)
self.editable=false
setBackColor(FXRGB(255, 255, 255))
setCellColor(1, 0, FXRGB(240, 255, 240))
setCellColor(1, 1, FXRGB(240, 255, 240))
rowHeader.width=30
verticalScrollBar.connect(SEL_COMMAND, method(:table_scrolled))
end
I also defined the table_scrolled method as below to check that the event
gets ha...