class: LayoutFrame
authorClaus Gittinger <cg@exept.de>
Sat, 17 May 2014 17:07:05 +0200
changeset 3338 3205b8371f79
parent 3337 d0becaeb96b9
child 3339 a2562a53f6ef
class: LayoutFrame added: #leftFrame: #rightFrame:
LayoutFrame.st
--- a/LayoutFrame.st	Sat May 17 16:50:37 2014 +0200
+++ b/LayoutFrame.st	Sat May 17 17:07:05 2014 +0200
@@ -196,6 +196,16 @@
         bottomFraction:bF offset:0
 !
 
+leftFrame:pixels
+    "create a new layoutFrame which makes the child take a fixed frame at the left"
+
+    ^ self
+        leftFraction:0 offset:0
+        rightFraction:0 offset:pixels
+        topFraction:0 offset:0 
+        bottomFraction:1 offset:0
+!
+
 leftOffset:lO rightOffset:rO topOffset:tO bottomOffset:bO
     "create a new layoutFrame"
 
@@ -256,6 +266,16 @@
         bottomFraction:bottomFraction offset:bottomOffset 
 !
 
+rightFrame:pixels
+    "create a new layoutFrame which makes the child take a fixed frame at the right"
+
+    ^ self
+        leftFraction:0 offset:0
+        rightFraction:1 offset:pixels negated
+        topFraction:0 offset:0 
+        bottomFraction:1 offset:0
+!
+
 topFrame:pixels
     "create a new layoutFrame which makes the child take a fixed frame at the top"
 
@@ -605,10 +625,10 @@
 !LayoutFrame class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libview2/LayoutFrame.st,v 1.40 2014-05-17 14:50:37 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/LayoutFrame.st,v 1.41 2014-05-17 15:07:05 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libview2/LayoutFrame.st,v 1.40 2014-05-17 14:50:37 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libview2/LayoutFrame.st,v 1.41 2014-05-17 15:07:05 cg Exp $'
 ! !