RE: [gtkmm] label en button_press_event problems
- From: Murray Cumming Comneon com
- To: bart hakvoort castel nl, martin-ml hippogriff de, gtkmm-list gnome org
- Subject: RE: [gtkmm] label en button_press_event problems
- Date: Fri, 10 Oct 2003 18:08:18 +0200
> From: bart [mailto:bart hakvoort castel nl]
> Thanks, it compiles now, but it doesn't seem to be working.
> Below is the relevant part of my code:
>
> --------PresenceWindow.hh---------------------------------------
> class PresenceWindow : public Gtk::Window
> {
> Gtk::VBox vboxMain;
> Gtk::Label testlabel;
>
> public:
> PresenceWindow();
> bool labelklik(GdkEventButton *);
>
> };
I guess you need to put it in an EventBox:
http://www.gtkmm.org/gtkmm2/docs/tutorial/html/ch12.html
By the way, I'm sure that clickable labels are bad UI design 99% of the
time.
Murray Cumming
www.murrayc.com
murrayc usa net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]