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:
@@ -596,6 +596,9 @@
|
||||
// text entry dialog and wxGetTextFromUser function
|
||||
#define wxUSE_TEXTDLG 1
|
||||
|
||||
// number entry dialog
|
||||
#define wxUSE_NUMBERDLG 1
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Metafiles support
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@@ -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; }
|
||||
|
@@ -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
|
||||
|
@@ -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);
|
||||
}
|
||||
|
@@ -507,7 +507,8 @@ void wxFrameMSW::SetMenuBar(wxMenuBar *menubar)
|
||||
}
|
||||
else
|
||||
{
|
||||
menubar->Detach();
|
||||
if (menubar->IsAttached())
|
||||
menubar->Detach();
|
||||
|
||||
m_hMenu = menubar->Create();
|
||||
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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() );
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user