学习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. 示例