"Specialization is for insects."
+============================
The Open-Source, Cross-Platform GUI Framework
with Ten Years of Evolution Behind It
.. and how about a nice silk tie (US: necktie) with the logo on ...
Oh, I forgot, we programmers don't wear ties.
+============================
"I can't believe it's not native"
+============================
"Because friends don't let friends use Win32".
(or MFC)
+============================
+
+Have a photo of 3 babes wearing Linux, Windows and Mac Logo T-shirt with
+words at the bottom.
+
+"Why choose one when you can have 3?"
+
+(Mohammad Zubair <mzubair@singnet.com.sg>)
+
+============================
- Add individual setters to wxScrollBar and other classes
that use a combined setter.
- Remove traces of old resource system from wxWizard.
+- Have wxDirCtrl as alias for wxGenericDirCtrl.
+- Allow instant reaction to left-up in a wxGrid cell
+ (extend editor API) to work around bad checkbox
+ behaviour (click, click, click, click away...) and
+ reduce checkbox size on non-Windows platforms.
Version: $Id$
void SetReturnCode(int returnCode) { m_returnCode = returnCode; }
int GetReturnCode() const { return m_returnCode; }
-#if wxUSE_STATTEXT && wxUSE_TEXTCTRL
+#if wxUSE_STATTEXT // && wxUSE_TEXTCTRL
// splits text up at newlines and places the
// lines into a vertical wxBoxSizer
wxSizer *CreateTextSizer( const wxString &message );
-#endif // wxUSE_STATTEXT && wxUSE_TEXTCTRL
+#endif // wxUSE_STATTEXT // && wxUSE_TEXTCTRL
#if wxUSE_BUTTON
// places buttons into a horizontal wxBoxSizer
#pragma interface "textdlgg.h"
#endif
+#if wxUSE_TEXTDLG
#include "wx/defs.h"
#include "wx/dialog.h"
const wxString& default_value = wxEmptyString,
wxWindow *parent = (wxWindow *) NULL);
+#endif
+ // wxUSE_TEXTDLG
#endif
// __TEXTDLGH_G__
#include "wx/defs.h"
-#if wxUSE_VALIDATORS
+#if wxUSE_VALIDATORS && wxUSE_TEXTCTRL
#include "wx/textctrl.h"
#include "wx/validate.h"
};
#endif
- // wxUSE_VALIDATORS
+ // wxUSE_VALIDATORS && wxUSE_TEXTCTRL
#endif
// _WX_VALTEXTH__
#endif
}
-#if wxUSE_STATTEXT && wxUSE_TEXTCTRL
+#if wxUSE_STATTEXT // && wxUSE_TEXTCTRL
wxSizer *wxDialogBase::CreateTextSizer( const wxString& message )
{
return box;
}
-#endif // wxUSE_STATTEXT && wxUSE_TEXTCTRL
+#endif // wxUSE_STATTEXT // && wxUSE_TEXTCTRL
#if wxUSE_BUTTON
#endif
// string controls
+#if wxUSE_BUTTON
if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
{
wxButton* pControl = (wxButton*) m_validatorWindow;
return TRUE;
}
} else
+#endif
#if wxUSE_COMBOBOX
if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox)) )
{
return TRUE;
}
} else
+#if wxUSE_TEXTCTRL
if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
{
wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
return TRUE;
}
} else
+#endif
// array controls
#if wxUSE_CHECKLISTBOX && !defined(__WIN16__)
// NOTE: wxCheckListBox is a wxListBox, so wxCheckListBox MUST come first:
} else
#endif
// string controls
+#if wxUSE_BUTTON
if (m_validatorWindow->IsKindOf(CLASSINFO(wxButton)) )
{
wxButton* pControl = (wxButton*) m_validatorWindow;
*m_pString = pControl->GetLabel() ;
return TRUE;
}
- }
- else
+ } else
+#endif
#if wxUSE_COMBOBOX
if (m_validatorWindow->IsKindOf(CLASSINFO(wxComboBox)) )
{
return TRUE;
}
} else
+#if wxUSE_TEXTCTRL
if (m_validatorWindow->IsKindOf(CLASSINFO(wxTextCtrl)) )
{
wxTextCtrl* pControl = (wxTextCtrl*) m_validatorWindow;
return TRUE;
}
} else
+#endif
// array controls
#if wxUSE_CHECKLISTBOX
#ifndef __WIN16__
#pragma hdrstop
#endif
-#if wxUSE_VALIDATORS
+#if wxUSE_VALIDATORS && wxUSE_TEXTCTRL
#ifndef WX_PRECOMP
#include <stdio.h>
}
#endif
- // wxUSE_VALIDATORS
+ // wxUSE_VALIDATORS && wxUSE_TEXTCTRL
IMPLEMENT_DYNAMIC_CLASS(wxGenericMDIParentFrame, wxFrame)
BEGIN_EVENT_TABLE(wxGenericMDIParentFrame, wxFrame)
+#if wxUSE_MENUS
EVT_MENU (-1, wxGenericMDIParentFrame::DoHandleMenu)
+#endif
END_EVENT_TABLE()
wxGenericMDIParentFrame::wxGenericMDIParentFrame()
bitmap = wxArtProvider::GetIcon(wxART_QUESTION, wxART_MESSAGE_BOX);
break;
}
+#if wxUSE_STATIC_BITMAP
wxStaticBitmap *icon = new wxStaticBitmap(this, -1, bitmap);
if (is_pda)
topsizer->Add( icon, 0, wxTOP|wxLEFT|wxRIGHT | wxALIGN_LEFT, 10 );
else
icon_text->Add( icon, 0, wxCENTER );
+#endif
}
// 2) text
+#if wxUSE_STATTEXT // && wxUSE_TEXTCTRL
icon_text->Add( CreateTextSizer( message ), 0, wxCENTER | wxLEFT, 10 );
+#endif
topsizer->Add( icon_text, 1, wxCENTER | wxLEFT|wxRIGHT|wxTOP, 10 );
#endif
// 4) buttons
+#if wxUSE_BUTTON
topsizer->Add( CreateButtonSizer( style ), 0, wxCENTRE | wxALL, 10 );
+ #endif
SetAutoLayout( TRUE );
SetSizer( topsizer );
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_SPLITTER
#ifdef __BORLANDC__
#pragma hdrstop
#endif
//else: do nothing, in particular, don't call Skip()
}
+#endif // wxUSE_SPLITTER
#endif // wxMSW
#pragma implementation "statline.h"
#endif
+#if wxUSE_STATLINE
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
{
m_statbox->SetSize(x, y, width, height);
}
+
+#endif
+ // wxUSE_STATLINE