04-25-2007, 08:26 PM
im trying to do this with an istringmap cuz i dont like arrays. but, ithe map is empty each time i run it.
ClearOutput
int h=child(mouse)
if(!h) h=win(mouse); int toplevel=1
int w x y cx cy
str a b
GetWinXY(h x y cx cy)
IStringMap+ M=CreateStringMap(4)
out "existing entries %i" M.Count
_s.from(cx " " cy)
a=h
M.Add(a _s)
out "h=%i []s=%s" h _s
out M.Get(a)
out M.Count
out "existing entries %i" M.Count
end