Print Page | Close Window

Bug in Treeview With Markup Checkbox

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=23037
Printed Date: 02 May 2024 at 6:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Bug in Treeview With Markup Checkbox
Posted By: Lars@Amily
Subject: Bug in Treeview With Markup Checkbox
Date Posted: 02 June 2016 at 12:00pm
Hi all.
I want to have checkbox items for a treeview, but I dont want to have it for all, so I set the Checkboxes property to False.
I use markup checkbox instead, which is showing up very nice.

The code:
  With Me.TreeView1
    .FullRowSelect = False
    .ShowLines = xtpTreeViewShowLinesAtRoot
    .Checkboxes = False
    .HideSelection = True
    .ShowPlusMinus = True
    .EnableMarkup = True
    .Nodes.Add , , "Key1", "Key1 - Text"
    .Nodes.Add "Key1", xtpTreeViewChild, "Key1-1", "<CheckBox Name='key1-1' Click='CheckboxClicked'>a</CheckBox>"
    .Nodes.Add "Key1", xtpTreeViewChild, "Key1-2", "<CheckBox Tag='1' Margin='0' Width='100' HorizontalAlignment='Left' IsChecked='True' Content='CK1'/>"
    .Nodes.Add , , "Key2", "Key2 - Text"
    .Nodes("Key1").Expanded = True
    .MarkupContext.SetHandler Me
  End With


Runtime:
Treeview

But I can't check/uncheck the checkbox by clicking on the box or on the text, just when I click right beneath the label text the checkbox is checked/unchecked.
It seems like the label is in foreground because I only get nodelick event. When I implement an event and event handler, I only get it when clicking on the very margin of the label.




Replies:
Posted By: Lars@Amily
Date Posted: 02 June 2016 at 12:01pm
Forgot: Also HideSelection property does not hide the selection....
This also semms to be a bug.



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