Menu
  • HOME
  • TAGS

How to wrap a morph into a window in Pharo v3

smalltalk,pharo,morphic

There a few ways, depending on your use case, but the easiest way is to send #openInWindow to your morph.

animation in squeak smalltalk

smalltalk,pharo,squeak,morphic

Yes, there is a built in way: Make a subclass of Morph and implement the two methods stepTime (time between steps in milliseconds) and step (is sent to the morph in regular intervals of time) A minimal example: Morph subclass: #MovingMorph instanceVariableNames: '' classVariableNames: '' category: 'MovingMorph' MovingMorph>>stepTime stepTime ^...

How to set Pharo keyboard shortcut for switching windows?

pharo,morphic

well... you hit one of our weaker spots :) Keybindings are not in his best shape, but: Actually, alt+tab is already set to "switch window" activity. The problem is that does not work all the time (for example, it does not work on Playground). This is because there are some...