I always forget to hit reply-all.

---------- Forwarded message ----------
From: Kevin Brightwell <[email protected]>
Date: Fri, Aug 17, 2012 at 11:45 AM
Subject: Re: signal_focus_out_event
To: Arbol One <[email protected]>


class myEntry : virtual public Gtk::VBox {
>
> private:
>
>     Gtk::Entry* ntrTest;
>
>     Gtk::Label* lblTest;
>
> public:
>
>     myEntry();
>
>     virtual ~myEntry() {}
>
>     bool notifyOutofFocus(GdkEventFocus *);
> };
>
>
> bool jme::myEntry::notifyOutofFocus(GdkEventFocus *ev){
>
>     //Display "I ma here"
>
>     return false;
> }
>

There, I've fixed it for you. But, you really should look at the
documentation<http://developer.gnome.org/gtkmm/unstable/classGtk_1_1Widget.html#a928afef862c529586ce0d461598623f1>,
first.

Cheers,
Kevin

On Fri, Aug 17, 2012 at 11:28 AM, Arbol One <[email protected]> wrote:

> Using Gtkmm - 2.22 on my Win7 with MinGW, I am trying to compile this
> program, but the ****
>
> this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this,
> &jme::myEntry::notifyOutofFocus));****
>
> gives me an error at compile time, what am I doing wrong?****
>
> ** **
>
> ** **
>
> class myEntry : virtual public Gtk::VBox {****
>
> private:****
>
>     Gtk::Entry* ntrTest;****
>
>     Gtk::Label* lblTest;****
>
> public:****
>
>     myEntry();****
>
>     virtual ~myEntry() {}****
>
>     bool notifyOutofFocus();****
>
> };****
>
> }****
>
> myEntry::myEntry() {****
>
>     this->ntrTest = Gtk::manage(new Gtk::Entry());****
>
>     this->ntrTest->signal_focus_out_event().connect(sigc::mem_fun(*this,
> &myEntry::notifyOutofFocus));****
>
> ** **
>
>     this->lblTest = Gtk::manage(new Gtk::Label("test", Gtk::ALIGN_LEFT));*
> ***
>
>     this->pack_start(*lblTest);****
>
>     this->pack_start(*ntrTest);****
>
> }****
>
> bool jme::myEntry::notifyOutofFocus(){   ****
>
>     //Display "I ma here"****
>
>     return false;****
>
> }****
>
> ** **
>
> ** **
>
> Thanks in advance****
>
> ** **
>
> ** **
>
> --------****
>
> This e-mail is for the sole use of the intended recipient and may contain
> confidential or privileged information. Unauthorized use of its contents is
> prohibited. If you have received this e-mail in error, please notify sender
> immediately via return e-mail and then delete the original e-mail.****
>
> ** **
>
> _______________________________________________
> gtkmm-list mailing list
> [email protected]
> https://mail.gnome.org/mailman/listinfo/gtkmm-list
>
>


-- 
Kevin Brightwell
*Year 4 Bachelor of Computer Engineering (BESc.)
Year 3 Bachelor of Computer Science (BSc.) *
Residence Don - Saugeen-Maitland Hall
Western University www.westernu.ca <http://www.uwo.ca>
e. [email protected] c. 226.678.4927




-- 
Kevin Brightwell
*Year 4 Bachelor of Computer Engineering (BESc.)
Year 3 Bachelor of Computer Science (BSc.) *
Residence Don - Saugeen-Maitland Hall
Western University www.westernu.ca <http://www.uwo.ca>
e. [email protected] c. 226.678.4927
_______________________________________________
gtkmm-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gtkmm-list

Reply via email to