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 » Developing U++ » UppHub » CtrlBinder as an alternative for CtrlRetriever
CtrlBinder as an alternative for CtrlRetriever [message #34856] Thu, 15 December 2011 09:28
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
There is useful class to retrieve value(s) from assigned Ctrl(s), named CtrlRetriever.

But there are situations, where you need to (re)assign value(s) to Ctrl(s), e.g. to cancel changes.
Which leads to creation of CtrlBinder class, based on CtrlRetriever implementation:
Toggle Spoiler


The main difference: CtrlBinder doesn't assign value to Ctrl, during the binding, by default. There is Assign method for this.
Therefore, CtrlBinder could be used in either direction - to assign or retrieve values.

In the attachment you could find TabCtrl serialize example, with using CtrlBinder to save/cancel changes.

Edit: Fixed include path to layout file for GCC compiler.

[Updated on: Wed, 22 February 2012 18:46]

Report message to a moderator

 
Read Message
Previous Topic: sysinfo gets error
Next Topic: Scatter malfunction du to ImageDraw bug ??
Goto Forum:
  


Current Time: Thu Mar 28 09:12:16 CET 2024

Total time taken to generate the page: 0.01269 seconds