AFAIK, this function has been deprecated in wx 2.8.
Just replace CentreOnScreen() to Centre(wxCENTRE_ON_SCREEN)
Couple of wx2.8 related patches have been reverted recently which is causing this compilation error. :)
My patch for this was [ Patch #1762 ] CentreOnScreen patch for wxWidgets 2.8
http://developer.berlios.de/patch/?func=detailpatch&patch_id=1762&group_id=5358
What version number of wxWidgets 2.8 has this problem?
Change it to
Centre(wxBOTH | wxCENTRE_ON_SCREEN)
Tim S
Thomas has reverted some of those patches. From the explanation he gave me, I think he is correct. A few places didn't need the patch. And for the other places of reversal to work he adjusted globals.cpp
void PlaceWindow(wxToplevelWindow *w, cbPlaceDialogMode mode, bool enforce)
PlaceWindows now takes a wxToplevelWindow pointer instead of a wxWindow pointer.
BUT, afb has reverted later on this back to wxWindow*. The commit comments were :
- didn't compile, wxToplevelWindow -> wxWindow
@Afb : what exactly didn't compile ??
At the others, try to build with the PlaceWindow taking the wxToplevelWindow*, and see what happens and report back here if you can.