Module: environment-splash-screen Synopsis: environment splash screen Author: Andy Armstrong Copyright: Original Code is Copyright (c) 1995-2004 Functional Objects, Inc. All rights reserved. License: Functional Objects Library Public License Version 1.0 Dual-license: GNU Lesser General Public License Warranty: Distributed WITHOUT WARRANTY OF ANY KIND define constant $splash-screen-duration = 60; define variable $splash-screen-bitmap = #f; define variable $splash-screen-resource = "SPLASHSCREEN"; /// Bitmaps define variable *bitmaps-initialized?* :: = #f; define function default-splash-screen-image () => (image :: false-or()) unless (*bitmaps-initialized?*) //---*** Hack in the size for the moment, as DUIM doesn't //---*** calculate it correctly. let bitmap = read-image-as(, $splash-screen-resource, #"bitmap", width: 500, height: 375); when (bitmap) $splash-screen-bitmap := bitmap end; *bitmaps-initialized?* := #t end; $splash-screen-bitmap end function default-splash-screen-image; /// Splash screen define frame () slot splash-screen-image :: = default-splash-screen-image(), init-keyword: image:; pane image (frame) make(