initial checkin
authorClaus Gittinger <cg@exept.de>
Wed, 26 Jan 2000 15:14:02 +0100
changeset 1318 39e9b3f4202b
parent 1317 18aabf275ec2
child 1319 f6a32ecf2b0c
initial checkin
PopUpBanner.st
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PopUpBanner.st	Wed Jan 26 15:14:02 2000 +0100
@@ -0,0 +1,45 @@
+PopUpView subclass:#PopUpBanner
+	instanceVariableNames:''
+	classVariableNames:''
+	poolDictionaries:''
+	category:'Views-Basic'
+!
+
+
+!PopUpBanner class methodsFor:'instance creation'!
+
+forImage:anImage
+    |v|
+
+    v := self new.
+    v viewBackground:anImage.
+    ^ v
+! !
+
+!PopUpBanner methodsFor:'activation'!
+
+open
+    "default for popUpBanners is to come up modeless"
+
+    self openModeless
+
+!
+
+showCentered
+    self extent:viewBackground extent.
+    self showAt:((self device extent // 2) - (viewBackground extent // 2))
+
+
+! !
+
+!PopUpBanner methodsFor:'queries'!
+
+grabWhenMapped
+    ^ false
+! !
+
+!PopUpBanner class methodsFor:'documentation'!
+
+version
+    ^ '$Header: /cvs/stx/stx/libview2/PopUpBanner.st,v 1.1 2000-01-26 14:14:02 cg Exp $'
+! !