Bug in Treeview With Markup Checkbox |
Post Reply |
Author | |
Lars@Amily
Newbie Joined: 02 June 2016 Location: Munich, Germany Status: Offline Points: 3 |
Post Options
Thanks(0)
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: 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. |
|
Lars@Amily
Newbie Joined: 02 June 2016 Location: Munich, Germany Status: Offline Points: 3 |
Post Options
Thanks(0)
|
Forgot: Also HideSelection property does not hide the selection....
This also semms to be a bug. |
|
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 |