Paulo Flabiano Smorigo a écrit :
Hello,

What can I do to solve the following error? I need to use a different
kind of pointer?

The code:
Gtk::ToggleButton btnOK;
Gtk::Widget *ptrElement = NULL;

ptrElement = &btnOK;

ptrElement->set_active(true);

The error:
error: ‘class Gtk::Widget’ has no member named ‘set_active’

Gtk::Widget has no member ‘set_active’. This member is specific to Gtk::ToggleButton and derived classes. Wy don't you call ‘btnOK.set_active’ directly ?

Thanks in advance,
Paulo Flabiano Smorigo

Guillaume
_______________________________________________
gtkmm-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to