2010-06-30 35 views

回答

2

您可以訪問按鈕的子部件 - 默認設置爲GtkLabel,並在其上設置各種屬性。 wrap。但是,由於在GTK + 2.x中沒有高寬比佈局協商,所以你想要的東西可能很難/幾乎不可能實現。請注意,如果需要,您也可以替換按鈕的孩子。

+0

我都忘了,這也是一種'GtkContainer'!謝謝! – ptomato 2010-06-30 23:43:36

0

我還得到了以這種方式工作(使用GtkSharp)

RadioButton rb; 

/* Initialize the radio button ... */ 

//Set its wrap mode 
(rb.Child as Gtk.Label).Wrap = true; 
(rb.Child as Gtk.Label).LineWrap = true; 
(rb.Child as Gtk.Label).LineWrapMode = Pango.WrapMode.Word;