# 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 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. Returns the number of elements in the list.

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 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::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 wxMenuItem::GetLabelFromText (const wxString &text)
  This function is deprecated; please use GetLabelText() instead.

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

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

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 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 wxWindow::SetPalette (const wxPalette &pal)
  use wxDC::SetPalette instead.

Member wxWindow::SetInitialBestSize (const wxSize &size)

Member wxZipInputStream::wxZipInputStream (const wxString &archive, const wxString &file)
  Compatibility constructor (requires WXWIN_COMPATIBILITY_2_6). When this constructor is used, an emulation of seeking is switched on for compatibility with previous versions. Note however, that it is deprecated.

Member wxPG_ATTR_INLINE_HELP
  Use "Hint" (wxPG_ATTR_HINT) instead.

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

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

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

Member wxGetTempFileName
  This function is obsolete, please use wxFileName::CreateTempFileName() instead.

Member wxGetWorkingDirectory
  This function is deprecated, use wxGetCwd() instead.

Member wxSplitPath
  This function is obsolete, please use wxFileName::SplitPath() instead.

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

Member wxLogTrace
  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 wxTrace
  Use one of the wxLogTrace() functions or one of the wxVLogTrace() functions instead.

Member wxTraceLevel
  Use one of the wxLogTrace() functions or one of the wxVLogTrace() functions instead.

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

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

Member wxFindWindowByLabel
  Replaced by wxWindow::FindWindowByLabel().

Member wxFindWindowByName
  Replaced by wxWindow::FindWindowByName().

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 wxPostDelete
  Replaced by wxWindow::Close(). See the window deletion overview.

Member wxGetEmailAddress
  Use wxGetEmailAddress() instead.

Member wxGetHostName
  Use wxGetHostName() instead.

Member wxGetUserId
  Use wxGetUserId() instead.

Member wxGetUserName
  Use wxGetUserName() instead.

Member wxUsleep
  This function is deprecated because its name is misleading: notice that the argument is in milliseconds, not microseconds. Please use either wxMilliSleep() or wxMicroSleep() depending on the resolution you need.

|  | [ top ]