RE: signal_focus_out_event



Thank you for the prompt response.

It is strange the way things happen, seconds after I clicked on send, I went back to the program and found the mistake, but any how, it is nice to know that you are there to give a helping hand.

 

Thanks

 

 

From: Kevin Brightwell [mailto:kevin brightwell2 gmail com]
Sent: Friday, August 17, 2012 11:45 AM
To: Arbol One
Subject: Re: signal_focus_out_event

 

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



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