updated docs after moving SetDefaultItem() from wxPanel to wxTLW

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-08-07 21:13:43 +00:00
parent 6028b16aef
commit 4334c3d5bd
4 changed files with 21 additions and 19 deletions

View File

@@ -29,6 +29,7 @@ INCOMPATIBLE CHANGES SINCE 2.6.x
- wxStaticBoxSizer now deletes the associated wxStaticBox when it is deleted.
- Windows calling CaptureMouse() are now required to handle
the wxEVT_MOUSE_CAPTURE_LOST event.
- SetDefaultItem() method was moved from wxPanel to wxTopLevelWindow
Deprecated methods since 2.6.x and their replacements

View File

@@ -134,7 +134,7 @@ Under Windows, only dialog box buttons respond to this function. As
normal under Windows and Motif, pressing return causes the default button to
be depressed when the return key is pressed. See also \helpref{wxWindow::SetFocus}{wxwindowsetfocus}\rtfsp
which sets the keyboard focus for windows and text panel items,\rtfsp
and \helpref{wxPanel::SetDefaultItem}{wxpanelsetdefaultitem}.
and \helpref{wxTopLevelWindow::SetDefaultItem}{wxtoplevelwindowsetdefaultitem}.
Note that under Motif, calling this function immediately after
creation of a button and before the creation of other buttons

View File

@@ -88,13 +88,6 @@ Destructor. Deletes any child windows before deleting the physical window.
Used for two-step panel construction. See \helpref{wxPanel::wxPanel}{wxpanelctor}\rtfsp
for details.
\membersection{wxPanel::GetDefaultItem}\label{wxpanelgetdefaultitem}
\constfunc{wxWindow*}{GetDefaultItem}{\void}
Returns a pointer to the button which is the default for this window, or NULL.
The default button is the one activated by pressing the Enter key.
\membersection{wxPanel::InitDialog}\label{wxpanelinitdialog}
\func{void}{InitDialog}{\void}
@@ -129,17 +122,6 @@ propagate the notification to child windows and controls.
\helpref{wxSysColourChangedEvent}{wxsyscolourchangedevent}
\membersection{wxPanel::SetDefaultItem}\label{wxpanelsetdefaultitem}
\func{void}{SetDefaultItem}{\param{wxButton }{*btn}}
Changes the default button for the panel.
\wxheading{See also}
\helpref{GetDefaultItem}{wxpanelgetdefaultitem}
\membersection{wxPanel::SetFocus}\label{wxpanelsetfocus}
\func{virtual void}{SetFocus}{\void}

View File

@@ -40,6 +40,14 @@ Returns \true if the platform supports making the window translucent.
\helpref{wxTopLevelWindow::SetTransparent}{wxtoplevelwindowsettransparent}
\membersection{wxTopLevelWindow::GetDefaultItem}\label{wxtoplevelwindowgetdefaultitem}
\constfunc{wxWindow *}{GetDefaultItem}{\void}
Returns a pointer to the button which is the default for this window, or \NULL.
The default button is the one activated by pressing the Enter key.
\membersection{wxTopLevelWindow::GetIcon}\label{wxtoplevelwindowgeticon}
\constfunc{const wxIcon\&}{GetIcon}{\void}
@@ -177,6 +185,17 @@ This function is currently implemented for Win32 where it flashes the
window icon in the taskbar, and for wxGTK with task bars supporting it.
\membersection{wxTopLevelWindow::SetDefaultItem}\label{wxtoplevelwindowsetdefaultitem}
\func{void}{SetDefaultItem}{\param{wxWindow }{*win}}
Changes the default item for the panel, usually \arg{win} is a button.
\wxheading{See also}
\helpref{GetDefaultItem}{wxtoplevelwindowgetdefaultitem}
\membersection{wxTopLevelWindow::SetIcon}\label{wxtoplevelwindowseticon}
\func{void}{SetIcon}{\param{const wxIcon\& }{icon}}