Closed GoogleCodeExporter closed 9 years ago
Hi,
Yes this is a bug that appeared with the tri-view check-box support.
It will be fixed in the next commit.
To manually fix please make sure you have the line.
kmlTreeView1.CheckBoxes = true;
In your form designer file or in the constructor for your form.
Thanks,
F.
Original comment by fraser.c...@gmail.com
on 12 Apr 2011 at 8:34
Thanks for your excellent work. Please delete if this is on the wrong place.
It seems that since the last update kmlTreeView1.SelectedNode.Tag returns null.
I use this to retrieve the type of the node selected (eg "KmlPlacemark"). Is
there a more efficient way ?
Also if I set
dynamic feature = kmlTreeView1.SelectedNode;
feature.KmlType is inaccessible due to the protection level of "KmlType"..
Thanks for your time! Please let me know if you need more information.
giorgos
Original comment by gta...@gmail.com
on 15 Apr 2011 at 10:34
@giorgos
- Yes I added a custom 'ApiObject' property to the KmlTreeView, this replaces
the 'Tag' property as the holder for the api object. Further to this the
KmlTreeViewNode also has the 'ApiObjectType' property which is the string
representation of the api type - So you would use:
KmlTreeViewNode node = kmlTreeView1.SelectedNode;
dynamic kmlObject = node.ApiObject;
to get the api object, and:
KmlTreeViewNode node = kmlTreeView1.SelectedNode;
string type = node.ApiObjectType;
To easily get the type ("KmlPlacemark", etc)
Original comment by fraser.c...@gmail.com
on 25 Apr 2011 at 11:21
Hi howling,
I have fixed this issue and plan to update asap.
Thanks,
Fraser
Original comment by fraser.c...@gmail.com
on 2 Jun 2011 at 5:11
Just to note - the reason for the bug is that the
System.Windows.Forms.ToolStrip (that that GEToolStrip is based on) does not
support visual inheritance (doh!). This is a known bug, discussed here for
example:
http://connect.microsoft.com/VisualStudio/feedback/details/552017/visual-inherit
ance-of-a-toolstrip
So, the issue with the KmlTreeView checkboxes is fixed...but you still can't
use the visual designer to add items to the GEToolStrip. You can however add
the items via code in your form, it would be nice to support the visual
designer but it is down to Microsoft on that front I am afraid...
Original comment by fraser.c...@gmail.com
on 2 Jun 2011 at 5:17
Original issue reported on code.google.com by
howlingw...@gmail.com
on 12 Apr 2011 at 6:28Attachments: