|
Class: SimpleBorder
Object
|
+--AbstractBorder
|
+--SimpleBorder
|
+--MacFlatButtonBorder
|
+--RoundedBorder
- Package:
- stx:libview
- Category:
- Graphics-Support
- Version:
- rev:
1.11
date: 2023/11/27 19:34:21
- user: cg
- file: SimpleBorder.st directory: libview
- module: stx stc-classLibrary: libview
a simple border, where all four sides are drawn in the same solid color
copyrightCOPYRIGHT (c) 1997 by Claus Gittinger
COPYRIGHT (c) 2009 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.
accessing
-
color
-
the color of the border
-
color: aColor
-
set the color of the border
displaying
-
displayOn: aGC forDisplayBox: aRectangle
-
View new
border:(SimpleBorder width:2 color:Color red);
open.
|v1 v2 b|
v1 := View new extent:100@100.
v2 := View origin:10@10 corner:90@20 in:v1.
v2 border:(SimpleBorder new color:Color red).
v1 openAndWaitUntilVisible.
|
|v1 v2 b|
v1 := View new extent:100@100.
v2 := View origin:10@10 corner:90@20 in:v1.
v2 viewBackground:Color yellow.
v1 openAndWaitUntilVisible.
v2 border:(b := SimpleBorder new color:Color red).
Delay waitForSeconds:1.
b color:Color blue.
Delay waitForSeconds:1.
b width:3.
Delay waitForSeconds:1.
v2 extent:50@80.
v2 invalidate.
|
|