# Fxtable and SEL\_REPLACED?

**URL:** <https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078>\
**Category:** Ruby\
**Created:** [January 10, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078 "2006-01-10T19:09:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![S\_blackdog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@S\_blackdog](https://www.ruby-forum.com/u/S_blackdog)\
**Post date:** [January 10, 2006, 7:09pm UTC](https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078/1 "2006-01-10T19:09:20Z")

</div>

Hi there

i’ve been using fxruby 1.4 and it’s very good. one wrinkle though is  
i’m trying to get an event back from a table after i’ve entered data  
into a cell and don’t find any events that do the job by perusing the  
fxruby 1.4 docs.

however, the Fox1.4 class reference mentions a SEL\_REPLACE event, and  
indeed it seems i can use this in fxruby

@table.connect(SEL\_REPLACED) {|sender, selector, data|  
puts “got replacement”  
}

this seems to work, i.e. my message is printed, but it does generate  
the following assertion from fox

FXRuby.cpp:793: FXASSERT(FALSE) failed.

so the question is, is this event safe to use on a regular basis - if  
not how do i find out a data entry has been entered.

thanks

BD

---

<div class="post-metadata">

**Author:** ![S\_blackdog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@S\_blackdog](https://www.ruby-forum.com/u/S_blackdog)\
**Post date:** [January 11, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078/2 "2006-01-11T20:22:51Z")

</div>

\_blackdog wrote:

> @table.connect(SEL\_REPLACED) {|sender, selector, data|
> 
> thanks
> 
> BD

I see that too, but can’t answer your question. You might want to ask it  
on the fxruby list.

---

<div class="post-metadata">

**Author:** ![S\_blackdog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@S\_blackdog](https://www.ruby-forum.com/u/S_blackdog)\
**Post date:** [January 12, 2006, 6:25pm UTC](https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078/3 "2006-01-12T18:25:53Z")

</div>

On 1/12/06, \_blackdog [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> quick followup to anyone interested, the SEL\_REPLACED event works on  
> Linux, with the assert printed, but crashes a windows application.

I filed a bug report on your behalf at the project page (see  
[http://rubyforge.org/tracker/?atid=1223&group\_id=300&func=browse](http://rubyforge.org/tracker/?atid=1223&group_id=300&func=browse)).  
This bug will be fixed in the next release of FXRuby.

---

<div class="post-metadata">

**Author:** ![S\_blackdog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@S\_blackdog](https://www.ruby-forum.com/u/S_blackdog)\
**Post date:** [January 12, 2006, 2:45pm UTC](https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078/4 "2006-01-12T14:45:02Z")

</div>

quick followup to anyone interested, the SEL\_REPLACED event works on  
Linux, with the assert printed, but crashes a windows application.

BD

---

<div class="post-metadata">

**Author:** ![S\_blackdog](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/5f8ce5/32.png) [@S\_blackdog](https://www.ruby-forum.com/u/S_blackdog)\
**Post date:** [January 12, 2006, 10:43pm UTC](https://www.ruby-forum.com/t/fxtable-and-sel-replaced/52078/5 "2006-01-12T22:43:24Z")

</div>

many thanks lyle I’ll try and help you out by doing that myself next  
time!

cheers

BD
