7.2.4. ButtonBoxes

来源:互联网 发布:软件过程改进模型 编辑:程序博客网 时间:2024/06/07 19:24

学习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


 

 

源代码

原创粉丝点击