Advertisement
vizrtexample

How to get a container in which the geometry has changed

Nov 25th, 2021 (edited)
1,136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sub OnInit()
  2.     For i=0 To this.ChildContainerCount -1
  3.         this.GetChildContainerByIndex(i).Geometry.RegisterTextChangedCallback()
  4.     Next
  5. End Sub
  6.  
  7. Sub OnGeometryChanged(geom As Geometry)
  8.     For i=0 To this.ChildContainerCount -1
  9.         If this.GetChildContainerByIndex(i).Geometry.VizId == geom.VizId Then
  10.            println this.GetChildContainerByIndex(i).Name
  11.         End If
  12.     Next
  13. End Sub
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement