[squeak-dev] Squeak equivalent of pharo construct icons := Smalltalk ui icons icons associations sorted: [:a :b | a key < b key].

Marcel Taeumel marcel.taeumel at hpi.de
Wed Oct 28 09:28:07 UTC 2020


Hi Timothy,

here are some pointers:

MenuIcons perform: (aSymbol, #Icon) asSymbol.
ToolIcons iconNamed: aSymbol.

And of course:

Form >> #scaleIconToDisplay

:-)

Best,
Marcel
Am 26.10.2020 14:51:58 schrieb gettimothy via Squeak-dev <squeak-dev at lists.squeakfoundation.org>:
Hi folks


In the Roassal3, I am working through the RSSVGAnimationExamples and several of them get bitmaps via something named Smalltalk ui....


icons := Smalltalk ui icons icons associations sorted: [:a :b | a key < b key].


Another example is in   RSSVGAnimatioinExamples new  example03Boat open.



pharo := RSBitmap new

form: (self iconNamed: #pharo);  <---HERE

yourself.

which is a method in Object that does this:


Object>>iconNamed: aSymbol


^ Smalltalk ui icons iconNamed: aSymbol


Workarounds and hacks greatly appreciated.


thx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20201028/b696e4cd/attachment.html>


More information about the Squeak-dev mailing list