Print Page | Close Window

Using TreeColumn and Checkbox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=16680
Printed Date: 06 May 2024 at 3:39am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using TreeColumn and Checkbox
Posted By: tobi
Subject: Using TreeColumn and Checkbox
Date 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 ?




Replies:
Posted By: Aaron
Date Posted: 09 May 2010 at 5:05pm
Hi Tobi
 
Do you mean:
 
  1. Position of treeline
  2. Position of checkbox (ChildItem)
  3. Something else
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....


Posted By: tobi
Date Posted: 09 May 2010 at 5:42pm
Hi Aaron,

yes - I meant the position of the treeline and the position of the childitem checkbox !




Posted By: tobi
Date Posted: 18 May 2010 at 11:37am
The parent/child treelines also look strange without using checkboxes 


Posted By: Aaron
Date Posted: 18 May 2010 at 12:01pm
Originally posted by tobi tobi wrote:

The parent/child treelines also look strange without using checkboxes 
 
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....


Posted By: SuperMario
Date Posted: 18 May 2010 at 1:41pm
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.




Posted By: SuperMario
Date Posted: 18 May 2010 at 2:31pm
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


Posted By: tobi
Date Posted: 18 May 2010 at 3:01pm
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 ...



Posted By: Aaron
Date Posted: 18 May 2010 at 3:06pm
Originally posted by SuperMario SuperMario wrote:

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
 
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....


Posted By: tobi
Date Posted: 18 May 2010 at 3:08pm
@Aaron: Think we meant the same 


Posted By: SuperMario
Date Posted: 18 May 2010 at 3:13pm
You can already do that :)

    wndReportControl.PaintManager.TreeIndent = 10





Posted By: Aaron
Date Posted: 18 May 2010 at 3:20pm
Originally posted by SuperMario SuperMario wrote:

You can already do that :)

    wndReportControl.PaintManager.TreeIndent = 10

 
 
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....


Posted By: tobi
Date Posted: 18 May 2010 at 3:24pm
Great ! Thank for helping !!!


Posted By: Aaron
Date Posted: 18 May 2010 at 3:33pm
Hi SuperMario,
 
Now I remember... Please look at post https://forum.codejock.com/forum_posts.asp?TID=11635 - 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....


Posted By: SuperMario
Date Posted: 18 May 2010 at 3:52pm
No, I'll have to investigate why.


Posted By: SuperMario
Date Posted: 19 May 2010 at 9:13am
Originally posted by Aaron Aaron wrote:

Hi SuperMario,
 
Now I remember... Please look at post https://forum.codejock.com/forum_posts.asp?TID=11635 - 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
 


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?



Posted By: Aaron
Date Posted: 19 May 2010 at 2:17pm

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....


Posted By: tobi
Date Posted: 19 May 2010 at 3:03pm
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 ?


Posted By: SuperMario
Date Posted: 19 May 2010 at 3:11pm
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?


Posted By: tobi
Date Posted: 19 May 2010 at 3:19pm
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 !!!


Posted By: SuperMario
Date Posted: 20 May 2010 at 4:43pm
I think I understand now, I'll have to add it to the TODO list, that requires more code changes that you might think ;)


Posted By: Aaron
Date Posted: 19 June 2010 at 2:03am
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....


Posted By: Aaron
Date Posted: 28 January 2011 at 5:47am

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....


Posted By: tobi
Date Posted: 28 January 2011 at 5:52am
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


Posted By: Aaron
Date Posted: 28 January 2011 at 6:54am

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....


Posted By: tobi
Date Posted: 28 January 2011 at 8:16am
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!


Posted By: Aaron
Date Posted: 28 January 2011 at 8:40am

Hi,

I tried with V13.4.2
 
http://forum.codejock.com/uploads/3701/TreeLines.zip - uploads/3701/TreeLines.zip


-------------
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....


Posted By: Aaron
Date Posted: 29 January 2011 at 5:27am

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....


Posted By: tobi
Date Posted: 29 January 2011 at 10:06am
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 ...




Posted By: Aaron
Date Posted: 30 January 2011 at 7:54am

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....


Posted By: tobi
Date Posted: 15 April 2011 at 1:34am
Hi Andre,

can you please try to fix this for next release ?

Thank you very much



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net