#include "wx/wxprec.h"
+#include "wx/button.h"
+
#ifndef WX_PRECOMP
- #include "wx/button.h"
#include "wx/log.h"
#endif
/////////////////////////////////////////////////////////////////////////////
-// Name: common/dlgcmn.cpp
+// Name: src/common/dlgcmn.cpp
// Purpose: common (to all ports) wxDialog functions
// Author: Vadim Zeitlin
// Modified by:
#include "wx/settings.h"
#include "wx/stattext.h"
#include "wx/sizer.h"
- #include "wx/button.h"
#include "wx/containr.h"
#endif
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/button.h"
#endif
#include "wx/module.h"
-#include "wx/button.h"
#include "wx/layout.h"
#include "wx/msgdlg.h"
#include "wx/textctrl.h"
#include "wx/wxprec.h"
#ifdef __BORLANDC__
- #pragma hdrstop
+ #pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/textctrl.h"
#include "wx/sizer.h"
#include "wx/statbmp.h"
- #include "wx/button.h"
#include "wx/settings.h"
#endif // WX_PRECOMP
#include "wx/artprov.h"
#ifdef __WXMSW__
- // for OutputDebugString()
- #include "wx/msw/private.h"
+ // for OutputDebugString()
+ #include "wx/msw/private.h"
#endif // Windows
#ifdef __WXPM__
- #include <time.h>
+ #include <time.h>
#endif
#if wxUSE_LOG_DIALOG
}
#endif // wxUSE_LOG && wxUSE_TEXTCTRL
-
/////////////////////////////////////////////////////////////////////////////
-// Name: wx/gtk/tglbtn.cpp
+// Name: src/gtk/tglbtn.cpp
// Purpose: Definition of the wxToggleButton class, which implements a
// toggle button under wxGTK.
// Author: John Norris, minor changes by Axel Schlueter
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_TOGGLEBTN
+
#include "wx/tglbtn.h"
-#include "wx/button.h"
-#if wxUSE_TOGGLEBTN
+#ifndef WX_PRECOMP
+ #include "wx/button.h"
+#endif
// FIXME: Use GtkImage instead of GtkPixmap.
#include <gtk/gtkversion.h>
}
#endif // wxUSE_TOGGLEBTN
-
/////////////////////////////////////////////////////////////////////////////
-// Name: wx/gtk1/tglbtn.cpp
+// Name: src/gtk1/tglbtn.cpp
// Purpose: Definition of the wxToggleButton class, which implements a
// toggle button under wxGTK.
// Author: John Norris, minor changes by Axel Schlueter
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#if wxUSE_TOGGLEBTN
+
#include "wx/tglbtn.h"
-#include "wx/button.h"
-#if wxUSE_TOGGLEBTN
+#ifndef WX_PRECOMP
+ #include "wx/button.h"
+#endif
#include "wx/gtk1/private.h"
}
#endif // wxUSE_TOGGLEBTN
-
#include "wx/window.h"
#include "wx/frame.h"
#include "wx/dc.h"
+ #include "wx/button.h"
#endif
-#include "wx/button.h"
#include "wx/gdicmn.h"
#include "wx/pen.h"
#include "wx/brush.h"
#if wxUSE_COMBOBOX
#include "wx/combobox.h"
-#include "wx/button.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/button.h"
+#endif
+
#include "wx/menu.h"
#include "wx/containr.h"
#include "wx/mac/uma.h"
#include "wx/wxprec.h"
#include "wx/combobox.h"
-#include "wx/button.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/button.h"
+#endif
+
#include "wx/menu.h"
#include "wx/mac/uma.h"
#if TARGET_API_MAC_OSX
#include "wx/panel.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
+ #include "wx/button.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/radiobox.h"
#include "wx/spinbutt.h"
#include "wx/scrolbar.h"
-#include "wx/button.h"
#include "wx/dialog.h"
#include "wx/statbox.h"
#include "wx/sizer.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
+ #include "wx/button.h"
#endif
-#include "wx/button.h"
#include "wx/settings.h"
#include "wx/toplevel.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/dc.h"
+ #include "wx/button.h"
#endif
#ifdef __DARWIN__
#endif
#endif
-#include "wx/button.h"
#include "wx/toplevel.h"
#include "wx/settings.h"
#include "wx/filefn.h"
#include "wx/frame.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
+ #include "wx/button.h"
#endif
#include "wx/menu.h"
#include "wx/dialog.h"
#include "wx/scrolbar.h"
#include "wx/statbox.h"
-#include "wx/button.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/tooltip.h"
#include "wx/window.h"
#include "wx/frame.h"
#include "wx/dc.h"
+ #include "wx/button.h"
#endif
-#include "wx/button.h"
#include "wx/gdicmn.h"
#include "wx/pen.h"
#include "wx/brush.h"
// VZ: we could find the menu from its handle here by examining all
// the menus in the menu bar recursively but knowing that neither
// wxMSW nor wxGTK do it why bother...
- #if 0
+#if 0
MenuRef menuRef;
GetEventParameter(event,
typeMenuRef, NULL,
sizeof(menuRef), NULL,
&menuRef);
- #endif // 0
+#endif // 0
wxEventType type=0;
MenuCommand cmd=0;
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
+#include "wx/wxprec.h"
+
#include "wx/combobox.h"
-#include "wx/button.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/button.h"
+#endif
+
#include "wx/menu.h"
#include "wx/mac/uma.h"
#include "wx/panel.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
+ #include "wx/button.h"
#endif // WX_PRECOMP
#include "wx/notebook.h"
#include "wx/radiobox.h"
#include "wx/spinbutt.h"
#include "wx/scrolbar.h"
-#include "wx/button.h"
#include "wx/dialog.h"
#include "wx/statbox.h"
#include "wx/sizer.h"
#include "wx/log.h"
#include "wx/app.h"
#include "wx/utils.h"
+ #include "wx/button.h"
#endif
-#include "wx/button.h"
#include "wx/settings.h"
#include "wx/toplevel.h"
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/dc.h"
+ #include "wx/button.h"
#endif
#ifdef __DARWIN__
#endif
#endif
-#include "wx/button.h"
#include "wx/toplevel.h"
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/frame.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
+ #include "wx/button.h"
#endif
#include "wx/menu.h"
#include "wx/listbox.h"
#include "wx/scrolbar.h"
#include "wx/statbox.h"
-#include "wx/button.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/notebook.h"
#include "wx/frame.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
+ #include "wx/button.h"
#endif
#include "wx/menu.h"
#include "wx/layout.h"
-#include "wx/button.h"
#include "wx/settings.h"
#include "wx/scrolwin.h"
#include "wx/module.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: msw/button.cpp
+// Name: src/msw/button.cpp
// Purpose: wxButton
// Author: Julian Smart
// Modified by:
#if wxUSE_BUTTON
+#include "wx/button.h"
+
#ifndef WX_PRECOMP
#include "wx/app.h"
- #include "wx/button.h"
#include "wx/brush.h"
#include "wx/panel.h"
#include "wx/bmpbuttn.h"
{
// On Windows, some buttons aren't supposed to have
// mnemonics, so strip them out.
-
- label = wxGetStockLabel(id
+
+ label = wxGetStockLabel(id
#if defined(__WXMSW__) || defined(__WXWINCE__)
, ( id != wxID_OK &&
id != wxID_CANCEL &&
id != wxID_CLOSE )
#endif
);
- }
-
+ }
+
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
return false;
#endif // __WIN32__
#endif // wxUSE_BUTTON
-
// Name: src/msw/tglbtn.cpp
// Purpose: Definition of the wxToggleButton class, which implements a
// toggle button under wxMSW.
-// Author: John Norris, minor changes by Axel Schlueter
-// and William Gallafent.
+// Author: John Norris, minor changes by Axel Schlueter
+// and William Gallafent.
// Modified by:
// Created: 08.02.01
// RCS-ID: $Id$
#pragma hdrstop
#endif
-#include "wx/tglbtn.h"
-
#if wxUSE_TOGGLEBTN
+#include "wx/tglbtn.h"
+
#ifndef WX_PRECOMP
#include "wx/button.h"
#include "wx/brush.h"
}
#endif // wxUSE_TOGGLEBTN
-
/////////////////////////////////////////////////////////////////////////////
-// Name: button.cpp
+// Name: src/os2/button.cpp
// Purpose: wxButton
// Author: David Webster
// Modified by:
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
+#include "wx/button.h"
+
#ifndef WX_PRECOMP
#include "wx/app.h"
- #include "wx/button.h"
#include "wx/brush.h"
#include "wx/panel.h"
#include "wx/bmpbuttn.h"
);
if (m_hWnd == 0)
{
- return FALSE;
+ return false;
}
//
/////////////////////////////////////////////////////////////////////////////
-// Name: src/msw/tglbtn.cpp
+// Name: src/os2/tglbtn.cpp
// Purpose: Definition of the wxToggleButton class, which implements a
// toggle button under wxMSW.
// Author: John Norris, minor changes by Axel Schlueter
#pragma hdrstop
#endif
-#include "wx/tglbtn.h"
-
#if wxUSE_TOGGLEBTN
+#include "wx/tglbtn.h"
+
#ifndef WX_PRECOMP
#include "wx/button.h"
#include "wx/brush.h"
}
#endif // wxUSE_TOGGLEBTN
-
#if wxUSE_BUTTON
+#include "wx/button.h"
+
#ifndef WX_PRECOMP
#include "wx/app.h"
- #include "wx/button.h"
#include "wx/brush.h"
#include "wx/panel.h"
#include "wx/bmpbuttn.h"
}
#endif // wxUSE_BUTTON
-
#include "wx/dcclient.h"
#include "wx/log.h"
#include "wx/settings.h"
+ #include "wx/button.h"
#endif
#include "wx/control.h"
#include "wx/toplevel.h"
-#include "wx/button.h"
#include "wx/checkbox.h"
#include "wx/tglbtn.h"
#include "wx/radiobut.h"
if(field==NULL)
return;
- uint16_t newSize = label.Length() + 1;
+ uint16_t newSize = label.length() + 1;
MemHandle strHandle = FldGetTextHandle(field);
FldSetTextHandle(field, NULL );
if (strHandle)
#if wxUSE_TOGGLEBTN
+#include "wx/tglbtn.h"
+
#ifndef WX_PRECOMP
#include "wx/button.h"
#include "wx/brush.h"
#include "wx/log.h"
#endif // WX_PRECOMP
-#include "wx/tglbtn.h"
-
#include <Control.h>
// ----------------------------------------------------------------------------
}
#endif // wxUSE_TOGGLEBTN
-
#include "wx/intl.h"
#include "wx/frame.h"
#include "wx/containr.h" // wxSetFocusToChild()
+ #include "wx/button.h"
#endif //WX_PRECOMP
#include "wx/module.h"
#include "wx/display.h"
// controls for sending select event
-#include "wx/button.h"
#include "wx/checkbox.h"
#include "wx/radiobut.h"
#include "wx/tglbtn.h"
#include "wx/frame.h"
#include "wx/dc.h"
#include "wx/dcclient.h"
+ #include "wx/button.h"
#endif
#include "wx/menu.h"
#include "wx/layout.h"
#include "wx/dialog.h"
#include "wx/listbox.h"
-#include "wx/button.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/scrolwin.h"
/////////////////////////////////////////////////////////////////////////////
-// Name: xh_bttn.cpp
+// Name: src/xrc/xh_bttn.cpp
// Purpose: XRC resource for buttons
// Author: Vaclav Slavik
// Created: 2000/03/05
#if wxUSE_XRC
#include "wx/xrc/xh_bttn.h"
-#include "wx/button.h"
+
+#ifndef WX_PRECOMP
+ #include "wx/button.h"
+#endif
IMPLEMENT_DYNAMIC_CLASS(wxButtonXmlHandler, wxXmlResourceHandler)