ExternalTopView.st
author Claus Gittinger <cg@exept.de>
Tue, 25 May 1999 15:53:01 +0200
changeset 1177 732fb35f7239
parent 1103 b98a73cd2ed1
child 1567 968c81db4d2c
permissions -rw-r--r--
changed stxIcon
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1085
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 1999 by eXept Software AG
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
              All Rights Reserved
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
TopView subclass:#ExternalTopView
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:''
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Graphics-Support'
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!ExternalTopView class methodsFor:'documentation'!
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 1999 by eXept Software AG
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
              All Rights Reserved
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
!
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
documentation
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
"
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    Represents a view as created by some other application.
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
    This is a support-class to allow ST/X views to be created
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
    inside other applications.
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
1103
b98a73cd2ed1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1102
diff changeset
    44
    A simple demoApplication is found in goodies/stxInExternalWindow
b98a73cd2ed1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1102
diff changeset
    45
    (which uses Demos::PlayInAlienWindow as a startup anchor)
1097
b3ba1a593ce7 comment
Claus Gittinger <cg@exept.de>
parents: 1088
diff changeset
    46
1085
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
    [author:]
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
        Claus Gittinger (cg@exept.de)
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
    [see also:]
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
    [instance variables:]
1099
7e51aa0a78f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1098
diff changeset
    53
        none added here
1085
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    [class variables:]
1099
7e51aa0a78f3 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1098
diff changeset
    56
        none added here
1085
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
"
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
! !
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
!ExternalTopView class methodsFor:'instance creation'!
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
newWithID:anAlienWindowID
1103
b98a73cd2ed1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1102
diff changeset
    63
    "create and return a new externalTopView - the windowID
b98a73cd2ed1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1102
diff changeset
    64
     as passed in must be from an alien programs view"
b98a73cd2ed1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1102
diff changeset
    65
1085
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    ^ self new setWindowID:anAlienWindowID
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
! !
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
1087
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
    69
!ExternalTopView methodsFor:'private'!
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
    70
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
    71
checkWindowStillAlive
1101
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    72
    "check for a destroyed topView 
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    73
     (must poll, since we do not get any events from X)"
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    74
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    75
    |prevHandler ok|
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    76
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    77
"/    Transcript showCR:'check ...'.
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    78
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    79
    ok := device isValidWindowId:drawableId.
1087
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
    80
1101
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    81
    ok ifFalse:[
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    82
"/        Transcript showCR:'no ...'.
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    83
        self destroyed.
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    84
    ] ifTrue:[
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    85
        Processor 
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    86
            addTimedBlock:[self checkWindowStillAlive]
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    87
            for:nil
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    88
            afterMilliseconds:1000
712810d0e8a9 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1099
diff changeset
    89
    ]
1087
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
    90
! !
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
    91
1085
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    92
!ExternalTopView methodsFor:'private accessing'!
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    93
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    94
setWindowID:aWindowID
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    95
    drawableId := aWindowID.
1086
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
    96
    realized := shown := true.
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
    97
! !
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
    98
1088
63cd295128e2 added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents: 1087
diff changeset
    99
!ExternalTopView methodsFor:'queries'!
63cd295128e2 added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents: 1087
diff changeset
   100
63cd295128e2 added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents: 1087
diff changeset
   101
isExternalTopView
1098
bcd7b099bac8 comments
Claus Gittinger <cg@exept.de>
parents: 1097
diff changeset
   102
    "return true, if this is an external topView - always true here"
1088
63cd295128e2 added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents: 1087
diff changeset
   103
63cd295128e2 added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents: 1087
diff changeset
   104
    ^ true
63cd295128e2 added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents: 1087
diff changeset
   105
! !
63cd295128e2 added isExternalTopView query.
Claus Gittinger <cg@exept.de>
parents: 1087
diff changeset
   106
1086
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   107
!ExternalTopView methodsFor:'redefined'!
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   108
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   109
destroyView
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   110
    "never destroyed by ST/X - instead, the view is under
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   111
     control of the host application ..."
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   112
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   113
    realized := false.
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   114
    drawableId := nil.
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   115
!
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   116
1087
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
   117
open
1098
bcd7b099bac8 comments
Claus Gittinger <cg@exept.de>
parents: 1097
diff changeset
   118
    "redefined to start a watch timeout for closed windows;
bcd7b099bac8 comments
Claus Gittinger <cg@exept.de>
parents: 1097
diff changeset
   119
     this is required, since we wont get any closeRequest event for
bcd7b099bac8 comments
Claus Gittinger <cg@exept.de>
parents: 1097
diff changeset
   120
     external windows (as all of its events are handled by the alien
bcd7b099bac8 comments
Claus Gittinger <cg@exept.de>
parents: 1097
diff changeset
   121
     application)"
bcd7b099bac8 comments
Claus Gittinger <cg@exept.de>
parents: 1097
diff changeset
   122
1087
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
   123
    super open.
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
   124
    self checkWindowStillAlive
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
   125
!
b6843eafd123 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1086
diff changeset
   126
1086
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   127
unmap
1098
bcd7b099bac8 comments
Claus Gittinger <cg@exept.de>
parents: 1097
diff changeset
   128
    "redefined as a noop;
bcd7b099bac8 comments
Claus Gittinger <cg@exept.de>
parents: 1097
diff changeset
   129
     ExternalTopViews are never unmapped by ST/X - instead, the view is under
1086
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   130
     control of the host application ..."
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   131
67cc515aa9a2 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1085
diff changeset
   132
1085
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   133
! !
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
1102
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   135
!ExternalTopView methodsFor:'special'!
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   136
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   137
becomeParentOf:anSTXWindow
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   138
    "add myself to the windowGroup of anSTXWindow ...
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   139
     and reparent anSTXWindow to be the (only) child of myself"
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   140
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   141
    |wg oldTopView|
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   142
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   143
    anSTXWindow createWithAllSubViews.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   144
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   145
    oldTopView := anSTXWindow topView.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   146
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   147
    wg := anSTXWindow windowGroup.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   148
    wg notNil ifTrue:[
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   149
        wg addTopView:self.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   150
    ].
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   151
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   152
    oldTopView == anSTXWindow ifTrue:[
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   153
        oldTopView container:self.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   154
    ].
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   155
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   156
    self open. "/ not really an open; however it starts its event handler
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   157
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   158
    wg isNil ifTrue:[
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   159
        oldTopView windowGroup:self windowGroup.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   160
    ].
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   161
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   162
    anSTXWindow device 
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   163
        reparentWindow:anSTXWindow id
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   164
        to:self id.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   165
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   166
    self addSubView:anSTXWindow.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   167
    anSTXWindow enableEvent:#structureNotify.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   168
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   169
    anSTXWindow realize.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   170
    anSTXWindow map.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   171
    wg notNil ifTrue:[
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   172
        wg removeView:oldTopView.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   173
        wg addView:oldTopView.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   174
    ].
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   175
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   176
    anSTXWindow origin:0.0 @ 0.0 corner:1.0 @ 1.0.
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   177
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   178
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   179
! !
1ee9a1bc9241 took over reparenting method from demo.
Claus Gittinger <cg@exept.de>
parents: 1101
diff changeset
   180
1085
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   181
!ExternalTopView class methodsFor:'documentation'!
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   183
version
1103
b98a73cd2ed1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1102
diff changeset
   184
    ^ '$Header: /cvs/stx/stx/libview2/ExternalTopView.st,v 1.10 1999-02-17 00:09:13 cg Exp $'
1085
7b81e852c657 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   185
! !