eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'TransparentBox':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: TransparentBox


Inheritance:

   Object
   |
   +--GraphicsMedium
      |
      +--DisplaySurface
         |
         +--SimpleView
            |
            +--View
               |
               +--TransparentBox

Package:
stx:libview2
Category:
Views-Basic
Version:
rev: 1.11 date: 2023/07/06 14:36:58
user: cg
file: TransparentBox.st directory: libview2
module: stx stc-classLibrary: libview2

Description:


sorry, but currently this works only on X-displays.
i.e. on Windows, a non-transparent regular view is shown

copyright

COPYRIGHT (c) 2004 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 protocol:

events
o  sizeChanged: how from: oldExtentOrNil
my view has changed the size (not the contents)

initialization
o  realize
(comment from inherited method)
realize - make visible;
realizing is done very late (after layout is fixed) to avoid
visible rearranging of windows on the screen

queries
o  isTransparentBox

o  specClass
returns my spec class (for UI editor)

o  windowStyle

shape computation
o  addSubView: aView
(comment from inherited method)
add a view to the collection of subviews

o  computeShape
self viewShape:shapeForm.


Examples:


| tv b1 b2 |

b1 := Button label:'close'.
b1 action:[ tv close ].
b1 origin:10@10.

b2 := Button label:'hello'.
b2 origin:100@100.

tv := self new.
tv extent:200@200.

tv addSubView:b1.
tv addSubView:b2.
tv open


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 06:44:35 GMT