[Gtk-sharp-list] How to show custom window and do the	computation in the background
    Maciej Pilichowski 
    bluedzins at wp.pl
       
    Fri Jun 25 15:56:07 EDT 2010
    
    
  
Hello,
On Friday 25 June 2010 20:39:03 Christopher David Howie wrote:
> On 06/25/2010 02:17 PM, Maciej Pilichowski wrote:
> >   So -- how to have both worlds, show the dialog and do the
> > computation?
>
> http://www.mono-project.com/Responsive_Applications
Thank you for this link, I see similar approach as for WPF. However I 
still didn't do it right, I tried:
		Gtk.Application.Invoke (delegate{ dlg.Run(); });
or dlg.Show(). Now neither of calls shows the dialog.
  Just in case -- computation is loading a big file. Loading occurs 
when user chooses a file in a file dialog. At start I show main 
window and -- if user set argument for a program -- I set initial 
filename for file dialog.
--> show main window 
--> create file dialog 
--> set filename for file dialog 
--> the above triggers loading a file 
--> create progress dialog 
--> show progress dialog (*) 
--> load file
(*) this does not work
Cheers,
    
    
More information about the Gtk-sharp-list
mailing list