When a widget has been added to a sizer, the function GetPosition always returns (0, 0), i.e. the default value.
How can be retrieved the real position in the frame?
raffaello wrote:
When a widget has been added to a sizer, the function GetPosition always returns (0, 0), i.e. the default value.
How can be retrieved the real position in the frame?
It won't be moved to that position until after the layout is done in the first EVT_SIZE event. After that point in time then the GetPosition will be what you want.
ยทยทยท
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!