窗口应用中的Tab控件 [英] Tab Control in window appliction

查看:81
本文介绍了窗口应用中的Tab控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发.Net 2008窗口应用程序.我在带有提升对齐的MDI表单上有一个选项卡控件.

Hi,
I am working on .Net 2008 window application. I have a tab control on MDI form with lift align. How to change text of the Tabs to vertically.

推荐答案

首先...为什么要在MDI表单中使用Tab控件? MDI的目的是充当其他形式的容器;将控件放入MDI不能达到此目的.

第二...当将Tab控件设置为左对齐或右对齐时,将制表符文本定位为使文本顶部靠外边缘.据我所知,更改此行为的唯一方法是将控件子类化并自己绘制文本.不过,这是一个非常复杂的项目:我发现最简单的方法是将选项卡保持在页面顶部,或者避免使用选项卡"控件并使用按钮栏手动将面板移入和移出.
First... why do you have your Tab control in your MDI form? The purpose of an MDI is to serve as a container for other forms; putting controls in an MDI defeats this purpose.

Second... When a Tab control is set to left or right align, the tab text is positioned to put the top of the text against the outside edge. As far as I know, the only way to change this behavior is to subclass the control and draw the text yourself. That is a pretty complex project, though: I find it easiest to keep the tabs at the top of the page, or to avoid the Tab control and use a button bar to manually swap panels in and out.


这篇关于窗口应用中的Tab控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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