Hello
I am looking for a list of ready made dialog windows in Pharo 4.0 and the main API to use them. - FileDialog, - Alert dialog (OK) - Yes / No / Cancel dialog - Dialog with info text and selection list. - Wizards Searching for dialog window alert file on http://files.pharo.org/doc/4.0 did not give any result. Could you help please? Thank you in advance Hannes |
On 25-08-15 09:09, H. Hirzel wrote:
> Hello > > I am looking for a list of ready made dialog windows in Pharo 4.0 and > the main API to use them. > > - FileDialog, MindmapNode class>>open |fileName| fileName := UITheme current chooseFileIn: World title: 'Choose file' extensions: nil path: nil preview:nil. fileName ifNotNil: [(FLMaterializer materializationFromFileNamed: fileName) root openInWorld attachAllSubnodes detachAllSubnodes ] MindmapNode>>saveMap |fileName| fileName := UITheme current fileSaveIn: World title: 'Choose file' extensions: nil path: nil. fileName ifNotNil: [ FLSerializer serialize: self toFileNamed: fileName]. Stephan |
Thank you Stephan, in the meantime I did as well a question on the
file dialog on http://stackoverflow.com/questions/32198476/how-do-i-ask-the-user-for-a-file-name Would you mind putting the answer there as well because of ease of reference for other people? --Hannes On 8/25/15, Stephan Eggermont <[hidden email]> wrote: > On 25-08-15 09:09, H. Hirzel wrote: >> Hello >> >> I am looking for a list of ready made dialog windows in Pharo 4.0 and >> the main API to use them. >> >> - FileDialog, > > MindmapNode class>>open > |fileName| > fileName := UITheme current chooseFileIn: World title: 'Choose file' > extensions: nil path: nil preview:nil. > fileName ifNotNil: [(FLMaterializer materializationFromFileNamed: > fileName) > root openInWorld attachAllSubnodes detachAllSubnodes ] > > MindmapNode>>saveMap > |fileName| > fileName := UITheme current fileSaveIn: World title: 'Choose file' > extensions: nil path: nil. > fileName ifNotNil: [ FLSerializer serialize: self toFileNamed: fileName]. > > Stephan > > > |
And this
http://stackoverflow.com/questions/32198721/how-do-i-call-a-yes-no-cancel-dialog-in-pharo-4-0 one. On 8/25/15, H. Hirzel <[hidden email]> wrote: > Thank you Stephan, in the meantime I did as well a question on the > file dialog on > > http://stackoverflow.com/questions/32198476/how-do-i-ask-the-user-for-a-file-name > > Would you mind putting the answer there as well because of ease of > reference for other people? > > --Hannes > > On 8/25/15, Stephan Eggermont <[hidden email]> wrote: >> On 25-08-15 09:09, H. Hirzel wrote: >>> Hello >>> >>> I am looking for a list of ready made dialog windows in Pharo 4.0 and >>> the main API to use them. >>> >>> - FileDialog, >> >> MindmapNode class>>open >> |fileName| >> fileName := UITheme current chooseFileIn: World title: 'Choose file' >> extensions: nil path: nil preview:nil. >> fileName ifNotNil: [(FLMaterializer materializationFromFileNamed: >> fileName) >> root openInWorld attachAllSubnodes detachAllSubnodes ] >> >> MindmapNode>>saveMap >> |fileName| >> fileName := UITheme current fileSaveIn: World title: 'Choose file' >> extensions: nil path: nil. >> fileName ifNotNil: [ FLSerializer serialize: self toFileNamed: >> fileName]. >> >> Stephan >> >> >> > |
In reply to this post by Hannes Hirzel
On 25/08/15 09:57, H. Hirzel wrote:
> Thank you Stephan, in the meantime I did as well a question on the > file dialog on > > http://stackoverflow.com/questions/32198476/how-do-i-ask-the-user-for-a-file-name > > Would you mind putting the answer there as well because of ease of > reference for other people? Yes, and please realize that pushing people to stackoverflow is a really bad idea. We don't have enough influence there to keep relevant questions open. As a small community we get very little reputation and therefore privilege. Stackoverflow is about majority, not about technical excellence. Stephan |
In reply to this post by Stephan Eggermont-3
And there are some examples in class WidgeExample WidgeExample class >>exampleDialogs WidgeExample class >>exampleBasicControls WidgeExample class >>exampleOtherControls 2015-08-25 9:36 GMT+02:00 Stephan Eggermont <[hidden email]>: On 25-08-15 09:09, H. Hirzel wrote: |
I found as well useful to just present a text result
| theText | theText := 'The result of my query'. TextModel new text: theText; openWithSpec On 8/25/15, Nicolai Hess <[hidden email]> wrote: > And there are some examples in class WidgeExample > WidgeExample class >>exampleDialogs > WidgeExample class >>exampleBasicControls > WidgeExample class >>exampleOtherControls > > 2015-08-25 9:36 GMT+02:00 Stephan Eggermont <[hidden email]>: > >> On 25-08-15 09:09, H. Hirzel wrote: >> >>> Hello >>> >>> I am looking for a list of ready made dialog windows in Pharo 4.0 and >>> the main API to use them. >>> >>> - FileDialog, >>> >> >> MindmapNode class>>open >> |fileName| >> fileName := UITheme current chooseFileIn: World title: 'Choose >> file' extensions: nil path: nil preview:nil. >> fileName ifNotNil: [(FLMaterializer materializationFromFileNamed: >> fileName) >> root openInWorld attachAllSubnodes detachAllSubnodes ] >> >> MindmapNode>>saveMap >> |fileName| >> fileName := UITheme current fileSaveIn: World title: 'Choose >> file' >> extensions: nil path: nil. >> fileName ifNotNil: [ FLSerializer serialize: self toFileNamed: >> fileName]. >> >> Stephan >> >> >> > |
Free forum by Nabble | Edit this page |