#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Wed, 29 Apr 2020 17:22:09 +0200
changeset 4459 d9dcc1802edc
parent 4458 508be27574c1
child 4460 e067415ddf46
#FEATURE by cg class: VisualPart added: #originRelativeToTopView
VisualPart.st
--- a/VisualPart.st	Fri Mar 06 12:56:18 2020 +0100
+++ b/VisualPart.st	Wed Apr 29 17:22:09 2020 +0200
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 2002 by eXept Software AG
               All Rights Reserved
@@ -416,6 +418,14 @@
     ^ nil
 !
 
+originRelativeToTopView
+    "return the origin (in pixels) relative to my topView"
+
+    ^ self originRelativeTo:(self topView).
+
+    "Created: / 29-04-2020 / 17:22:00 / cg"
+!
+
 originRule
     ^ nil
 !