How to use specific methods with a generic widget pointer?
- From: Paulo Flabiano Smorigo <pfsmorigo gmail com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: How to use specific methods with a generic widget pointer?
- Date: Tue, 17 Mar 2009 11:33:11 -0300
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’
Thanks in advance,
Paulo Flabiano Smorigo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]