Re: Detecting click on a label or a box?
- From: Roger Leigh <roger whinlatter uklinux net>
- To: Maurizio Colucci <seguso forever tin it>
- Cc: gtk-list gnome org
- Subject: Re: Detecting click on a label or a box?
- Date: Tue, 16 Dec 2003 23:48:43 +0000
Maurizio Colucci <seguso forever tin it> writes:
> is it possible to detect mouse clicks on a label or on the enclosing box?
You need to put the label into a Gtk::EventBox. The EventBox can
detect events, whereas a Label cannot. You can then connect to its
signal_button_press_event signal.
HTH,
Roger
--
Roger Leigh
Printing on GNU/Linux? http://gimp-print.sourceforge.net/
GPG Public Key: 0x25BFB848. Please sign and encrypt your mail.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]