WarningBox.st
author claus
Wed, 13 Oct 1993 02:04:14 +0100
changeset 3 9d7eefb5e69f
parent 0 e6a541c1c0eb
child 26 9d08a08ba6a6
permissions -rw-r--r--
(none)

"
 COPYRIGHT (c) 1993 by Claus Gittinger
              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.
"

InfoBox subclass:#WarningBox
       instanceVariableNames:''
       classVariableNames:'WarnBitmap'
       poolDictionaries:''
       category:'Views-Interactors'
!

WarningBox comment:'

COPYRIGHT (c) 1993 by Claus Gittinger
              All Rights Reserved

this class implements a pop-up box to show an information message

$Header: /cvs/stx/stx/libwidg/WarningBox.st,v 1.2 1993-10-13 01:04:04 claus Exp $
written Summer 93 by claus
'!

!WarningBox methodsFor:'initialization'!

initialize
    WarnBitmap isNil ifTrue:[
        WarnBitmap := Form fromFile:'Warning.xbm' resolution:100 on:device
    ].

    super initialize.
!

initFormBitmap
    formLabel form:WarnBitmap
! !

!WarningBox methodsFor:'realization'!

show
    "added bell to wake up user"

    device beep.
    super show
! !