customBanner.tfile | source file |
Classes Summary | Objects Summary | Functions Summary Details |
Version date: 13-Sep-06 Adapted for adv3Lite: 28-Dec-24
This file implements a CustomBannerWindow class that vastly eases the process of setting up banners and displaying material in them. e.g. to set up a graphics banner to display pictures, starting with pic1.jpg at startup, but not appearing at all on an interpreter that can't display JPEGs you could define:
pictureWindow: CustomBannerWindow canDisplay = (systemInfo(SysInfoJpeg)) bannerArgs = [nil, BannerAfter, statuslineBanner, BannerTypeText, BannerAlignTop, 10, BannerSizeAbsolute, BannerStyleBorder] currentContents = '<img src="pic1.jpg">' ;
Then to change the picture dislayed at a later point, call:
pictureWindow.updateContents('<img src="pic2.jpg">');
And everything else, including getting everything right on RESTART, UNDO and RESTORE should be taken care of.
customBannerInit
customBannerRestore
customBannerRestoreRemove
(none)