# Deprecated List

Member wxArtProvider::Insert (wxArtProvider *provider)
  Use PushBack() instead.

Member wxCalendarCtrl::EnableYearChange (bool enable=true)

Member wxComboCtrl::GetTextIndent () const
  Use GetMargins() instead.

Member wxComboCtrl::HidePopup (bool generateEvent=false)
  Use Dismiss() instead.

Member wxComboCtrl::SetTextIndent (int indent)
  Use SetMargins() instead.

Member wxComboCtrl::ShowPopup ()
  Use Popup() instead.

Member wxDebugContext::GetLevel ()
  This is obsolete, replaced by wxLog functionality.

Member wxDebugContext::SetLevel (int level)
  This is obsolete, replaced by wxLog functionality.

Member wxDialog::SetModal (bool flag)
  This function doesn't work for all ports, just use ShowModal() to show a modal dialog instead.

Member wxDos2UnixFilename (wxChar *s)
  Construct a wxFileName with wxPATH_DOS and then use wxFileName::GetFullPath(wxPATH_UNIX) instead.

Member wxFileNameFromPath (const wxString &path)
  This function is obsolete, please use wxFileName::SplitPath() instead.

Member wxFindWindowByLabel (const wxString &label, wxWindow *parent=NULL)
  Replaced by wxWindow::FindWindowByLabel().

Member wxFindWindowByName (const wxString &name, wxWindow *parent=NULL)
  Replaced by wxWindow::FindWindowByName().

Member wxGetEmailAddress (char *buf, int sz)
  Use wxGetEmailAddress() instead.

Member wxGetHostName (char *buf, int sz)
  Use wxGetHostName() instead.

Member wxGetTempFileName (const wxString &prefix, char *buf=NULL)
  This function is obsolete, please use wxFileName::CreateTempFileName() instead.

Member wxGetUserId (char *buf, int sz)
  Use wxGetUserId() instead.

Member wxGetUserName (char *buf, int sz)
  Use wxGetUserName() instead.

Member wxGetWorkingDirectory (char *buf=NULL, int sz=1000)
  This function is deprecated, use wxGetCwd() instead.

Member wxGrid::SetCellValue (const wxString &val, int row, int col)
  Please use SetCellValue(int,int,const wxString&) or SetCellValue(const wxGridCellCoords&,const wxString&) instead.

Class wxHashTable
  Please note that this class is retained for backward compatibility reasons; you should use wxHashMap.

Member wxHelpController::DisplayBlock (long blockNo)
  This function is for backward compatibility only, and applications should use DisplaySection() instead.

Member wxHtmlTag::GetBeginPos () const

Member wxHtmlTag::GetEndPos1 () const

Member wxHtmlTag::GetEndPos2 () const

Member wxHtmlWinParser::GetWindow ()
  use GetWindowInterface()->GetHTMLWindow() instead

Member wxIconizeEvent::Iconized () const
  This function is deprecated in favour of IsIconized().

Member wxList< T >::Nth (int n) const
  This function is deprecated, use Item() instead.

Member wxList< T >::Number () const
  This function is deprecated, use wxList::GetCount instead.

Member wxListCtrl::SetItemImage (long item, int image, int selImage=-1)
  This form is deprecated: selImage is not used; use the other SetItemImage() overload.

Member wxLocale::Init (const wxString &name, const wxString &shortName=wxEmptyString, const wxString &locale=wxEmptyString, bool bLoadDefault=true)
  This form is deprecated, use the other one unless you know what you are doing.

Member wxLogTrace (wxTraceMask mask, const char *formatString,...)
  This version of wxLogTrace() only logs the message if all the bits corresponding to the mask are set in the wxLog trace mask which can be set by calling wxLog::SetTraceMask(). This version is less flexible than wxLogTrace(const char*,const char*,...) because it doesn't allow defining the user trace masks easily. This is why it is deprecated in favour of using string trace masks.

Member wxMBConv::MB2WC (wchar_t *out, const char *in, size_t outLen) const
  This function is deprecated, please use ToWChar() instead.

Member wxMBConv::WC2MB (char *buf, const wchar_t *psz, size_t n) const
  This function is deprecated, please use FromWChar() instead.

Member wxMenu::Append (int id, const wxString &item, wxMenu *subMenu, const wxString &helpString=wxEmptyString)
  This function is deprecated, use AppendSubMenu() instead.

Member wxMenuBar::GetLabelTop (size_t pos) const
  This function is deprecated in favour of GetMenuLabel() and GetMenuLabelText().

