huwenhuo
全部博文(23)
2011年(1)
2010年(2)
2009年(20)
zhujiang
kshark
__gatsby
老山688
fender01
gavincha
karma303
zhujian1
dd_4435
分类:
2009-09-26 21:17:19
Gtk::HBox m_box(bool homogenous, int space); //Gtk::VBox m_box(bool homogenous, int space); m_box.pack_start(widget, Gtk::PackOption, guint padding); Gtk::PackOption: Gtk::PACK_SHRINK Gtk::PACK_EXPAND_PADDING Gtk::PACK_EXPAND_WIDGET Gtk::Table m_table(int rows, int cols, bool homogeneous); void Gtk::Table::attach(Gtk::Widget& child, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach, guint xoptions = Gtk::FILL | Gtk::EXPAND, guint yoptions = Gtk::FILL | Gtk::EXPAND, guint xpadding = 0, guint ypadding = 0); Gtk::FILL //widget expand Gtk::SHRINK //widget shrink Gtk::EXPANDING //table expand m_table.set_row_spacing(); m_table.set_col_spacing(); //m_table.set_row_spacings(); //m_table.set_col_spacings(); Gtk::ButtonBox bbox; bbox = Gtk::manage( new Gtk::HButtonBox() ); // bbox = Gtk::manage( new Gtk::VButtonBox() ); bbox->set_border_width(5); bbox->set_layout(layout); //Gtk::ButtonBoxStyle layout //Gtk::BUTTONBOX_EDGE //Gtk::BUTTONBOX_SPREAD //Gtk::BUTTONBOX_START //Gtk::BUTTONBOX_END bbox->set_spacing(spacing); bbox->add(m_Button_OK);
上一篇:Gtk::Bin Container
下一篇:Gtk::Builder
登录 注册