[fxruby-users] SEL_REPLACED event in FXTable
philippe.lang at attiksystem.ch
Mon Jul 9 05:36:22 EDT 2007
fxruby-users-bounces at rubyforge.org wrote:
> On Jul 6, 2007, at 12:50 AM, Philippe Lang wrote:
>> I have noticed the SEL_REPLACED event, in an FXTable, is fired even
>> is the cell value is replaced with the same value. I'd like to avoid
>> that, and I wonder if there is anything in the Fox library I can use
>> to compare the new cell value to the old one, without having to code
>> some kind of "cell memory" externally.
> Looking at the FOX source code, I don't see a way to do that. I think
> you'd need to save a copy of the cell's content when they first click
> into it, and then compare the value after SEL_REPLACED to that.
Hi Lyle, hi Jeroen,
Thanks for the ideas. I simply had to save the current cell text at each
click and keystroke, and compare this value with the current cell value
in the SEL_REPLACED message handler, as Lyle suggested. If values are
identical, this is no update at all...
More information about the fxruby-users