Fwd: signal_focus_out_event



I always forget to hit reply-all.

---------- Forwarded message ----------
From: Kevin Brightwell <kevin brightwell2 gmail com>
Date: Fri, Aug 17, 2012 at 11:45 AM
Subject: Re: signal_focus_out_event
To: Arbol One <arbolone gmail com>


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, first.

Cheers,
Kevin

On Fri, Aug 17, 2012 at 11:28 AM, Arbol One <arbolone gmail com> 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
gtkmm-list gnome org
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
e. kevin brightwell2 gmail com 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
e. kevin brightwell2 gmail com c. 226.678.4927



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