EventBox and Bind
- From: "Sudrien" <sudrien fusemail com>
- To: gtkmm-list gnome org
- Subject: EventBox and Bind
- Date: Thu, 30 Dec 2004 23:19:31 -0600 (CST)
Ok, If figured out the last menu question- it involved a lot of Menuitems,
tables, and event boxes.
Now I have the following code, and can't figure out a signal that will
work with it.
//////////////////////
Gtk::EventBox * SubEventBox = Gtk::manage(new class Gtk::EventBox());
#ifdef WIN32
SubEventBox->add_label(tmp3+"\\");
#else
SubEventBox->add_label(tmp3+"/");
#endif
// skipping ....
SubEventBox->set_events(Gdk::BUTTON_RELEASE_MASK);
SubEventBox->signal_button_press_event().connect(
sigc::bind<Glib::ustring>(
sigc::mem_fun(*this, &PresentClass::PresentClassSelect), fullPath +
tmp3 ));
//////////////////////
Now both fullPath & tmp3 are ustrings, and tmp3 will change several times
as the menu generates. So I figure I have to bind them somehow. But I can
get the compiler to run with anything I give it... and
&PresentClass::PresentClassSelect rebuilds the menu based on the path.
So how can I pass the information on, along with the button press
information?
-Sud.
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]