http://pharo.org/documentation --> List of dialog windows in Pharo 4.0?
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... Would you mind putting the answer there as well because of ease of reference for other people? --Hannes On 8/25/15, Stephan Eggermont <stephan@stack.nl> 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-di... one. On 8/25/15, H. Hirzel <hannes.hirzel@gmail.com> 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...
Would you mind putting the answer there as well because of ease of reference for other people?
--Hannes
On 8/25/15, Stephan Eggermont <stephan@stack.nl> 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
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...
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
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 <stephan@stack.nl>:
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
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 <nicolaihess@web.de> 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 <stephan@stack.nl>:
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
participants (3)
-
H. Hirzel -
Nicolai Hess -
Stephan Eggermont