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++ Widgets - General questions or Mixed problems » UI window threading problem
Re: UI window threading problem [message #39791 is a reply to message #39790] Mon, 29 April 2013 02:03 Go to previous messageGo to previous message
Sender Ghost is currently offline  Sender Ghost
Messages: 301
Registered: November 2008
Senior Member
Hello, Crydev.
crydev wrote on Sun, 28 April 2013 22:28

Now that I all fixed it, I wonder: isn't there a better solution to achieve the non-modal window to be closed, without the need of a thread?

The simple answer is using of PostCallback before closing non-modal window:
void DoingScan()
{
	// Doing some scanning
	Sleep(1000);
}

void Window::OnOK()
{
	PostCallback(callback(DoingScan));
	Close();
}

But after the reconstruction of what you did, I came to the following solution:
Toggle Spoiler

Where you have access to the contents of the non-modal window after closing it, while run the scanning process on the right exit code.

[Updated on: Mon, 29 April 2013 12:50]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Scrolling ArrayCtrl with Ctrls
Next Topic: How to disable mouse cursor application wide ??
Goto Forum:
  


Current Time: Sun Aug 03 22:11:11 CEST 2025

Total time taken to generate the page: 0.14148 seconds