How do you make a panel with curved corners with a different colour interior to the background colour
I have only found the borderstyle property, but the outside corners are left the interior colour which kind of spoils the effect
I have found an example in the AppSylist application that does what I want (see attached graphic)
can you let me know how this was achieved?
Thanks
Hi Larry,
I took a look at the AppStylistRuntime elements with the ElementViewer and it turns out that the panel in your screen shot is actually an UltraGroupBox.
Going a bit further I discovered that the GroupBox used in the AppStylist interface actually implements an image for its background; while I could not obtain the exact image, I was able to replicate the approximate behavior wherein the edges of the rounded image are blended with the background of its container control.
To do this, I edited a test image with Microsoft Paint, using the beveled rectangle tool set to the thickest width which I set to white, (any color could potentially be used). I then trimmed off the excess around this new border, saved the image and imported it into my sample.
I then set this image as the background image of the UltraGroupBox and set the background color of the container, (in this case the form itself) to white, in order to blend in with the image border.
I have attached the sample along with the test image for reference.
If you have any further questions at all regarding this approach, please let me know.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
Thanks Chris
I got a similar effect by using an UltraPanel with a VisualBasicPowerPacks RectangleShape with the CornerRaduis set.
The RectangleShape has no dock functionality, so I had to anchor the edges to the panel edges to get it to resize correctly
What is the ElementViewer? How do I run the ElementViewer?
Also... how do I make an UltraButton be anything other than light grey/medium grey without using a Style
Can we make its corners more rounded? I tried using a ShapeImage, but the results are a bit random and lumpy