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