From: Joel Pearson Date: 2012-12-08T04:57:58+09:00 Subject: Re: Need help to select some listbox item in different listbox together > May I ask the sample code to use colouring to emulate row selection ? > I still new in Ruby. You'll need to find a colour which suits your interface (I've just kept green from my line of code); and I didn't actually use the selection event of the listbox so you'd need to trap that first, but this code will colour an item: @ListBox1.itemconfigure(1, :background => "green") "1" will be the index of whichever item you had selected. What you'd then need to do is send the same index value to your other columns: @ListBox2.itemconfigure(list_1_items.index(1), :background => "green") @ListBox3.itemconfigure(list_1_items.index(1), :background => "green") Or like this: idx = 1 [@ListBox1, @ListBox2, @ListBox3].each do |current_object| current_object.itemconfigure(idx), :background => "green") end Another trick is if you know the value of the cell selected in the first column (first listbox), and if you have the array which corresponds to that list. What you can do is retrieve the index from the array of values. So say values_array is ["red","blue","yellow"], and you wanted to find "blue", the code would be: ["red","blue","yellow"].index("blue") =>1 -- Posted via http://www.ruby-forum.com/.