|
Class: PopUpBanner
Object
|
+--GraphicsMedium
|
+--DisplaySurface
|
+--SimpleView
|
+--View
|
+--TopView
|
+--PopUpView
|
+--PopUpBanner
- Package:
- stx:libview2
- Category:
- Views-Basic
- Version:
- rev:
1.13
date: 2021/01/20 14:37:29
- user: cg
- file: PopUpBanner.st directory: libview2
- module: stx stc-classLibrary: libview2
Shows a banner popUp (splash window);
can be used at startup to make wait-time a bit more interesting.
See use in smalltalk.rc / showBanner.rc / hideBanner.rc.
copyrightCOPYRIGHT (c) 2000 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
instance creation
-
forImage: anImage
-
activation & deactivation
-
open
-
default for popUpBanners is to come up modeless
-
showCentered
-
event handling
-
buttonPress: button x: x y: y
-
destroy view when user clicks into
queries
-
grabWhenMapped
-
|img bannerView|
img := Image fromFile:'banner1.xpm'.
bannerView := PopUpBanner forImage:img.
bannerView showCentered.
Delay waitForSeconds:2.
bannerView destroy
|
|