Displaying 2 results from an estimated 2 matches for "setcellcolor".
2005 Feb 02
0
Re: Problem with setCellColor ?
On Feb 2, 2005, at 5:47 PM, dragoncity wrote:
> am having problems with FXRuby 1.2 setting a cells color,
> In the following code snippet, the variables rcnt & FLDFilename
> are progam controlled, the two lines before the "puts" execute OK,
> neither of
> the setCellColor versions execute , both fail with
>
> `setCellColor'': table row out of bounds ,
>
> which is not true - have tried various fixed value indexes ( non work)
Please see the API documentation for FXTable, found here:
http://www.fxruby.org/doc/api/classes/Fox/FXTable.html
The v...
2008 Aug 20
0
FXTable scrolling problem
...sh 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 handled:
def table_scrolled(sender, select...