Member wxMenuBar::SetLabelTop (size_t pos, const wxString &label)
  This function has been deprecated in favour of SetMenuLabel().

Member wxMenuItem::GetLabel () const
  This function is deprecated in favour of GetItemLabelText().

Member wxMenuItem::GetLabelFromText (const wxString &text)
  This function is deprecated; please use GetLabelText() instead.

Member wxMenuItem::GetName () const
  This function is deprecated. Please use GetItemLabel() or GetItemLabelText() instead.

Member wxMenuItem::GetText () const
  This function is deprecated in favour of GetItemLabel().

Member wxMenuItem::SetText (const wxString &text)
  This function is deprecated in favour of SetItemLabel().

Member wxNewId ()
  Ids generated by it can conflict with the Ids defined by the user code, use `wxID_ANY` to assign ids which are guaranteed to not conflict with the user-defined ids for the controls and menu items you create instead of using this function.

Member wxPG_ATTR_INLINE_HELP
  Use "Hint" (wxPG_ATTR_HINT) instead.

Member wxPGProperty::wxDEPRECATED (void AddChild(wxPGProperty *prop))
  Use AddPrivateChild() instead.

Member wxPGProperty::wxDEPRECATED (wxString GetValueString(int argFlags=0) const )
  Use GetValueAsString() instead.

Member wxPostDelete (wxObject *object)
  Replaced by wxWindow::Close().

Member wxPrintDialogData::SetSetupDialog (bool flag)
  This function has been deprecated since version 2.5.4.

Member wxShowEvent::GetShow () const
  This function is deprecated in favour of IsShown().

Member wxSizer::Remove (wxWindow *window)
  The overload of this method taking a wxWindow* parameter is deprecated as it does not destroy the window as would usually be expected from Remove(). You should use Detach() in new code instead. There is currently no wxSizer method that will both detach and destroy a wxWindow item.

Member wxSizer::SetVirtualSizeHints (wxWindow *window)
  This is exactly the same as FitInside() in wxWidgets 2.9 and later, please replace calls to it with FitInside().

Member wxSizerItem::SetSizer (wxSizer *sizer)
  This function does not free the old sizer which may result in memory leaks, use AssignSizer() which does free it instead.

Member wxSizerItem::SetSpacer (const wxSize &size)
  This function does not free the old spacer which may result in memory leaks, use AssignSpacer() which does free it instead.

Member wxSizerItem::SetWindow (wxWindow *window)

Member wxSplitPath (const wxString &fullname, wxString *path, wxString *name, wxString *ext)
  This function is obsolete, please use wxFileName::SplitPath() instead.

Member wxStreamBuffer::Stream ()
  use GetStream() instead

Member wxTextInputStream::ReadString ()
  Use ReadLine() or ReadWord() instead.

Member wxThreadHelper::Create (unsigned int stackSize=0)
  Use CreateThread() instead.

Member wxToolBar::OnRightClick (int toolId, long x, long y)
  This is the old way of detecting tool right clicks; although it will still work, you should use the EVT_TOOL_RCLICKED() macro instead.

Member WXTRACE (format,...)
  Use one of the wxLogTrace() functions or one of the wxVLogTrace() functions instead.

Member wxTrace (const wxString &format,...)
  Use one of the wxLogTrace() functions or one of the wxVLogTrace() functions instead.

Member WXTRACELEVEL (level, format,...)
  Use one of the wxLogTrace() functions or one of the wxVLogTrace() functions instead.

Member wxTraceLevel (int level, const wxString &format,...)
  Use one of the wxLogTrace() functions or one of the wxVLogTrace() functions instead.

Member wxUnix2DosFilename (wxChar *s)
  Construct a wxFileName with wxPATH_UNIX and then use wxFileName::GetFullPath(wxPATH_DOS) instead.

Member wxUsleep (unsigned long milliseconds)
  This function is deprecated because its name is misleading: notice that the argument is in milliseconds, not microseconds.

Member wxWindow::SetInitialBestSize (const wxSize &size)

Member wxWindow::SetPalette (const wxPalette &pal)
  use wxDC::SetPalette instead.

Member wxYield ()
  This function is kept only for backwards compatibility. Please use the wxAppConsole::Yield method instead in any new code.

Member wxZipInputStream::wxZipInputStream (const wxString &archive, const wxString &file)
  Compatibility constructor (requires WXWIN_COMPATIBILITY_2_6).

|  | [ top ]