From: Julian Smart Date: Wed, 27 Jun 2001 11:55:33 +0000 (+0000) Subject: Added wxUSE_NUMBERDLG to setup.h; added some files to VC++ project files; X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ff8b6290e9b7d0c604c35ca938d87cbd1fd157ed?ds=sidebyside Added wxUSE_NUMBERDLG to setup.h; added some files to VC++ project files; added missing virtual function from wxSliderMSW git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/setup0.h b/include/wx/msw/setup0.h index 7a7ef8146a..e11c02bd6c 100644 --- a/include/wx/msw/setup0.h +++ b/include/wx/msw/setup0.h @@ -596,6 +596,9 @@ // text entry dialog and wxGetTextFromUser function #define wxUSE_TEXTDLG 1 +// number entry dialog +#define wxUSE_NUMBERDLG 1 + // ---------------------------------------------------------------------------- // Metafiles support // ---------------------------------------------------------------------------- diff --git a/include/wx/msw/slidrmsw.h b/include/wx/msw/slidrmsw.h index 34dbe92451..5dd73da601 100644 --- a/include/wx/msw/slidrmsw.h +++ b/include/wx/msw/slidrmsw.h @@ -62,6 +62,10 @@ public: void SetLineSize(int lineSize); int GetLineSize() const; + // these methods get/set the length of the slider pointer in pixels + virtual void SetThumbLength(int lenPixels); + virtual int GetThumbLength() const ; + // IMPLEMENTATION WXHWND GetStaticMin() const { return m_staticMin; } WXHWND GetStaticMax() const { return m_staticMax; } diff --git a/samples/docvwmdi/doc.h b/samples/docvwmdi/doc.h index b6c4a692a3..9440f374e0 100644 --- a/samples/docvwmdi/doc.h +++ b/samples/docvwmdi/doc.h @@ -17,6 +17,7 @@ #define __DOCSAMPLEH__ #include "wx/docview.h" +#include "wx/cmdproc.h" // Plots a line from one point to the other class DoodleLine: public wxObject diff --git a/src/generic/helpwxht.cpp b/src/generic/helpwxht.cpp index 9218355067..bc27fbfe07 100644 --- a/src/generic/helpwxht.cpp +++ b/src/generic/helpwxht.cpp @@ -131,7 +131,7 @@ wxHelpFrame::OnButton(wxCommandEvent &ev) else if(id == m_IdSearch) { wxString str = m_combo->GetValue(); - if(m_combo->FindString(str) == -1 && m_combo->Number() < MAX_COMBO_ENTRIES) + if(m_combo->FindString(str) == -1 && m_combo->GetCount() < MAX_COMBO_ENTRIES) m_combo->Append(str); m_controller->KeywordSearch(str); } diff --git a/src/msw/frame.cpp b/src/msw/frame.cpp index 8b0ff3270d..6ff16e1ff8 100644 --- a/src/msw/frame.cpp +++ b/src/msw/frame.cpp @@ -507,7 +507,8 @@ void wxFrameMSW::SetMenuBar(wxMenuBar *menubar) } else { - menubar->Detach(); + if (menubar->IsAttached()) + menubar->Detach(); m_hMenu = menubar->Create(); diff --git a/src/msw/menu.cpp b/src/msw/menu.cpp index e15df2c855..4de484376f 100644 --- a/src/msw/menu.cpp +++ b/src/msw/menu.cpp @@ -682,7 +682,8 @@ bool wxMenuBar::Append(wxMenu *menu, const wxString& title) if ( !wxMenuBarBase::Append(menu, title) ) return FALSE; - menu->Attach(this); + // Already done in Append above + //menu->Attach(this); m_titles.Add(title); diff --git a/src/msw/slidrmsw.cpp b/src/msw/slidrmsw.cpp index bdab68395f..9824dafd2a 100644 --- a/src/msw/slidrmsw.cpp +++ b/src/msw/slidrmsw.cpp @@ -509,6 +509,17 @@ int wxSliderMSW::GetLineSize() const return m_lineSize; } +// Not yet implemented +void wxSliderMSW::SetThumbLength(int WXUNUSED(lenPixels)) +{ +} + +// Not yet implemented +int wxSliderMSW::GetThumbLength() const +{ + return 0; +} + bool wxSliderMSW::ContainsHWND(WXHWND hWnd) const { return ( hWnd == GetStaticMin() || hWnd == GetStaticMax() || hWnd == GetEditValue() ); diff --git a/src/wxvc.dsp b/src/wxvc.dsp index c08a2cc168..a139a1bb4b 100644 --- a/src/wxvc.dsp +++ b/src/wxvc.dsp @@ -400,6 +400,10 @@ SOURCE=.\common\quantize.cpp # End Source File # Begin Source File +SOURCE=.\common\radiocmn.cpp +# End Source File +# Begin Source File + SOURCE=.\common\resource.cpp # End Source File # Begin Source File diff --git a/src/wxvc_dll.dsp b/src/wxvc_dll.dsp index d0bd84c52d..4a27409903 100644 --- a/src/wxvc_dll.dsp +++ b/src/wxvc_dll.dsp @@ -407,6 +407,10 @@ SOURCE=.\common\quantize.cpp # End Source File # Begin Source File +SOURCE=.\common\radiocmn.cpp +# End Source File +# Begin Source File + SOURCE=.\common\resourc2.cpp # End Source File # Begin Source File