开发者

How do you set a radiobutton as selected using code in gtk?

开发者 https://www.devze.com 2023-03-10 01:51 出处:网络
A radiobuttongroup was created and several radiomenuelems were created in that group. Clicking them results in the expected effect, but how do you set a radiobutton using code?

A radiobuttongroup was created and several radiomenuelems were created in that group. Clicking them results in the expected effect, but how do you set a radiobutton using code?

I've searched google fo开发者_Go百科r the answer but I can only find other people asking the same question without an answer such as here: http://markmail.org/message/3cpuikfcyszyf3xy


You can use Gtk::CheckMenuItem::set_active assuming you are asking about gtkmm, or gtk_check_menu_item_set_active from plain old GTK.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号