U++ framework
Do not panic. Ask here before giving up.

Home » Community » Newbie corner » Action on exit from an EditString field
Re: Action on exit from an EditString field [message #45108 is a reply to message #45107] Wed, 02 September 2015 15:46 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
Hello, Giorgio.

Giorgio wrote on Wed, 02 September 2015 08:30
I need to execute an action when I exit from an EditString field.

According to the mentioned topic, you could override LostFocus virtual function or just use proposed C++ template(s), e.g.:
// Create an object of EditString with WithLostFocus template
WithLostFocus<EditString> text;
// Assign some function to WhenLostFocus callback
text.WhenLostFocus = callback1(PromptOK, "LostFocus");

The more complete example follows:
Toggle example

[Updated on: Wed, 02 September 2015 16:01]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Defining composite primary key
Next Topic: Encrypting password in .ini file with aes
Goto Forum:
  


Current Time: Fri Jun 12 18:00:19 GMT+2 2026

Total time taken to generate the page: 0.00514 seconds