Tree within a Grid

Moderator: Rathinagiri

Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Tree within a Grid

Post by Rossine »

Hello,

In hmg.4, can use the object tree in a grid ?

Best Regards,

Rossine.
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Tree within a Grid

Post by mrduck »

Can you please explain what you want to do ?
Rossine wrote:Hello,

In hmg.4, can use the object tree in a grid ?

Best Regards,

Rossine.
Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Re: Tree within a Grid

Post by Rossine »

Hello Francesco,

Please, seek this link: http://www.codeproject.com/KB/grid/treegridctrl.aspx

In fivewin exist xbrowse + tree. See thiw image:

Best Regards,

Rossine.
Attachments
grid_tree.png
grid_tree.png (77.83 KiB) Viewed 3929 times
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: Tree within a Grid

Post by Ricci »

Rossine, you can do this with the QTreeWidget Class using more than one column: http://doc.qt.nokia.com/stable/qtreewidget.html

The best way may be by overloading the HMG4 tree class not by using the grid class.
Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Re: Tree within a Grid

Post by Rossine »

Hi Ricci,

Many thank´s for this explanation.

It would be possible to have a class/command in hmg.4 to do this ?

Best Regards,

Rossine.
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: Tree within a Grid

Post by Ricci »

If you find someone who will build this class ....
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Tree within a Grid

Post by mrduck »

Rossine wrote: It would be possible to have a class/command in hmg.4 to do this ?

Why don't you try yourself ? Clone tree.prg and start adapting the code... Creating core code for HMG4 is way way easier than create code for Hmg3...

In 3 weeks Ricci moved from saying that he would not use HMG4 to contributing core code...
Rossine
Posts: 87
Joined: Thu Jun 30, 2011 10:04 pm

Re: Tree within a Grid

Post by Rossine »

Hi All,

I've got some progress with the tree-multcolumn :D

1) Create multi columns
2) Sort Column
3) Icons in all columns
4) Tooltip for coluna

See this image:

Then try to adapt the class to accept one or more columns ;)

Many thank´s to all,

Rossine.
Attachments
tree_mult_column.png
tree_mult_column.png (40.39 KiB) Viewed 3894 times
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: Tree within a Grid

Post by l3whmg »

Hi Rossine.
I'm very happy to see your job and I wait for your code 8-)
Regards
Luigi from Italy
www.L3W.it
mrduck
Posts: 497
Joined: Fri Sep 10, 2010 5:22 pm

Re: Tree within a Grid

Post by mrduck »

Rossine wrote:Hi All,

I've got some progress with the tree-multcolumn :D

1) Create multi columns
2) Sort Column
3) Icons in all columns
4) Tooltip for coluna
Really good !

Would you share the code so that we can add to hmg4 ?
Post Reply