Visualruby - Listview Problem with selected_row

I defined a ListView like your tutorial examples. THis works fine.

I also tried to code :

def filterPMlist__row_activated(*args)
row= @filterPMlist.selected_row
#puts row[:myfield] # => “Hello World”

the funtion is called, but I get the error:

method_missing': undefined methodselected_row’ for
#<VR::ListView:0x3537110 ptr=0x44d83b0>

What is my mistake?


Isn’t that ruby-gtk specific? You may have more luck posting in the
ruby-gtk subsection. I know that the maintainer of visualruby sometimes
posts on the ruby-gtk / ruby-gnome subsection of the forum.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs