Re: [fpc-pascal] TreeView and Nonrecursion

2010-09-02 Thread Bihar Anwar
On September 2, 2010 5:14:50 PM, Juha Manninen wrote: > If your input data contains a string which always > identifies the parent node then you can map the > string -> "parent node" and find it later for adding > a child node. > > Pseudo code again: > ... > ... > If you don't have such ID then

Re: [fpc-pascal] TreeView and Nonrecursion

2010-09-02 Thread Flávio Etrusco
On Wed, Sep 1, 2010 at 6:20 PM, Bihar Anwar wrote: > On 2 September 2010 3:53:34 AM, Vannus wrote: > >> i probably shouldn't open my mouth, as i don't quite understand the >> question... >> however FRED from the game Freespace let you design missions using a >> treeview. > > Just to make my questi

Re: [fpc-pascal] TreeView and Nonrecursion

2010-09-02 Thread Juha Manninen (gmail)
On Thursday 02 September 2010 00:47:23 José Mejuto wrote: > You must know at which node a new node must be inserted... If your input data contains a string which always identifies the parent node then you can map the string -> "parent node" and find it later for adding a child node. Pseudo code

Re[2]: [fpc-pascal] TreeView and Nonrecursion

2010-09-01 Thread José Mejuto
Hello FPC-Pascal, Wednesday, September 1, 2010, 11:20:57 PM, you wrote: BA> Just to make my question clear, for example, I can fill a TreeView control with BA> particular Registry keys by enumerating registry keys recursively and put them BA> in the TreeView control; then for performance reason

Re: [fpc-pascal] TreeView and Nonrecursion

2010-09-01 Thread Bihar Anwar
On 2 September 2010 3:53:34 AM, Vannus wrote: > i probably shouldn't open my mouth, as i don't quite understand the >question... > > however FRED from the game Freespace let you design missions using a treeview. Just to make my question clear, for example, I can fill a TreeView control with

Re: [fpc-pascal] TreeView and Nonrecursion

2010-09-01 Thread Vannus
i probably shouldn't open my mouth, as i don't quite understand the question... however FRED from the game Freespace let you design missions using a treeview. It involved following a tree like |- when 'Enemy Cargo ship' is 'attacked' | \- then 'enemy support ships' do 'jump in' |- when 'Enemy Carg

[fpc-pascal] TreeView and Nonrecursion

2010-09-01 Thread Bihar Anwar
A Newbie question :-) Is it possible to fill TreeView (tree is naturally recursive) with a nonrecursive/iterative thinking paradigm? Are there some good examples regarding this matter in the Internet? I post this question in FPC mailing list because my question actually about filling a "tree" i