简体   繁体   中英

How to wrap a morph into a window in Pharo v3

I have built a game GUI made of morphs, all of them embeded into a rectangle morph. I want to wrap this rectangle morph into a window. How can i do this? I looked inside Spec but found nothing useful.

根据您的使用情况,有几种方法,但最简单的方法是将#openInWindow发送到您的变形。

If you take a look at what #openInWindow does, you'll get to

Morph>>openInWindowLabeled: aString inWorld: aWorld

where you can see how a SystemWindow is created and the morph is added to it. You might want to replace it by a StandardWindow if you need theming.

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