Icons


The Icon class allows the ability to associate a unique icon for each ApplicationWindow. The Icon class supports only VGA Windows icons.

Example

TopPane new

owner:self;

icon: (Icon fromFile:'test.ico');

or

TopPane new

owner:self;

icon: (Icon fromModule:'vwicons.dll' id:'DiskBrowser');


Programming Interface

ViewManager>>icon: anIcon

"Set the receiver's icon"

ApplicationWindow>>icon: anIcon

"Set the receiver's icon"

Icon class >>fromModule:aFileName id:anId

"Answer an Icon object. aFileName is a DLL file name

anId can be a string or an Integer"

Icon class>>fromFile: fileName

"Answer an instance of Icon copied from fileName. fileName must have a '.ico' extension."

Icon>>release

"Release the receiver's resources from memory."

Icon>>displayWith: aPen

"Display the receiver through aPen."


[top][index]