Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: Wed May 15 07:45:26 CEST 2024

Total time taken to generate the page: 0.02476 seconds