Login  Register

Re: FileDialog from Spec

Posted by Henrik Nergaard on Nov 12, 2015; 10:44pm
URL: https://forum.world.st/FileDialog-from-Spec-tp4860608p4860788.html

Hi Jeff,
Here is an example to bring up the file dialog answering a file reference.

| reference |
reference := UIManager default
  fileSave: 'Save as?'
  extensions: #('pdf' 'png' 'stuff')
  path: Smalltalk imageDirectory.

For other examples see MorphicUIManager where methods start with file*

Best regards,
Henrik

-----Original Message-----
From: Pharo-users [mailto:[hidden email]] On Behalf Of Jeff Gray
Sent: Thursday, November 12, 2015 11:22 PM
To: [hidden email]
Subject: Re: [Pharo-users] FileDialog from Spec

I just want to call a dialog on a button click.

What approach do I take with the Polymorph one?
Do I have to open a Polymorph window which then calls the dialog or can I bake the Polymorph dialog into my spec window?



--
View this message in context: http://forum.world.st/FileDialog-from-Spec-tp4860608p4860782.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.