PopupTransientWindow within a ScrolledWindow

Hi,
I have a program that pops up a PopupTransientWindow
at the mouse position when a user left-clicks on a
ScrolledWindow (an OGL canvas). It works perfectly
when the window is not scolled but when it is scrolled
the positioning of the popup is incorrect. I have
attached screenshots of the behaviour both when
scrolled and unscrolled.

Here is how I am creating an instance of
PopupTransientWindow and showing it:

# c is the parent(wx.lib.ogl ShapeCanvas)
win = FlowEntry(c, wx.SIMPLE_BORDER, s)
pos = (x,y)#position clicked on
#pos = c.CalcUnscrolledPosition(pos)
pos = c.ClientToScreen(pos)
win.Position(pos, (0, 0))
win.Popup()

What might be the problem? Uncommenting the line with
CalcUnscrolledPosition does not solve the problem.

not_scrolled..JPG

scrolled.JPG

ยทยทยท

____________________________________________________________________________________
Choose the right car based on your needs. Check out Yahoo! Autos new Car Finder tool.
http://autos.yahoo.com/carfinder/