My thoughts exactly! 😊 There is a description on how to do this i the spec book, here https://ci.inria.fr/pharo-
contribution/view/Books/job/ BuildingUIWithSpec/ lastSuccessfulBuild/artifact/ book-result/SpecBooklet.pdf# section*.20
More about the book at http://books.pharo.org/spec-
tutorial/
--
Johan Fabry, Senior Software Engineer.
[hidden email] | Email too brief? Here's why! http://emailcharter.org
From: Moose-dev [mailto:[hidden email]] On Behalf Of Peter Uhnák
Sent: Tuesday, March 27, 2018 6:38 PM
To: Moose-related development <[hidden email]>
Subject: [Moose-dev] Re: Error dialog?
Hi Luke,
For example, I would like to show an error message that includes the output of a Unix command (potentially quite long.)
I had similar issue and in the end I decided to just create a custom dialog using Spec.
tm := TextModel new.
tm title: 'Failed to do something useful'.
tm enabled: false.
tm text: 'A ' asText, ('lot' asText allItalic), ' of ' asText, ('text' asText allBold makeAllColor: Color red), ' can fit into this box.' asText.
tm openDialogWithSpec
Obviously this is literally the most basic way, I could e.g. compose multiple Spec Models etc.
Peter
_______________________________________________
Moose-dev mailing list
[hidden email]
https://www.list.inf.unibe.ch/listinfo/moose-dev
Free forum by Nabble | Edit this page |