[Fxruby-users] Thoughts on the tree list
Status: Inactive
Brought to you by:
lyle
From: Hal F. <ha...@hy...> - 2004-05-22 07:06:28
|
OK, I'm making slow and painful progress on this app of mine (http://tycho.rubyforge.org). Eventually I want to fix the tree list so that the items can be re-ordered manually. This is daunting to me. A few months ago I read about the cut-and-paste API, which I thought would be trivially simple and is not at all. I also read about drag-and-drop, which is somewhat related, and it is even more painful. The tree list itself is thorny to understand, and drag/drop is even worse. Doing drag/drop inside a tree list sounds as exciting as a trip to the dentist in a third world country. Wouldn't it be nice if someone wrote a widget (probably inheriting from the tree list) which could be rearranged in such ways, and was smart enough to "reflect" itself in a tree datastructure? Then we could plug in such a widget without worrying about writing that extra 200 lines of code, no? But I'm just dreaming there. There's probably some reason it's not doable that way. Anyhow, if anyone has any words of wisdom in this area, I'll be glad to listen... Cheers, Hal |