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 » U++ Library support » U++ Core » How to get value from parent AppWindow class?
How to get value from parent AppWindow class? [message #43798] Thu, 16 October 2014 09:58 Go to previous message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
struct ChildAppWindow : TopWindow {
ChildAppWindow();
bool IsStop();
};

bool ChildAppWindow::IsStop()
{
// how can i cat bStop ( In class MyAppWindow)?
}

struct MyAppWindow : TopWindow {
MyAppWindow() ;

bool bStop;
void IsStop(bool& b) { b = bStop;}

ChildAppWindow child;

};

One way is like below:

Callback<bool&> cb_IsStop;
child.cb_IsStop = THISBACK(IsStop);

but this is not so convenient i think Crying or Very Sad

[Updated on: Thu, 16 October 2014 10:00]

Report message to a moderator

 
Read Message
Read Message
Previous Topic: XmlNode class is excellent
Next Topic: Problem with copy construction of std::vector from Upp::Vector
Goto Forum:
  


Current Time: Tue May 07 04:32:34 CEST 2024

Total time taken to generate the page: 0.01779 seconds