Using TreeColumn and Checkbox |
Post Reply |
Author | |
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
Posted: 09 May 2010 at 1:32pm |
When using TreeColumn and HasCheckbox in the same column, the display looks strange and wrong !
Also it uses to much (width) space ! Is there anything that can be done to change this display style or behavior ? |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Tobi
Do you mean:
Please explain and I will add it to my list, OK?
Thanks
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
Hi Aaron,
yes - I meant the position of the treeline and the position of the childitem checkbox ! |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
The parent/child treelines also look strange without using checkboxes
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Tobi,
A while ago I mentioned this as well and I was wrong saying that according to Mark, lot's of discussions and I believe I closed the issue myself.
What do you mean by "look strange" without using checkboxes? Can you upload a screenshot and please add comment (or another image) how you would like to see the treelines, OK?
Thanks
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Internally it is only drawing the line the same length as it does for rows with the expand button, it does this in all cases, so you are left with the width of the expand icon as padding no matter what.
See if this implementation works better for you, if the row has no children then it will draw the line the extra width of the icon. |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
Added wndReportControl.PaintManager.TreeColumnLineLength, default is 0, which will use existing logic, anything greater than 0 and it will draw the line that length.
The picture above would be: wndReportControl.PaintManager.TreeColumnLineLength = 16 |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
Dear SuperMario,
this enhancement is good, but I'm looking for a way to place the vertical line in the middle under the plus/minus icon ... |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi SuperMario,
Thanks for that
In my opinion the treelines aren't nice positioned (don't know what @Tobi means yet...) but I would expect the treeline beneath (centered) the parent plus/minus button (like a TreeView)
+
|--
|--
|--
and not:
+
|--
|--
|-- Thanks a lot
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
@Aaron: Think we meant the same
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
You can already do that :)
wndReportControl.PaintManager.TreeIndent = 10 |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi SuperMario,
You are right
I didn't see because default TreeIndent seems to be 16 or so. I didn't set new value, that's why...
Thanks again
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
Great ! Thank for helping !!!
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi SuperMario,
Now I remember... Please look at post https://forum.codejock.com/forum_posts.asp?TID=11635 , #Issue 14
The image is showing grouped (parent) Records. Is this also solved?
Thanks a lot
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
No, I'll have to investigate why.
|
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
After looking through the source, Mark was right on this one. BaseTreeIndent is what you need for this. BaseTreeIndent specifies the indentation placed before the text of each parent node in a hierarchical tree structure. Internally all this does is add and extra wndReportControlStatus.PaintManager.TreeIndent. So After further review I can see where it might be hard to get ideal results if you also want to use TreeIndent with a different setting. So I added BaseParentRecordIndent, which will be an initial indent applied if the Parent Records are in a group (group order > 0), default will be 0, so behavior will be identical as before if not set. If > 0 then it will apply the indent. I also allow negative so if you set to -2 wndReportControlStatus.PaintManager.BaseParentRecordIndent = 20 Is this what you wanted? |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi SuperMario, Looks good to me Thanks a lot for adding new property. Now we can play around with a few settings to get a nice layout. Thanks
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
Hi SuperMario,
one question left: How can I increase horizontal space between the plusminus signs of child and parent without using TreeIndent also when I have multiple sub-levels ? |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
TreeIndent was added for this purpose. So I am not sure what else you expect....maybe a picture will help me understand.
As for multiple sub-levels, it applies same indent to all. So you want different indent for each level? |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
In general I agree - TreeIndent affects the space between parent and child signs. That what I want to archive...
But what I do not want to be affected from TreeIndent setting is the position of the vertical treeline ! In my opinion it should ALWAYS be centered exactly under the parent plusminus icon !!! |
|
SuperMario
Admin Group Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
|
I think I understand now, I'll have to add it to the TODO list, that requires more code changes that you might think ;)
|
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Tobi,
Can I have some feedback? Is this issue solved ?
Thanks
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Tobi, You mentioned somewhere in forum that this is (still) working OK? Can you be more specific? Please upload Test project so we all know what doesn't work. Thanks
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
Hi Aaron,
the issue regaring position of the vertical treeline is still not implemented ! In my opinion it should ALWAYS be centered exactly under the parent plusminus icon !!! I hope it's still on SuperMario's TODO list - and also hope it will be fixed with v15 ! Thanks |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Tobi, I don't understand... Did you at least try with new version? The only thing I did is to get above image
With Me.wndReportControl
With .PaintManager .TreeIndent = 10 '.BaseParentRecordIndent = 0 '.BaseTreeIndent = 0 '.TreeColumnLineLength = 0 End With End With
There are four properties, I can't image you can't get it right for your own needs...
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
Hi Aaron,
can you upload your demo project, then I can try to demonstrate my issues ? Which version of CJ suite do you use with this project ? Thank you! |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi, C'mon Tobi, we don't have all day. CJ is in the middle of releasing V15.0 so speak up if you need something else. You have a test project, what do need more?
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
Hi Aaron,
thanks for the testproject ! The issue shows when you set ReportControl.PaintManager.TreeIndent to a value e.g. 25 ! Then the vertical treeline is not under the plus/minus sign any more ... |
|
Aaron
Senior Member Joined: 29 January 2008 Status: Offline Points: 2192 |
Post Options
Thanks(0)
|
Hi Tobi OK, I see... I created test to set values seperately (for support) See what they have to say about this. Thanks
|
|
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2 Language: Visual Basic 6.0 Zero replies is not an option.... |
|
tobi
Senior Member Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |
Post Options
Thanks(0)
|
Hi Andre,
can you please try to fix this for next release ? Thank you very much |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |