Hello, I am new to Pharo and I am trying to figure out a way to do modal AlertDialogWindow. The documentation I noticed says - someMorph openModal: aSystemWindow. Well, I can not seem to get the the Alert to be modal to my main window. Is there an easy way to do this? Thanks, Keith
Hi Keith, welcome. Have you tried something like World world openModal: AlertDialogWindow new Seems like what you are after. ...Stan -- View this message in context: http://n4.nabble.com/Modal-Dialogs-tp1560961p1560970.html Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Dear Keith We know that the documentation is not the one we would like. Now I will try to explain inn three sentences how you can find the answer to your question now. - Open the message name tools (in tools) type modal, modal: - Have a look at implementors of openModal: - Have a look at senders of openModal: Morph>>openModal: aSystemWindow "Open the given window locking the receiver until it is dismissed. Answer the system window. Restore the original keyboard focus when closed." here is an example MCMergeResolutionRequest>>viewPatchMerger "Open a modal diff tools browser to perform the merge." |m modalMorph| m := (PSMCMergeMorph forMerger: self merger) fromDescription: 'Working copy' translated; toDescription: messageText. modalMorph := (UIManager default respondsTo: #modalMorph) ifTrue: [UIManager default modalMorph] ifFalse: [World]. modalMorph openModal: ( m newWindow title: messageText). ^m merged So there are ways to find information. Now do not hesitate to ask any question to the list. Stef PS: BTW I did not either how to open a model widget. Now I know :) On Feb 18, 2010, at 11:57 PM, Dr. Keith A. Morneau wrote:
Hello,
I am new to Pharo and I am trying to figure out a way to do modal AlertDialogWindow. The documentation I noticed says - someMorph openModal: aSystemWindow. Well, I can not seem to get the the Alert to be modal to my main window. Is there an easy way to do this?
Thanks, Keith _______________________________________________ Pharo-users mailing list Pharo-users@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-users
participants (3)
-
Dr. Keith A. Morneau -
Stan Shepherd -
Stéphane Ducasse