Re: Detecting click on a label or a box?
- From: Maurizio Colucci <seguso forever tin it>
- To: gtk-list gnome org
- Subject: Re: Detecting click on a label or a box?
- Date: Wed, 17 Dec 2003 01:17:56 +0000
On Tuesday 16 December 2003 11:48 pm, Roger Leigh wrote:
> > 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.
Thanks a lot, I did it!
Maurizio
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]