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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Squeak - Dev mailing list
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



Reply | Threaded
Open this post in threaded view
|

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

marcel.taeumel
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 <[hidden email]>:

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