From b9eb3d9de670bdeb0b6c2500b43bb74bc3807bd9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 24 Jul 2006 17:44:46 +0000 Subject: [PATCH] added wxID_ANY default value for the id parameter of Create() for consistency with the ctor (request 1481791) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/panel.tex | 4 ++-- include/wx/generic/panelg.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/latex/wx/panel.tex b/docs/latex/wx/panel.tex index f175de0f13..5437d61f1c 100644 --- a/docs/latex/wx/panel.tex +++ b/docs/latex/wx/panel.tex @@ -41,7 +41,7 @@ By default, a panel has the same colouring as a dialog. Default constructor. -\func{}{wxPanel}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = $-1$},\rtfsp +\func{}{wxPanel}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = \texttt{wxID\_ANY}},\rtfsp \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp \param{const wxSize\& }{size = wxDefaultSize},\rtfsp \param{long}{ style = wxTAB\_TRAVERSAL},\rtfsp @@ -79,7 +79,7 @@ Destructor. Deletes any child windows before deleting the physical window. \membersection{wxPanel::Create}\label{wxpanelcreate} -\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp +\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id = \texttt{wxID\_ANY}},\rtfsp \param{const wxPoint\& }{pos = wxDefaultPosition},\rtfsp \param{const wxSize\& }{size = wxDefaultSize},\rtfsp \param{long}{ style = wxTAB\_TRAVERSAL},\rtfsp diff --git a/include/wx/generic/panelg.h b/include/wx/generic/panelg.h index 1cb6a708ec..be02bf70e2 100644 --- a/include/wx/generic/panelg.h +++ b/include/wx/generic/panelg.h @@ -58,7 +58,8 @@ public: } // Pseudo ctor - bool Create(wxWindow *parent, wxWindowID winid, + bool Create(wxWindow *parent, + wxWindowID winid = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxTAB_TRAVERSAL | wxNO_BORDER,