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 » Is there a message when a control contents changes?
Re: Is there a message when a control contents changes? [message #43846 is a reply to message #43844] Tue, 04 November 2014 19:53 Go to previous messageGo to previous message
Didier is currently offline  Didier
Messages: 736
Registered: November 2008
Location: France
Contributor
Hello Rxantos,

basically all the GUI management is based on events, so if you wan't to do some action if a ctrl changes, use the callbacks of the controls for that (usually the names of the callback members are like : "when...." : WhenAction, WhenPush, ....
You will have to set the callback of all the ctrls you wan't to monitor inside you're dialog.

A nice feature about callbacks is that you can put several actions (callbacks) in one callback !!
You have to use the << operator for this like in this example :
(button.WhenAction << THISBACK(actionOne)) << THISBACK(actionTwo);

This allows you to monitor callbacks while still allowing normal use of the callbacks
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Character array
Next Topic: ArrayPair, where is it ?
Goto Forum:
  


Current Time: Sun Aug 24 16:14:12 CEST 2025

Total time taken to generate the page: 0.03712 seconds