WX_BEGIN_PROPERTIES_TABLE(wxButton)
WX_DELEGATE( OnClick , wxEVT_COMMAND_BUTTON_CLICKED , wxCommandEvent )
- WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
+ WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxT("") )
WX_END_PROPERTIES_TABLE()
WX_BEGIN_PROPERTIES_TABLE(wxCheckBox)
WX_DELEGATE( OnClick , wxEVT_COMMAND_CHECKBOX_CLICKED , wxCommandEvent )
- WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
+ WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxT("") )
WX_PROPERTY( Value ,bool, SetValue, GetValue, )
WX_END_PROPERTIES_TABLE()
WX_BEGIN_PROPERTIES_TABLE(wxChoice)
// TODO DELEGATES
- WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
+ WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
WX_PROPERTY_COLLECTION( Choices , wxArrayString , wxString , AppendString , GetStrings )
WX_PROPERTY( Selection ,int, SetSelection, GetSelection, )
WX_END_PROPERTIES_TABLE()
WX_BEGIN_PROPERTIES_TABLE(wxComboBox)
// TODO DELEGATES
- WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
+ WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
WX_PROPERTY_COLLECTION( Choices , wxArrayString , wxString , AppendString , GetStrings )
WX_PROPERTY( Value ,wxString, SetValue, GetValue, )
WX_PROPERTY( Selection ,int, SetSelectionLine, GetSelection, )
// ----------------------------------------------------------------------------
#if wxUSE_EXTENDED_RTTI
-IMPLEMENT_DYNAMIC_CLASS_XTI(wxGauge95, wxControl,"wx/gauge.h")
+IMPLEMENT_DYNAMIC_CLASS_XTI(wxGauge, wxControl,"wx/gauge.h")
WX_BEGIN_PROPERTIES_TABLE(wxGauge95)
WX_PROPERTY( Value , int , SetValue, GetValue, 0 )
WX_BEGIN_PROPERTIES_TABLE(wxListBox)
// TODO DELEGATES
- WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
+ WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
WX_PROPERTY_COLLECTION( Choices , wxArrayString , wxString , AppendString , GetStrings )
WX_PROPERTY( Selection ,int, SetSelectionLine, GetSelection, )
WX_END_PROPERTIES_TABLE()
return &s_typeInfo ;
}
+template<> void wxCollectionToVariantArray( wxNotebookPageInfoList const &theList, wxxVariantArray &value)
+{
+ wxListCollectionToVariantArray( theList , value ) ;
+}
+
WX_BEGIN_PROPERTIES_TABLE(wxNotebook)
WX_PROPERTY_COLLECTION( PageInfos , wxNotebookPageInfoList , wxNotebookPageInfo* , AddPageInfo , GetPageInfos )
/*
WX_CONSTRUCTOR_4( wxNotebookPageInfo , wxNotebookPage* , Page , wxString , Text , bool , Selected , int , ImageId )
-template<> void wxCollectionToVariantArray( wxNotebookPageInfoList const &theList, wxxVariantArray &value)
-{
- wxListCollectionToVariantArray( theList , value ) ;
-}
-
#else
IMPLEMENT_DYNAMIC_CLASS(wxNotebook, wxControl)
IMPLEMENT_DYNAMIC_CLASS(wxNotebookPageInfo, wxObject )
WX_BEGIN_PROPERTIES_TABLE(wxRadioButton)
WX_DELEGATE( OnClick , wxEVT_COMMAND_RADIOBUTTON_SELECTED , wxCommandEvent )
- WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
+ WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
WX_PROPERTY( Label,wxString, SetLabel, GetLabel, wxT("") )
WX_PROPERTY( Value ,bool, SetValue, GetValue, )
WX_END_PROPERTIES_TABLE()
#include "wx/scrolbar.h"
#include "wx/msw/private.h"
-IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
+#if wxUSE_EXTENDED_RTTI
+IMPLEMENT_DYNAMIC_CLASS_XTI(wxScrollBar, wxControl,"wx/scrolbar.h")
+
+WX_BEGIN_PROPERTIES_TABLE(wxScrollBar)
+ WX_PROPERTY( ThumbPosition , int , SetThumbPosition, GetThumbPosition, 0 )
+ WX_PROPERTY( Range , int , SetRange, GetRange, 0 )
+ WX_PROPERTY( ThumbSize , int , SetThumbSize, GetThumbSize, 0 )
+ WX_PROPERTY( PageSize , int , SetPageSize, GetPageSize, 0 )
+WX_END_PROPERTIES_TABLE()
-/*
- TODO PROPERTIES
- value (long,0)
- thumbsize(long,1)
- range( long , 10 )
- pagesize( long , 1)
-*/
+WX_BEGIN_HANDLERS_TABLE(wxScrollBar)
+WX_END_HANDLERS_TABLE()
+WX_CONSTRUCTOR_5( wxScrollBar , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle )
+#else
+IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
+#endif
// Scrollbar
bool wxScrollBar::Create(wxWindow *parent, wxWindowID id,
wxZeroMemory(scrollInfo);
scrollInfo.cbSize = sizeof(SCROLLINFO);
scrollInfo.fMask = SIF_POS;
-
+
if ( !::GetScrollInfo(GetHwnd(), SB_CTL, &scrollInfo) )
{
wxLogLastError(_T("GetScrollInfo"));
#include <commctrl.h>
#endif
+#if wxUSE_EXTENDED_RTTI
+IMPLEMENT_DYNAMIC_CLASS_XTI(wxSlider95, wxControl,"wx/scrolbar.h")
+
+WX_BEGIN_PROPERTIES_TABLE(wxSlider95)
+ WX_PROPERTY( Value , int , SetValue, GetValue , 0)
+ WX_PROPERTY( Minimum , int , SetMin, GetMin, 0 )
+ WX_PROPERTY( Maximum , int , SetMax, GetMax, 0 )
+ WX_PROPERTY( PageSize , int , SetPageSize, GetLineSize, 1 )
+ WX_PROPERTY( LineSize , int , SetLineSize, GetLineSize, 1 )
+ WX_PROPERTY( ThumbLength , int , SetThumbLength, GetThumbLength, 1 )
+WX_END_PROPERTIES_TABLE()
+
+WX_BEGIN_HANDLERS_TABLE(wxSlider95)
+WX_END_HANDLERS_TABLE()
+
+WX_CONSTRUCTOR_8( wxSlider95 , wxWindow* , Parent , wxWindowID , Id , int , Value , int , Minimum , int , Maximum , wxPoint , Position , wxSize , Size , long , WindowStyle )
+#else
IMPLEMENT_DYNAMIC_CLASS(wxSlider95, wxControl)
+#endif
-/*
- TODO PROPERTIES
- value wxSL_DEFAULT_VALUE
- min wxSL_DEFAULT_MIN
- max wxSL_DEFAULT_MAX
- tickfreq (long , 0 )
- pagesize ( long )
- linesize (long)
- thumg (long)
- tick (long)
- selmin / selmax (long)
-*/
// Slider
wxSlider95::wxSlider95()
{
// macros
// ----------------------------------------------------------------------------
-#if 0 // wxUSE_EXTENDED_RTTI
+#if wxUSE_EXTENDED_RTTI
IMPLEMENT_DYNAMIC_CLASS_XTI(wxSpinCtrl, wxControl,"wx/spinbut.h")
WX_BEGIN_PROPERTIES_TABLE(wxSpinCtrl)
+ WX_PROPERTY( ValueString , wxString , SetValue , GetValue , ) ;
WX_PROPERTY( Value , int , SetValue, GetValue, 0 )
WX_PROPERTY( Min , int , SetMin, GetMin, 0 )
WX_PROPERTY( Max , int , SetMax, GetMax, 0 )
WX_BEGIN_HANDLERS_TABLE(wxSpinCtrl)
WX_END_HANDLERS_TABLE()
-WX_CONSTRUCTOR_5( wxSpinCtrl , wxWindow* , Parent , wxWindowID , Id , wxPoint , Position , wxSize , Size , long , WindowStyle )
+WX_CONSTRUCTOR_6( wxSpinCtrl , wxWindow* , Parent , wxWindowID , Id , wxString , ValueString , wxPoint , Position , wxSize , Size , long , WindowStyle )
#else
IMPLEMENT_DYNAMIC_CLASS(wxSpinCtrl, wxControl)
#endif
IMPLEMENT_DYNAMIC_CLASS_XTI(wxTextCtrl, wxControl,"wx/textctrl.h")
WX_BEGIN_PROPERTIES_TABLE(wxTextCtrl)
- WX_PROPERTY( Font , wxFont , SetFont , GetWindowFont , )
+ WX_PROPERTY( Font , wxFont , SetFont , GetFont , )
WX_PROPERTY( Value , wxString , SetValue, GetValue, wxEmptyString )
WX_END_PROPERTIES_TABLE()
WX_READONLY_PROPERTY( Parent,wxWindow*, GetParent, )
WX_PROPERTY( Id,wxWindowID, SetId, GetId, -1 )
- WX_PROPERTY( Position,wxPoint, SetWindowPosition , GetWindowPosition, wxPoint(-1,-1) ) // pos
- WX_PROPERTY( Size,wxSize, SetWindowSize, GetWindowSize, wxSize(-1,-1) ) // size
- WX_PROPERTY( WindowStyle , long , SetWindowStyle , GetWindowStyle , ) // style
+ WX_PROPERTY( Position,wxPoint, SetPosition , GetPosition, wxPoint(-1,-1) ) // pos
+ WX_PROPERTY( Size,wxSize, SetSize, GetSize, wxSize(-1,-1) ) // size
+ WX_PROPERTY( WindowStyle , long , SetWindowStyleFlag , GetWindowStyleFlag , ) // style
// Then all relations of the object graph