CollapsingRecordNode look like a tree

Hi Walter,

Thank you very much.
I sent this mail some times from some mail type such as Gmail, Yahoo but they failed.

I have some minor problems:
1/ I want to set icon at left of CollapsingRecordNode by change method LayoutChildren of class CollapsingRecordNodeItem as below:
// make sure the GoImage is in the proper spot on the left side of the label
public override void LayoutChildren(GoObject childchanged)
{
base.LayoutChildren(childchanged);
GoObject lab = this.Label;
if (lab != null)
{
GoObject h = null;
foreach (GoObject child in this)
{
if (child is MyGoCollapsibleHandle)
{
h = child;
}
}
if (h != null)
{
PointF p = lab.GetSpotLocation(MiddleLeft);
p.X -= 6;
h.SetSpotLocation(MiddleRight, p);
}
}
}

Here is original code:
// make sure the GoImage is in the proper spot on the left side of the label
public override void LayoutChildren(GoObject childchanged) {
base.LayoutChildren(childchanged);
GoObject lab = this.Label;
if (lab != null) {
// find the GoImage and GoCollapsibleHandle (which might not have been Add’ed to this group)
GoObject h = null;
GoObject img = null;
foreach (GoObject child in this) {
if (child is GoCollapsibleHandle) {
h = child;
} else if (child is GoImage) {
img = child;
}
}
if (img != null) {
PointF p = lab.GetSpotLocation(MiddleLeft);
p.X -= 2;
img.SetSpotLocation(MiddleRight, p);
if (h != null) {
p = img.GetSpotLocation(MiddleLeft);
p.X -= 2;
h.SetSpotLocation(MiddleRight, p);
}
} else if (h != null) {
PointF p = lab.GetSpotLocation(MiddleLeft);
p.X -= 2;
h.SetSpotLocation(MiddleRight, p);
}
}
}
It displays well but when I resized there is a border-color column displayed like below picture.

How to layout it well?
2/ How to customize the shadow of CollapsingRecordNode such as making thinner, changing color, ect?

Sorry about that. We have just changed mail servers. I’m getting mail, though.

  1. In your design did you move the icon from just to the left of the Label to be all the way on the left? And are the left-most images actually your ports? If so, you probably need to modify other code to make sure the indentation is correct. Your screenshot seems to show that the width of the CollapsingRecordNodeItem isn’t including the icon.
  2. Normally the shadow is controlled by “Shadow” properties and methods on GoView. But you can override the “Shadow” methods of GoObject.