I have two controls, an radPanel and a radLabel which is contained within the panel.
I had hoped to set them both to use a rounded rectangle, but I wanted them to have different radius and rounded corners.
I've been using the "Edit UI Elements" link to bring up the Element hierarchy editor to set the shape.
I set both the panel and label to use a RoundRectShape, and then setup the radius and which corners I want to use.
I found that no matter if I edited the panel, or the label, both of them would always take on the same shape. Looking at the designer code, it looks like the element hierarchy editor is only generating one RoundRectShape object and sharing it between whatever controls I set to use a RoundRectShape shape. I would of expected it to make a different RoundRectShape object per control. I tried providing the editor a different name for the RoundRectShape object, but it just renames any existing one.
Not sure if this is intended or not.
Thanks,
Ben
I had hoped to set them both to use a rounded rectangle, but I wanted them to have different radius and rounded corners.
I've been using the "Edit UI Elements" link to bring up the Element hierarchy editor to set the shape.
I set both the panel and label to use a RoundRectShape, and then setup the radius and which corners I want to use.
I found that no matter if I edited the panel, or the label, both of them would always take on the same shape. Looking at the designer code, it looks like the element hierarchy editor is only generating one RoundRectShape object and sharing it between whatever controls I set to use a RoundRectShape shape. I would of expected it to make a different RoundRectShape object per control. I tried providing the editor a different name for the RoundRectShape object, but it just renames any existing one.
Not sure if this is intended or not.
Thanks,
Ben