Chinaunix首页 | 论坛 | 博客
  • 博客访问: 36561
  • 博文数量: 23
  • 博客积分: 1415
  • 博客等级: 上尉
  • 技术积分: 235
  • 用 户 组: 普通用户
  • 注册时间: 2009-02-20 09:41
文章分类
文章存档

2011年(1)

2010年(2)

2009年(20)

我的朋友

分类:

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);


阅读(494) | 评论(0) | 转发(0) |
0

上一篇:Gtk::Bin Container

下一篇:Gtk::Builder

给主人留下些什么吧!~~