const wxPoint& pos,
const wxSize& size,
long style,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator,
+# else
const wxValidator& validator,
+# endif
+#endif
const wxString& name);
// inherit colour and font settings from the parent window
{
wxString facename; // may be empty meaning "any"
-#if defined(__WXMSW__)
+#if defined(__WXMSW__) || defined(__WXPM__)
wxNativeEncodingInfo() { charset = 0; /* ANSI_CHARSET */ }
int charset;
int GetImage() const;
void GetItem( wxListItem &info );
wxColour *GetColour();
-
+
private:
DECLARE_DYNAMIC_CLASS(wxListItemData);
};
public:
wxListTextCtrl() {};
- wxListTextCtrl( wxWindow *parent, const wxWindowID id,
+ wxListTextCtrl( wxWindow *parent, const wxWindowID id,
bool *accept, wxString *res, wxListMainWindow *owner,
const wxString &value = "",
const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ int style = 0, const wxValidator* validator = wxDefaultValidator,
+# else
int style = 0, const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString &name = "wxListTextCtrlText" );
void OnChar( wxKeyEvent &event );
void OnKillFocus( wxFocusEvent &event );
-
+
DECLARE_EVENT_TABLE()
};
void SelectLine( wxListLineData *line );
void DeselectLine( wxListLineData *line );
void DeleteLine( wxListLineData *line );
-
+
void EditLabel( long item );
void Edit( long item ) { EditLabel(item); } // deprecated
void OnRenameTimer();
void OnRenameAccept();
-
+
void OnMouse( wxMouseEvent &event );
void MoveToFocus();
void OnArrowChar( wxListLineData *newCurrent, bool shiftDown );
void OnSetFocus( wxFocusEvent &event );
void OnKillFocus( wxFocusEvent &event );
void OnSize( wxSizeEvent &event );
-
+
void DrawImage( int index, wxDC *dc, int x, int y );
void GetImageSize( int index, int &width, int &height );
int GetIndexOfLine( const wxListLineData *line );
wxListCtrl();
wxListCtrl( wxWindow *parent, wxWindowID id = -1,
const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ long style = wxLC_ICON, const wxValidator* validator = wxDefaultValidator,
+# else
long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString &name = "listctrl" )
{
Create(parent, id, pos, size, style, validator, name);
~wxListCtrl();
bool Create( wxWindow *parent, wxWindowID id = -1,
const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ long style = wxLC_ICON, const wxValidator* validator = wxDefaultValidator,
+# else
long style = wxLC_ICON, const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString &name = "listctrl" );
void OnSize( wxSizeEvent &event );
bool GetColumn( int col, wxListItem& item ) const;
wxImageList *GetImageList( int which ) const;
void SetImageList( wxImageList *imageList, int which );
bool Arrange( int flag = wxLIST_ALIGN_DEFAULT ); // always wxLIST_ALIGN_LEFT in wxGLC
-
+
void ClearAll();
bool DeleteItem( long item );
bool DeleteAllItems();
bool DeleteAllColumns();
bool DeleteColumn( int col );
-
+
void EditLabel( long item ) { Edit(item); }
void Edit( long item );
-
+
bool EnsureVisible( long item );
long FindItem( long start, const wxString& str, bool partial = FALSE );
long FindItem( long start, long data );
bool SortItems( wxListCtrlCompare fn, long data );
bool Update( long item );
void OnIdle( wxIdleEvent &event );
-
+
// We have to hand down a few functions
-
+
bool SetBackgroundColour( const wxColour &colour );
bool SetForegroundColour( const wxColour &colour );
bool SetFont( const wxFont &font );
-
+
#if wxUSE_DRAG_AND_DROP
void SetDropTarget( wxDropTarget *dropTarget )
{ m_mainWin->SetDropTarget( dropTarget ); }
{ m_mainWin->SetFocus(); }
// implementation
-
+
wxImageList *m_imageListNormal;
wxImageList *m_imageListSmall;
wxImageList *m_imageListState; // what's that ?
bool *accept, wxString *res, wxTreeCtrl *owner,
const wxString &value = wxEmptyString,
const wxPoint &pos = wxDefaultPosition, const wxSize &size = wxDefaultSize,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ int style = 0, const wxValidator* validator = wxDefaultValidator,
+# else
int style = 0, const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString &name = wxTextCtrlNameStr );
void OnChar( wxKeyEvent &event );
void OnKillFocus( wxFocusEvent &event );
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator *validator = wxDefaultValidator,
+# else
const wxValidator &validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxTreeCtrlNameStr)
{
Create(parent, id, pos, size, style, validator, name);
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxTR_HAS_BUTTONS | wxTR_LINES_AT_ROOT,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator *validator = wxDefaultValidator,
+# else
const wxValidator &validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxTreeCtrlNameStr);
// accessors
inline wxBitmapButton(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxButtonNameStr)
{
Create(parent, id, bitmap, pos, size, style, validator, name);
bool Create(wxWindow *parent, wxWindowID id, const wxBitmap& bitmap,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = wxBU_AUTODRAW,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxButtonNameStr);
virtual void SetLabel(const wxBitmap& bitmap)
inline wxButton(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxButtonNameStr)
{
Create(parent, id, label, pos, size, style, validator, name);
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxButtonNameStr);
virtual ~wxButton();
inline wxCheckBox(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxCheckBoxNameStr)
{
Create(parent, id, label, pos, size, style, validator, name);
bool Create(wxWindow *parent, wxWindowID id, const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxCheckBoxNameStr);
virtual void SetValue(bool);
inline wxBitmapCheckBox(wxWindow *parent, wxWindowID id, const wxBitmap *label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxCheckBoxNameStr)
{
Create(parent, id, label, pos, size, style, validator, name);
bool Create(wxWindow *parent, wxWindowID id, const wxBitmap *bitmap,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxCheckBoxNameStr);
virtual void SetLabel(const wxBitmap& bitmap);
int nStrings = 0,
const wxString choices[] = NULL,
long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxListBoxNameStr);
// override base class virtuals
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxChoiceNameStr)
{
Create(parent, id, pos, size, n, choices, style, validator, name);
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxChoiceNameStr);
// Implement base class virtuals
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxComboBoxNameStr)
{
Create(parent, id, value, pos, size, n, choices, style, validator, name);
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxComboBoxNameStr);
// List functions: see wxChoice
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxGA_HORIZONTAL,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxGaugeNameStr)
{
Create(parent, id, range, pos, size, style, validator, name);
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxGA_HORIZONTAL,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxGaugeNameStr);
void SetShadowWidth(int w);
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxListBoxNameStr)
{
Create(parent, id, pos, size, n, choices, style, validator, name);
const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxListBoxNameStr);
virtual ~wxListBox();
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
int majorDim = 0, long style = wxRA_HORIZONTAL,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr)
+# else
const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr)
+# endif
+#endif
{
Create(parent, id, title, pos, size, n, choices, majorDim, style, val, name);
}
const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,
int n = 0, const wxString choices[] = NULL,
int majorDim = 0, long style = wxRA_HORIZONTAL,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr);
+# else
const wxValidator& val = wxDefaultValidator, const wxString& name = wxRadioBoxNameStr);
+# endif
+#endif
virtual bool OS2Command(WXUINT param, WXWORD id);
virtual WXHBRUSH OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxRadioButtonNameStr)
{
Create(parent, id, label, pos, size, style, validator, name);
const wxString& label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxRadioButtonNameStr);
virtual void SetLabel(const wxString& label);
const wxBitmap *label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxBitmapRadioButtonNameStr)
{
Create(parent, id, label, pos, size, style, validator, name);
const wxBitmap *label,
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize, long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxBitmapRadioButtonNameStr);
virtual void SetLabel(const wxBitmap *label);
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxSB_HORIZONTAL,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxScrollBarNameStr)
{
Create(parent, id, pos, size, style, validator, name);
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxSB_HORIZONTAL,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxScrollBarNameStr);
int GetThumbPosition() const ;
// Set this to 0 if your compiler can't cope
// with omission of prototype parameters.
-#define wxUSE_ODBC 0
- // Define 1 to use ODBC classes
+#define wxUSE_ODBC 0
+ // Define 1 to use ODBC classes
+
+#define wxODBC_FWD_ONLY_CURSORS 1
+ // Some databases/ODBC drivers only allow forward scrolling cursors.
+ // Unless you specifically want to use backward scrolling
+ // cursors, and you know that all of the databases/ODBC drivers
+ // that you will use these odbc classes with allow backward
+ // scrolling cursors, this setting should remain set to 1
+ // for maximum database/driver compatibilty
#define wxUSE_IOSTREAMH 1
// VC++ 4.2 and above allows <iostream> and <iostream.h>
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxSL_HORIZONTAL,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxSliderNameStr)
{
Create(parent, id, value, minValue, maxValue, pos, size, style, validator, name);
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = wxSL_HORIZONTAL,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxSliderNameStr);
virtual int GetValue() const ;
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxTextCtrlNameStr)
{
Create(parent, id, value, pos, size, style, validator, name);
const wxPoint& pos = wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style = 0,
+#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
+#endif
const wxString& name = wxTextCtrlNameStr);
// implement base class pure virtuals
// in order to avoid any overhead under !MSW make all wxCriticalSection class
// functions inline - but this can't be done under MSW
-#if defined(__WXMSW__)
+#if defined(__WXMSW__) || defined(__WXPM__)
class WXDLLEXPORT wxCriticalSectionInternal;
#define WXCRITICAL_INLINE
-#elif defined(__WXPM__)
- #define WXCRITICAL_INLINE
#else // !MSW && !PM
#define WXCRITICAL_INLINE inline
#endif // MSW/!MSW
wxCriticalSection(const wxCriticalSection&);
wxCriticalSection& operator=(const wxCriticalSection&);
-#if defined(__WXMSW__)
+#if defined(__WXMSW__) || defined(__WXPM__)
wxCriticalSectionInternal *m_critsect;
#else // !MSW
wxMutex m_mutex;
// returns TRUE if the main thread has GUI lock
extern bool WXDLLEXPORT wxGuiOwnedByMainThread();
-
- inline wxCriticalSection::wxCriticalSection() { }
- inline wxCriticalSection::~wxCriticalSection() { }
#else // !MSW && !PM
// implement wxCriticalSection using mutexes
inline wxCriticalSection::wxCriticalSection() { }
DECLARE_DYNAMIC_CLASS(wxValidator)
};
+#if defined(__VISAGECPP__)
+WXDLLEXPORT_DATA(extern const wxValidator*) wxDefaultValidator;
+#else
WXDLLEXPORT_DATA(extern const wxValidator) wxDefaultValidator;
+#endif
#endif // wxUSE_VALIDATORS
const wxSize& size = wxDefaultSize,
long style = 0,
#if wxUSE_VALIDATORS
+# if defined(__VISAGECPP__)
+ const wxValidator* validator = wxDefaultValidator,
+# else
const wxValidator& validator = wxDefaultValidator,
+# endif
#endif // wxUSE_VALIDATORS
const wxString& name = wxPanelNameStr);
int GetMinHeight() const { return m_minHeight; }
int GetMaxWidth() const { return m_maxWidth; }
int GetMaxHeight() const { return m_maxHeight; }
-
+
// window state
// ------------
#if wxUSE_VALIDATORS
// a window may have an associated validator which is used to control
// user input
+# if defined(__VISAGECPP__)
+ virtual void SetValidator( const wxValidator *validator );
+# else
virtual void SetValidator( const wxValidator &validator );
+# endif
virtual wxValidator *GetValidator() { return m_windowValidator; }
#endif // wxUSE_VALIDATORS