简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM