Help Contents / GUI programming / Windows A-F / WindowCenterOnParent

WindowCenterOnParent window direction

Centres the window on its parent.  This is a more readable synonym for WindowCenter. 

Parameter 

direction: Specifies the direction for the centering.  May be wxHORIZONTAL, wxVERTICAL or wxBOTH. 

Remarks: This methods provides for a way  to center top level windows over their parents  instead of the entire screen.  If there is no parent or if the window is not a top level window,  then behaviour is the same as WindowCenter. 


previous: WindowCenter	next: WindowClearBackground
