C++builder 的TTabControl怎么可视化建立分页和往每个分页里面放东西
用的是C++builder2009,发现TTabControl的Tabs属性里面输入多行字符可以添加Tab页面。但往TTabControl控件下添加东西发现不会根据翻页而...
用的是C++builder2009,发现TTabControl的Tabs属性里面输入多行字符可以添加Tab页面。但往TTabControl控件下添加东西发现不会根据翻页而隐藏,而编辑窗口时点击上面的Tab表情又不会像java那样到另外一个标签卡下。(狂点就编辑代码了)晕啊,手头上又米有什么书,谁救救我哇。怎么正规的在可视化界面下添加标签页和往每个标签页上添加东东。
哦,我在树上找到了,你说的那个是TPageControl控件,谢谢了,不过TTabControl又是干什么的呢? 展开
哦,我在树上找到了,你说的那个是TPageControl控件,谢谢了,不过TTabControl又是干什么的呢? 展开
2个回答
展开全部
效果都一样,区别是TTabControl只有一个设计页面,需要你在切换标签时自己写代码改变页面控件,没有TPageControl控件方便
Description
Use TTabControl to add a control with multiple tab settings to a form. Unlike a page control, TTabControl is not made up of several pages that contain different controls. Instead, TTabControl is a single object. When the current tab changes, the tab control must directly update its contents to reflect the change in an OnChange event handler.
Disabling a TTabControl object disables all tabs because it is one control. To disable individual tabs, use TPageControl and disable the individual TTabSheet controls that represent the pages.
Description
Use TTabControl to add a control with multiple tab settings to a form. Unlike a page control, TTabControl is not made up of several pages that contain different controls. Instead, TTabControl is a single object. When the current tab changes, the tab control must directly update its contents to reflect the change in an OnChange event handler.
Disabling a TTabControl object disables all tabs because it is one control. To disable individual tabs, use TPageControl and disable the individual TTabSheet controls that represent the pages.
参考资料: HAIANDJ@163.COM
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询