Re: How to detect mouse motion over a label



>On Thu, 2003-05-22 at 04:50, Jun Ma wrote:
>> What is add_event()?
>
>It is a short form for gtk_widget_add_event() or
>Gtk::Widget::add_event() or whatever is called the add_event() method in
>your language.
>
>When you want to watch for an event you need a window and need to be
>sure that such event is enabled in the event mask.

which typically means creating a GtkEventBox, adding the label,
setting the desired events on the event box, and handling the ones you
want to handle. labels have no window of their own, and so you cannot
receive events for them. you have to put them in another container
widget that has its own window.

--p



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