You should not assume that a window is located where it has just been programmatically positioned. Instead you should query the current position by
top-level-interface-geometry
.
So if you wish to display CAPI interface windows W1 and W2 relative to each other. You should:
display
), then
make-instance
or later by
set-hint-table
, thenThe reason for this is that the window system may disallow certain positions (for example on the Mac OS X menu bar) therefore you cannot be certain of the position of W1 .
CAPI User Guide (Windows version) - 30 Aug 2011