Re: [gtkmm] how to use te signal_focus ?
- From: Daniel Sundberg <dss home se>
- To: Bart Hakvoort <bart hakvoort castel nl>
- Cc: daniel elstner gmx net, gtkmm-list gnome org
- Subject: Re: [gtkmm] how to use te signal_focus ?
- Date: Wed, 16 Oct 2002 01:22:54 +0200
On 15 Oct 2002 22:26:46 +0200
Bart Hakvoort <bart hakvoort castel nl> wrote:
> You won't see any example code until you tell us what "extended TreeView
> code" is supposed to be ;)
>
> do you mean i have to be more specific? or have i used the wrong english
> word? :-)
>
You need to tell us what you want to do with the treeview. How you want to extend the treeview compared to the examples. As far as I can tell your english was ok...
---
Daniel Sundberg
dss home se
> either case, thanks for the reply, i'll try it out!
>
> bart
>
>
> On Tue, 2002-10-15 at 22:10, Daniel Elstner wrote:
> > Am Die, 2002-10-15 um 21.42 schrieb Bart Hakvoort:
> > > I need to check if a Treeview had te focus or not and if it get the
> > > focus i need to know it. So my question is: how do i connect a
> > > signal_focus to a treeview ?
> >
> > Gtk::Widget::has_focus() tells you whether the widget has the focus. To
> > get notification on focus changes, you should probably connect to
> > Gtk::Widget::signal_focus_in_event() -- but I never used it, look up the
> > GTK+ documentation for details.
> >
> > Connecting to a signal is easy:
> >
> > foo_widget->signal_bar().connect(
> > SigC::slot(*this, &FuzzClass::bazz_method));
> >
> > *this can actually be a reference to any object derived from
> > SigC::Object. If you derive from the widget that provides the signal
> > you can alternatively override the corresponding on_bar() method
> > instead.
> >
> > > and another request ;) does anyone have an extended Treeview code? i
> > > have my own ( simple ) treeview now, but i like to do some more
> > > sophisticated things with it. And an example might come in handy
> >
> > You won't see any example code until you tell us what "extended TreeView
> > code" is supposed to be ;)
> >
> > --Daniel
> >
> >
> > _______________________________________________
> > gtkmm-list mailing list
> > gtkmm-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]