Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Force application to run when window hidden
Force application to run when window hidden [message #685375] Fri, 17 June 2011 07:43 Go to next message
Eclipse UserFriend
Is it possible to force an RCP application to run when the application window is hidden? I want the program to keep redrawing, even when the window is minimized.
Re: Force application to run when window hidden [message #685421 is a reply to message #685375] Fri, 17 June 2011 09:30 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Are you sure it isn't running anyway? The workbench is run by this loop:

while (true) {
	if (!display.readAndDispatch()) {
		if (initDone[0])
		      break;
		display.sleep();
	}
}

This means that every event (that causes redrawing) is dispatched anyway, not depending on the visible state of the parent shell.
If you want to redraw diagrammatically you might wanna call that routine by yourself. But once again: I don't think that the shell stops redrawing if it is not visible.

What exactly do you want to do? Why do you need to redraw a user interface that is not visible?

Kind regards,

-- artur
Re: Force application to run when window hidden [message #685434 is a reply to message #685421] Fri, 17 June 2011 10:04 Go to previous message
Eclipse UserFriend
Thank you for the quick reply!
The only thing i know for sure is that the paintlistener in the view stops running when i hide the application window behind another window (like Firefox), or minimizes the application. It starts to run immediately when the application is showing again.
I have built in an autopilot in my image processing application. This autopilot pauses every time i hide my application window...
Previous Topic:Get resource works from within IDE but not after export
Next Topic:Outline and Property Sheet
Goto Forum:
  


Current Time: Fri Jul 04 04:20:54 EDT 2025

Powered by FUDForum. Page generated in 0.02938 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top