Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Controls
  New Posts New Posts RSS Feed - TreeView nodes with markup aren't "measured"
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

TreeView nodes with markup aren't "measured"

 Post Reply Post Reply
Author
Message
dbenito View Drop Down
Groupie
Groupie


Joined: 14 May 2008
Location: Spain
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbenito Quote  Post ReplyReply Direct Link To This Post Topic: TreeView nodes with markup aren't "measured"
    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
Back to Top
dbenito View Drop Down
Groupie
Groupie


Joined: 14 May 2008
Location: Spain
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbenito Quote  Post ReplyReply Direct Link To This Post Posted: 19 May 2011 at 10:25am
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
Back to Top
SeungMina View Drop Down
Groupie
Groupie


Joined: 04 November 2010
Status: Offline
Points: 12
Post Options Post Options   Thanks (0) Thanks(0)   Quote SeungMina Quote  Post ReplyReply Direct Link To This Post Posted: 25 May 2011 at 4:49am
Originally posted by dbenito dbenito wrote:

Could sombody at least confirm that I'm not the only one seeing this?

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.
Back to Top
dbenito View Drop Down
Groupie
Groupie


Joined: 14 May 2008
Location: Spain
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbenito Quote  Post ReplyReply Direct Link To This Post Posted: 06 June 2012 at 1:21pm
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
Back to Top
ABuenger View Drop Down
Newbie
Newbie
Avatar

Joined: 02 February 2006
Status: Offline
Points: 1075
Post Options Post Options   Thanks (0) Thanks(0)   Quote ABuenger Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2012 at 8:24pm
Hi,

this is indeed a bug, looking for a solution now.

Andre

Codejock support
Back to Top
dbenito View Drop Down
Groupie
Groupie


Joined: 14 May 2008
Location: Spain
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbenito Quote  Post ReplyReply Direct Link To This Post Posted: 19 June 2012 at 6:22am
Andre,
 
Thanks!
Product: Xtreme SuitePro (ActiveX) version 16.2.6

Platform: Windows 8.1 (64bit)

Language: Visual Basic 6.0
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.