wx2.8.4-mac default position in a scroll window bug?
Matt Connolly
matt at soundevolution.com.au
Wed Jun 27 14:54:15 PDT 2007
I have created a document frame with a scroll window, and a custom
subwindow (inherits from wxWindow) inside that.
I notice that if the subWindow is positioned at wxPoint(0,0) then
scrolling works as expected.
If the subwindow is positioned at wxDefaultPosition, then scrolling
doesn't work perfectly.
What happens is that if you scroll into the document, and then back
to the beginning, the document has actually over scrolled and you
cannot see the left edge (I'm scrolling horizontally to represent a
time axis). The part of my subwindow representing time=0 (at the
left) cannot be seen, it's gone off the edge of the main window, even
though the scrollbar is at its leftmost position (position = 0).
Anyway, I have my app doing what I expect now by using position =
wxPoint(0,0) at initialisation instead of wxDefaultPosition.
Has anyone else seen this?
-matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2174 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070628/11dd7d85/smime.bin
More information about the wx-users
mailing list