I’ve seen in WPF where you can bind control values to properties of other controls. How is that binding accomplished in C++?
For example, if I have a class called Car and a guage control called RPM, how do I tie the value of RPM to the member variable Car.RPM, so that when Car.RPM changes, it is automatically (as in without a specific update call coded by me) reflected by the RPM control?
General answers or directions to pertinent resources would be fine also, as I’m just beginning to dabble in C++ and haven’t had much Google luck with this particular question.
EDIT: See comments for further clarification.
It sounds like you want to have a pointer to the value Car.RPM in the gauge control. But the control will never be updated like you want to.
In pure C++ this sounds like work for the Observer-Observable pattern, or a simple callback function.