Open rebolbot opened 17 years ago
Submitted by: admin
Please clarify this bug. -Carl
Maybe you should first clarify, what is the first 'gob argument used for. If this function is used just to get root, it should be probably renamed. Or there is some extra refinement... because if it should return root of the gob, why there is the position? Or if it should return root from position, why there is the gob?
I understand it like map-inner/first which would return first (outer) gob, which is inside the given gob under given position. So it could be used to find my own gob window, which holds many gobs inside (so I can for example focus this window (which is not OS based!)) Now when I use map-inner, I would get just the inner-most gob and traverse back manually.
Submitted by: BrianH
MAP-OUTER and MAP-INNER have been replaced with MAP-GOB-OFFSET.
Submitted by: oldes
The result of map-outer always return gob of the window. It shoult return gob relative to given gob.
bc.. win: make gob! [size: 640x480 color: 100.100.100] g1: make gob! [offset: 50x50 size: 200x200 color: 255.0.0] g2: make gob! [offset: 5x5 size: 100x100 color: 0.255.0]
p.
bc.. append g1 g2 append win g1
p.
bc.. view/options win [ offset: 'center handler: [ name: 'my-handler priority: 10 handler: func [event] [ switch event/type [ close [quit] down [ print "win:" inner: map-inner win event/offset outer: map-outer win event/offset ? inner ? outer print "g1:" inner: map-inner g1 event/offset outer: map-outer g1 event/offset ? inner ? outer print "g2:" inner: map-inner g2 event/offset outer: map-outer g2 event/offset ? inner ? outer ] ] none ] ] ]
p.
CC - Data [ Version: alpha 31 Type: Bug Platform: All Category: n/a Reproduce: Always Fixed-in:none ]