From 4334c3d5bd5e5a0c48a1a3d97c7733da13a00184 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 7 Aug 2006 21:13:43 +0000 Subject: [PATCH] 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 --- docs/changes.txt | 1 + docs/latex/wx/button.tex | 2 +- docs/latex/wx/panel.tex | 18 ------------------ docs/latex/wx/tlw.tex | 19 +++++++++++++++++++ 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 974be8e1c8..f4435f6784 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -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 diff --git a/docs/latex/wx/button.tex b/docs/latex/wx/button.tex index afd59c4731..dabfe69091 100644 --- a/docs/latex/wx/button.tex +++ b/docs/latex/wx/button.tex @@ -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 diff --git a/docs/latex/wx/panel.tex b/docs/latex/wx/panel.tex index 5437d61f1c..6ccfa0a7f6 100644 --- a/docs/latex/wx/panel.tex +++ b/docs/latex/wx/panel.tex @@ -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} diff --git a/docs/latex/wx/tlw.tex b/docs/latex/wx/tlw.tex index 2b7d1f647b..dba609ba32 100644 --- a/docs/latex/wx/tlw.tex +++ b/docs/latex/wx/tlw.tex @@ -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}} -- 2.45.2