7.2.4. ButtonBoxes

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

7.2.4. ButtonBoxes

Button boxes are a convenient way to quickly arrange a group of buttons. They come in both horizontal (Gtk::HButtonBox) and vertical (Gtk::VButtonBox) flavours. They are exactly alike, except in name and orientation.

Button boxes(按钮框)是快速排列的一组按钮的简便方法。他们可提供Gtk::HButtonBox的水平和垂直Gtk::VButtonBox的两种特色。它们完全相同,除了名称和方向。

ButtonBoxes help to make applications appear consistent because they use standard settings, such as inter-button spacing and packing.

ButtonBoxes有助于使应用程序的外观保持一致,因为它们使用标准的设置,例如,按钮之间的间距和包装放置。

Buttons are added to aButtonBoxwith theadd()method.

按钮用add()方法添加到ButtonBox中。

Button boxes support several layout styles. The style can be retrieved and changed usingget_layout()andset_layout().

按钮框支持几种布局样式。样式可以检索和使用get_layout()set_layout()更改。

参考

§  7.2.4.1. 示例

7.2.4.1. 示例

7-9 ButtonBox


 

 

源代码

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值