Uko
Uko

Reputation: 13396

Open Morph in a Two Option Dialog

If I have a Morph how can I open it in a dialog with yes/no or accept/cancel buttons?

I know that spec provides a nice api to specify a dialog window, but spec works with its models

Upvotes: 2

Views: 122

Answers (1)

Nicolai Hess
Nicolai Hess

Reputation: 376

do you mean "use a custom morph as content for a dialog window"?

We have a PluggableDialogWindow, for example, this uses the Pharo logo (as an ImageMorph) as the content for a OK/Cancel dialog

(Smalltalk ui theme newPluggableDialogWindowIn: World title: 'Dialog' for: (PolymorphSystemSettings pharoLogoForm asMorph)) openModal

Upvotes: 0

Related Questions