To set the style of a font, use the following:
aUlcFont fontStyle: UlcWidgetConstants::UlcFontBoldStyleBit
To set the font to normal, use the following:
aUlcFont fontStyle: 0
To reset the font dynamically, you must use the #setFont: method.
UlcIcon fromFile: 'abc.gif' UlcIcon fromFile: 'bitmaps\abc.gif'
Loading an icon resource from file uses CfsStream, so the file name passed when creating a new instance of UlcIcon can be a simple filename as well as a partially or fully qualified path name. In the ULC examples, all resources can be found in the bitmaps subdirectory of the program folder.
ULC also includes an optional caching facility on the User Interface for Icons and icons can now be cached in the UI persistently across sessions.
Note: | The caching support is currently not available when the UI is running as an Applet. |
To create an instance, use the following:
|someColor| someColor := (UlcRGBColor new) initializeRed:244 green:244 blue:244.