Re: [問題] gtk notebook

看板Programming作者 (garyzyg)時間17年前 (2008/05/25 12:56), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串3/3 (看更多)
※ 引述《HZYSoft (PCMan 知識+)》之銘言: : ※ 引述《garyzyg (garyzyg)》之銘言: : : 作者: garyzyg (garyzyg) 看板: C_and_CPP : : 標題: [問題] gtk notebook : : 時間: Sat May 24 16:55:12 2008 : : http://rafb.net/p/zhg23t76.html : : 請問一下, tab label 怎麼會出不來呢? : : hbox 包含 check_button, label 各一個, : : tab label 放 hbox : gtk_widget_show_all(hbox); : 兩行文... ok 了 再請問一下 gtk_widget_show_all (window); 不是會 hierarchical 的 show 出來嘛? 怎會還要單獨去 show hbox? -- 不過執行的時候出現 (notebooks:14152): Gtk-WARNING **: Attempting to add a widget with type GtkHBox to a container of type GtkNotebook, but the widget is already inside a container of type GtkNotebook, the GTK+ FAQ at http://www.gtk.org/faq/ explains how to reparent a widget. 我懷疑應該嵌套的方法錯了, 繼續研讀好了. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 218.166.44.220
文章代碼(AID): #18EF5ne2 (Programming)
討論串 (同標題文章)
文章代碼(AID): #18EF5ne2 (Programming)