RE: [gtkmm] Mouse problems



I am confused; I thought the root widget would have to be a window, and surely the root window can receive mouse events? Besides, Gtk::Window is derived from Gtk::Widget, so if a widget can do it, surely a window can also.

-----Original Message-----
From: Murray Cumming Comneon com [mailto:Murray Cumming Comneon com]
Sent: Thursday, July 10, 2003 2:08 PM
To: Stephens, Ben J (UK); gtkmm-list gnome org
Subject: RE: [gtkmm] Mouse problems


                   *** WARNING ***

This mail has originated outside your organization,
either from an external partner or the Global Internet. 
     Keep this in mind if you answer this message. 

> From: Stephens, Ben J (UK) [mailto:ben j stephens baesystems com] 
> // Nor is this
> bool MainWindow::on_button_press_event(GdkEventButton *event)
> {
> 	cout << "Button pressed" << endl;
> 	
> 	Gtk::Widget::on_button_press_event(event);

This looks strange. The base class of your MainWindow class is Gtk::Window,
not Gtk::Widget. It might not be a problem though.

Murray Cumming
murrayc usa net
www.murrayc.com


********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************



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