Alexander Jede
2006-Jun-13 12:05 UTC
[fxruby-users] getItemAt() in FXTreeList in the version 1.4
Hi, I use the FXTreeList from FXRuby 1.4. Now I want go get an Item from the list and have only some indexinformation example first column and 4th row. I tried to use getItemAt(x,y) but without success. Can any one help my? An other question: I am a newbie in coding FXRuby. And the API is not as well as it could be. Is there an other source (book ...) where I can get a good description how to use FXRuby. Thanks Alexander Jede
Gérard Ménochet
2006-Jun-15 01:24 UTC
[fxruby-users] getItemAt() in FXTreeList in the version 1.4
You can go through the tree using "each" example: nodearray=[] atreeID.each do |t| nodearray<<t end nodearray.each do |a0| a0.each do |a1| next if a1.numChildren() ==0 nodearray<<a1 end end another way: I think you can give an Identifier (user data) to the item with setItemData and retrieve it using findItemByData Hope this help regards G?rard M?nochet ----- Original Message ----- From: "Alexander Jede" <alexjede at gmx.de> To: <fxruby-users at rubyforge.org> Sent: Tuesday, June 13, 2006 2:05 PM Subject: [fxruby-users] getItemAt() in FXTreeList in the version 1.4> Hi, > I use the FXTreeList from FXRuby 1.4. > Now I want go get an Item from the list and have only some > indexinformation example first column and 4th row. > I tried to use getItemAt(x,y) but without success. > Can any one help my? > > An other question: > I am a newbie in coding FXRuby. And the API is not as well as it could > be. Is there an other source (book ...) where I can get a good > description how to use FXRuby. > > Thanks > Alexander Jede > _______________________________________________ > fxruby-users mailing list > fxruby-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/fxruby-users >