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/la…
More about the book at
http://books.pharo.org/spec-tutorial/
--
Johan Fabry, Senior Software Engineer.
johan@raincode.com<mailto:johan@raincode.com> | Email too brief? Here's why!
http://emailcharter.org<http://emailcharter.org/>
From: Moose-dev [mailto:moose-dev-bounces@list.inf.unibe.ch] On Behalf Of Peter Uhnák
Sent: Tuesday, March 27, 2018 6:38 PM
To: Moose-related development <moose-dev(a)list.inf.unibe.ch>
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
[cid:image001.png@01D3C601.C3BD8200]
Obviously this is literally the most basic way, I could e.g. compose multiple Spec Models
etc.
Peter