made wxFrame::SendSizeEvent() public and documented it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -423,6 +423,19 @@ is required (for example, if there are several subwindows).
|
||||
|
||||
See \helpref{wxSizeEvent}{wxsizeevent}.
|
||||
|
||||
\membersection{wxFrame::SendSizeEvent}\label{wxframesendsizeevent}
|
||||
|
||||
\func{void}{SendSizeEvent}{\void}
|
||||
|
||||
This function sends a dummy \helpref{size event}{wxsizeevent} to the frame
|
||||
forcing it to reevaluate its children positions. It is sometimes useful to call
|
||||
this function after adding or deleting a children after the frame creation or
|
||||
if a child size changes.
|
||||
|
||||
Note that if the frame is using either sizers or constraints for the children
|
||||
layout, it is enough to call \helpref{Layout()}{wxwindowlayout} directly and
|
||||
this function should not be used in this case.
|
||||
|
||||
\membersection{wxFrame::SetIcon}\label{wxframeseticon}
|
||||
|
||||
\func{void}{SetIcon}{\param{const wxIcon\& }{icon}}
|
||||
|
@@ -71,6 +71,13 @@ public:
|
||||
// if the frame has a toolbar) in client coordinates
|
||||
virtual wxPoint GetClientAreaOrigin() const;
|
||||
|
||||
// sends a size event to the window using its current size -- this has an
|
||||
// effect of refreshing the window layout
|
||||
//
|
||||
// currently it is only implemented under MSW but is declared here to make
|
||||
// it possible to call it in portable code without using #ifdef's
|
||||
virtual void SendSizeEvent() { }
|
||||
|
||||
// menu bar functions
|
||||
// ------------------
|
||||
|
||||
|
@@ -100,7 +100,7 @@ public:
|
||||
|
||||
// a MSW only function which sends a size event to the window using its
|
||||
// current size - this has an effect of refreshing the window layout
|
||||
void SendSizeEvent();
|
||||
virtual void SendSizeEvent();
|
||||
|
||||
protected:
|
||||
// common part of all ctors
|
||||
|
Reference in New Issue
Block a user