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

1

5

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?

Shend answered 25/8, 2015 at 8:8 Comment(0)
P
9

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'.
Pheon answered 25/8, 2015 at 8:23 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.