Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I call a Yes / No / Cancel dialog in Pharo 4.0?

This question is related to How do I ask the user for a file name?

The issue of 'Standard dialogs'.

How do I call a Yes / No / Cancel dialog and how to I call an alert in Pharo 4.0?

like image 604
z-- Avatar asked Feb 09 '23 05:02

z--


1 Answers

You can use

UIManager default question: 'foo' title: 'bar'.

which answers true for Yes, false for No, and nil for Cancel.

Similarly, an alert can be shown like this:

UIManager default alert: 'Hello World'.
like image 115
Leo Avatar answered Feb 26 '23 16:02

Leo