From: Joel Pearson Date: 2012-12-08T05:17:26+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. Here's your method rewritten to colour all selected rows in blue: def pilihAnggota #Get our array of indicies idx = $countries.curselection #Default everything to white [$countries,$kode,$no].each do |obj| obj.size.times do |ix| obj.itemconfigure(ix, :background => "white") end end #Colour all selected indicies to blue idx.each do |ix| [$countries,$kode,$no].each do |obj| obj.itemconfigure(ix, :background => "blue") end end end -- Posted via http://www.ruby-forum.com/.