Page 1 of 2
Tree within a Grid
Posted: Wed Oct 26, 2011 11:14 am
by Rossine
Hello,
In hmg.4, can use the object tree in a grid ?
Best Regards,
Rossine.
Re: Tree within a Grid
Posted: Wed Oct 26, 2011 1:17 pm
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.
Re: Tree within a Grid
Posted: Wed Oct 26, 2011 1:51 pm
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.
Re: Tree within a Grid
Posted: Wed Oct 26, 2011 6:21 pm
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.
Re: Tree within a Grid
Posted: Wed Oct 26, 2011 6:27 pm
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.
Re: Tree within a Grid
Posted: Wed Oct 26, 2011 6:37 pm
by Ricci
If you find someone who will build this class ....
Re: Tree within a Grid
Posted: Wed Oct 26, 2011 8:33 pm
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...
Re: Tree within a Grid
Posted: Thu Oct 27, 2011 1:36 am
by Rossine
Hi All,
I've got some progress with the tree-multcolumn
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.
Re: Tree within a Grid
Posted: Thu Oct 27, 2011 7:06 am
by l3whmg
Hi Rossine.
I'm very happy to see your job and I wait for your code
Regards
Re: Tree within a Grid
Posted: Thu Oct 27, 2011 7:16 am
by mrduck
Rossine wrote:Hi All,
I've got some progress with the tree-multcolumn
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 ?