7.2.7. Notebook

学习gtkmm有几周了,英语太烂了,硬着头皮边看边记,还没把握,发上来,大家斧正

7.2.7. Notebook

ANotebookhas a set of stackedpages, each of which contains widgets. Labelledtabsallow the user to select the pages.Notebooks allow several sets of widgets to be placed in a small space, by only showing one page at a time. For instance, they are often used in preferences dialogs.

Notebook有一个堆迭的页的集合,其中每个页可包含子控件。标签选项卡允许用户选择页面。Notebook允许几套子控件放在同一块空间,每次只显示一页。例如,常用的首选项对话框。

Use theappend_page(),prepend_page()andinsert_page()methods to add tabbed pages to theNotebook, supplying the child widget and the name for the tab.

提供子控件和选项卡的名称,使用append_page()prepend_page()insert_page()的方法,将选项卡式的页面添加到Notebook

To discover the currently visible page, use theget_current_page()method. This returns the page number, and then callingget_nth_page()with that number will give you a pointer to the actual child widget.

使用get_current_page()方法,获得当前可见页编号。然后用这个页编号调用get_nth_page(),得到指向子控件的指针。

To programmatically change the selected page, use theset_current_page()method.

以编程方式更改选定的页面,可使用set_current_page()方法。

参考

§  7.2.7.1. 示例

7.2.7.1. 示例

7-12 Notebook


源代码

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值