Andreas Saeger wrote: > Laurent Godard wrote: >> Hi >> >>> M.Title = args.__repr__() +' <'+ str(Wavelet.cnt) +'>' >>> Dlg.setModel(M) >>> Dlg.setVisible(True) >>> Dlg.execute() >>> >> >> try commenting the Dlg.execute() >> >> Laurent >> > > Thank you, Laurent. This is how I get non-modal dialogs. I need modal > ones, but independant from each other: > DocFrame1(locked) ---> Dialog1(focusable, ref-count=1) > DocFrame2(locked) ---> Dialog2(focusable, ref-count=2) > > What I get is: > DocFrame1(locked) ---> Dialog1(locked, ref-count=1) > DocFrame2(locked) ---> Dialog2(focusable, ref-count=2) > > With your suggestion I get: > DocFrame1(focusable) ---> Dialog1(focusable, ref-count=1) > DocFrame2(focusable) ---> Dialog2(focusable, ref-count=1) > > Just tested with builtin dialog SaveAs. Same issue. You can open one > dialog for each frame, but edit the last one only. Same with SaveAs in > firefox. So I think it is my lack of knowlege, how things work in general.
This is a limitation of modal dialogs. No workaround possible except using modeless ones. A modal dialog can always be replaced by a modeless one by moving the code on the stack to a class object that has a callback to be called when a button with an "exit" semantics is pressed. Maybe indeed this is the wrong list for this as Stephan said. Ciao, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
