简体   繁体   中英

How to maximize window programatically in Spec (Pharo 3)

Documentation does not describe how to maximize a window when its opened. API suggests that

aComposableModel containingWindow maximize.
aComposableModel window maximize.

but none of them works. Is there a way to maximize a recently opened Window?

Sorry for the delay. I answered two days ago, but it seems it did not work :S

So now in Pharo this feature is not supported. A workaround is:

m := TextModel new openWithSpec.
m widget widget maximize.

Note : accessing via widget is really bad (and will be deprecated soon).

But since you asked it, and it's actually something missing, this feature has been integrated into the bleeding edge version of Spec. So now you can do:

m := TextModel new openWithSpec.
m maximize.

The next sync between Spec and Pharo will bring this feature into Pharo.

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