[fxruby-users] is there a problem with FXList findItemByData(....) ??????

Gérard Ménochet gerard.menochet at wanadoo.fr
Wed Apr 19 18:29:22 EDT 2006


Hi,
    I am tackling with FXList ( ruby 1.8.4 (2005-12-24) [i386-mswin32]) )
  . The 'data' value is a MDIChild reference 

    afxlist.findItemByData(sender)    => return  -1 . Always

    I can turn around it by doing 
     ..........
     cpt = 0 ; idx=nil
     afxlist.each do |lista|
          if lista.data == sender
               idx=cpt
                 break
           end
          cpt+=1
      end
      ..........
       My concern is :   is there a problem or have I done something wrong ?

Regards

Gérard Ménochet


    
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/fxruby-users/attachments/20060420/cbb57cdb/attachment.htm 


More information about the fxruby-users mailing list