begginer with C++



Hi.

I'm a experienced VB6 programmer (6 years) that what to learn another language.

I start with C++ and GLADE.

To start to learn I what to made a GLADE interface of this project
http://ghettonet.no-ip.org/~updater/
This a Open Source C++ project that not use GTK for GUI

Source can be browsed at
http://cvs.sourceforge.net/viewcvs.py/winpackman/WinPackManGTK/

I have committed it now (19:20 GTM +1), can be accessible later...
(web interface not is updated in real time). Source code can be
downloaded also with CVS.

I have problems (It's my 1º C++ program) setting events (click) in a image.

I try with this:

  mpGlade->get_widget("boxAbout", mpEventBox);
  mpEventBox->set_events (GDK_BUTTON_PRESS_MASK);
  mpEventBox->button_press_event.connect(slot(*this,  &MainWindow::onAbout));

But my compiler said
No matching function for call to `Gtk::EventBox::set_events(GdkEventMask)'

Any help?

Un saludo
Carlos Garces



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]