[prev in list] [next in list] [prev in thread] [next in thread]
List: gtkmm
Subject: problem with radiotoolbutton
From: dzho002 <zhou_dx () yahoo ! com>
Date: 2004-11-23 1:09:22
Message-ID: 20041123010923.29803.qmail () web13426 ! mail ! yahoo ! com
[Download RAW message or body]
Hi, I just tried gtkmm2.4's radiotoolbutton (in the
old style other than using UIManager). But it does not
work as expected. The two radio buttons in a group are
both "active" by default, and donot respond to mouse
click. Have I done anything wrong?
Cheers,
Dan
------------------------------------------
//g++ `pkg-config gtkmm-2.4 --libs --cflags`
//testToggleToolbutton.cc
#include <gtkmm.h>
int main(int argc, char *argv[])
{
Gtk::Main kit=Gtk::Main (argc, argv);
Gtk::Window mainWnd;
Gtk::Toolbar toolbar;
Gtk::RadioButtonGroup group;
toolbar.append(*Gtk::manage(new
Gtk::RadioToolButton(group,"R1")));
toolbar.append(*Gtk::manage(new
Gtk::RadioToolButton(group,"R2")));
mainWnd.set_size_request(100,50);
mainWnd.add(toolbar);
mainWnd.show_all();
kit.run(mainWnd);
}
=====
----------------------------------------------------------
Have fun!
__________________________________________________________
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
_______________________________________________
gtkmm-list mailing list
gtkmm-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic