[wxhaskell-devel] How do I create a modal window

2009-06-18 Thread Henk-Jan van Tuyl
I want to create a modal window[1] to ask the user confirmation after selecting a certain menu option; I tried creating a child window, the application froze after closing the child. The code is as follows: > askConfirmation :: MDIParentFrame a -> IO BoolaskConfirmation > parent =

Re: [wxhaskell-devel] How do I create a modal window

2009-06-18 Thread Mads Lindstrøm
Hi Henik-Jan I did not even know that there was something called a MDI-Frame! But have you tried showModal? The showModal function[1] has worked for me in the past. See samples/wx/TimeFlowsEx.hs in the wxHaskell source repository for an (longish) example. Search, in the TimeFlowEx example, for "sh