![]() |
TreeView nodes with markup aren't "measured" |
Post Reply ![]() |
Author | |
dbenito ![]() Groupie ![]() Joined: 14 May 2008 Location: Spain Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() Posted: 28 April 2011 at 7:36am |
If you add a TreeView node which contains markup, it seems as though the underlying TreeView control isn't able to "measure" the nodes width properly, so if the displayed text exceeds the width of the control, no horizontal scrollbar is displayed (if you add the same text without markup, the scroll bar is displayed correctly).
![]() |
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows 8.1 (64bit) Language: Visual Basic 6.0 |
|
![]() |
|
dbenito ![]() Groupie ![]() Joined: 14 May 2008 Location: Spain Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
Could sombody at least confirm that I'm not the only one seeing this? This is a big bug, and I'm being forced to implement a TreeView using the API and do custom drawing just to get around this...
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows 8.1 (64bit) Language: Visual Basic 6.0 |
|
![]() |
|
SeungMina ![]() Groupie ![]() Joined: 04 November 2010 Status: Offline Points: 12 |
![]() ![]() ![]() ![]() ![]() |
Yes, I duplicated your problem with a simple test program in VB6 - just a form with a CJ Treeview on it. Scrollbars work as expected with long text items but no Markup. Scrollbars work as expected with short text items, and markup. But, problem appears when a node has BOTH text wider than the control AND uses Markup: eg. Add a node with long text and markup, and the horizontal scrollbar disappears. I note that you can add a node without the Markup (scrollbars correct), then change the node Text to add the Markup. The scrollbars will remain. However - if the markup includes eg. Bold, the rendered text becomes longer... the scrollbar doesn't recognise this... and you can't scroll far enough horizontally to actually see the end of the text. |
|
![]() |
|
dbenito ![]() Groupie ![]() Joined: 14 May 2008 Location: Spain Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
OK, we're at version 15.3.1 now, and this hasn't been fixed. Could someone at CodeJock at least acknowledge that this is a bug? IMHO, it makes the markup entirely useless in the TreeView.
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows 8.1 (64bit) Language: Visual Basic 6.0 |
|
![]() |
|
ABuenger ![]() Newbie ![]() ![]() Joined: 02 February 2006 Status: Offline Points: 1075 |
![]() ![]() ![]() ![]() ![]() |
Hi,
this is indeed a bug, looking for a solution now. Andre |
|
Codejock support
|
|
![]() |
|
dbenito ![]() Groupie ![]() Joined: 14 May 2008 Location: Spain Status: Offline Points: 30 |
![]() ![]() ![]() ![]() ![]() |
Andre,
Thanks!
|
|
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows 8.1 (64bit) Language: Visual Basic 6.0 |
|
![]() |
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 |