Thanks for the tips!

Creating a custom dialog with spec has worked great. So has the Job interface. My UI is improving quickly now!

On 27 March 2018 at 19:28, Johan Fabry <Johan@raincode.com> wrote:

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. 

johan@raincode.com | Email too brief? Here's why! 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@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

 

 Obviously this is literally the most basic way, I could e.g. compose multiple Spec Models etc.

 

Peter


_______________________________________________
Moose-dev mailing list
Moose-dev@list.inf.unibe.ch
https://www.list.inf.unibe.ch/listinfo/moose-dev