[fxruby-users] detecting row and column selections in an FXTable
Lyle Johnson
lyle at knology.net
Mon Mar 27 22:21:32 EST 2006
On Mar 27, 2006, at 8:03 PM, Mark Volkmann wrote:
> When I click a column header, I get a separate event for every cell in
> that column.
> Is there a way to just get one event that says a column header (or a
> row header) was selected?
FOX calls the selectColumn() method when you click on a column header,
so I think you might be able to pull this off if you subclass FXTable
and override its selectColumn() method, e.g.
class MyTable < FXTable
def selectColumn(col, notify=false)
puts "selected column #{col}"
super
end
end
Hope this helps,
Lyle
More information about the fxruby-users
mailing list