Forum: Ruby Visualruby - Listview Problem with selected_row

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
F283bbdd205e041b303362b99cac219a?d=identicon&s=25 Ulrich H. (bluewhite11)
on 2017-02-25 18:02
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 method `selected_row' for
#<VR::ListView:0x3537110 ptr=0x44d83b0>

What is my mistake?

7e17d370dc95b48cd82944a62f1caf76?d=identicon&s=25 Robert H. (shevegen)
on 2017-02-25 23:47
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 topic is locked and can not be replied to.