Sept. 26, 2012
6:58 p.m.
Hi Pharoers, I'm a beginner with Pharo and try to dive into Morph. My question is trivial as I want to open a modal dialog to catch some text and save it in a file. I use the following code: dialog := TextEntryDialogWindow new. dialog openInWorld. dialog canceled ifFalse: [self createAndWrite: dialog entryText]. In Cincom Smalltalk, the same code opened a dialog modally , but here, not, as it seems suggested in the DialogWindow class comment. I don't know how to change this, I tried to include it as submorph in another morph, but it failed (still system modal). I also tried to tell currentWorld to set the ModalWindow to Dialog, without success. Any hint? Thank you Florent