Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to create a GroupControl descendant that paints its caption in the old flat style

$
0
0
Our GroupControl container control paints a caption as a stylish colored box. Its caption blends well with other skinnable DevExpress controls, but sometimes our customers just want to display a simple frame around controls with text as a caption (something like the standard GroupBox control, but with the GroupControl features, such as a caption image). The picture below demonstrates the difference between the standard GroupBox and the GroupControl.

This example demonstrates how to create a custom control inherited from the GroupControl class and implement a custom painter that draws the header in a different style. This approach has known limitations:
1. The Border Color Blending feature is not supported.
2. It has minor compatibility issues with a few old skins. In any case, the painting mode implemented in this example is good with all the modern skins and most of the rest skins.

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>