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
This commit is contained in:
Julian Smart
2001-06-27 11:55:33 +00:00
parent ba7eb0a5a7
commit ff8b6290e9
9 changed files with 32 additions and 3 deletions

View File

@@ -596,6 +596,9 @@
// text entry dialog and wxGetTextFromUser function
#define wxUSE_TEXTDLG 1
// number entry dialog
#define wxUSE_NUMBERDLG 1
// ----------------------------------------------------------------------------
// Metafiles support
// ----------------------------------------------------------------------------

View File

@@ -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; }

View File

@@ -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

View File

@@ -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);
}

View File

@@ -507,6 +507,7 @@ void wxFrameMSW::SetMenuBar(wxMenuBar *menubar)
}
else
{
if (menubar->IsAttached())
menubar->Detach();
m_hMenu = menubar->Create();

View File

@@ -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);

View File

@@ -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() );

View File

@@ -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

View File

@@ -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