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

 

Yes, I'd say that UIManager is a good starting point to look for all kinds of dialogs.


I'm finding it a bit fiddly.

For example, I would like to show an error message that includes the output of a Unix command (potentially quite long.)

One option is:

UIManager default abort: error messageText title: 'Error'

but this does not provide scrolling and it tries to center all the lines.

One other option is:

UIManager default longMessage: error messageText title: 'Error'

which is better in that it provides a scrollbar but worse in that the dialog window is initially very tiny and it shows the icon of "information" rather than "error."

I'm looking for ways to tailor the dialogs to my needs but it is a bit of a maze of pluggability and indirection with UIManagers and UIThemes and so on.

Help? :-)

Is there an easy way to display a bespoke dialog e.g. a large scrollable window with an error icon?



 

 

--

Johan Fabry,  Senior Software Engineer. 

johan@raincode.com | Email too brief? Here's whyhttp://emailcharter.org

 

From: Moose-dev [mailto:moose-dev-bounces@list.inf.unibe.ch] On Behalf Of Luke Gorrie
Sent: Tuesday, March 27, 2018 2:52 PM
To: Moose-related development <moose-dev@list.inf.unibe.ch>
Subject: [Moose-dev] Re: Error dialog?

 

Thanks for the tip, Johan!

 

I have just stumbled upon the UIManager class. This looks like finally the right place to look for ways to show error dialogs, display a "waiting" cursor while work is being done, etc. Is that right or should I be looking somewhere else in the context of GTInspector extensions?

 

 


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