拆分容器颜色 [英] split container colour

查看:74
本文介绍了拆分容器颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何设置拆分容器的边框颜色

how to set the border clour of split container

推荐答案

检查 http://stackoverflow.com/questions/7280993/emphasize-the-splitcontainer [ ^ ]


如果你的意思是每个面板周围的边框 - 你将BorderStyle设置为Fixed时得到的边框 - 那么你不能 - 它直接由Windows绘制,这意味着它没有OnPaint调用。所以你可以改变它的颜色。



你必须在每个内部面板中使用一个面板并使用其中的DrawBorder方法自己处理边框样式油漆事件。
If you mean the border around each panel - the one you get when you set BorderStyle to Fixed - then you can't - it's painted directly by Windows, and that means there is no OnPaint call for it. So you can;t change it's colour.

You would have to use a panel inside each inner panel and handle the border style for that yourself using the DrawBorder method in it's Paint event.


这篇关于拆分容器颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