git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39625
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+#include "wx/combobox.h"
+
#ifndef WX_PRECOMP
#include "wx/window.h"
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/window.h"
#include "wx/log.h"
#endif // WX_PRECOMP
#include "wx/cocoa/ObjcPose.h"
#endif // WX_PRECOMP
#include "wx/cocoa/ObjcPose.h"
-#include "wx/combobox.h"
#import <AppKit/NSComboBox.h>
#import <Foundation/NSNotification.h>
#import <AppKit/NSComboBox.h>
#import <Foundation/NSNotification.h>
@end // implementation wxPoserNSComboBox
@end // implementation wxPoserNSComboBox
-#include "wx/combobox.h"
-
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/string.h"
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/string.h"
+#include "wx/combobox.h"
+
#ifndef WX_PRECOMP
#include "wx/log.h"
#ifndef WX_PRECOMP
#include "wx/log.h"
- #include "wx/combobox.h"
#include "wx/dcclient.h"
#include "wx/settings.h"
#include "wx/dialog.h"
#include "wx/dcclient.h"
#include "wx/settings.h"
#include "wx/dialog.h"
if ( (sz.y-(customBorder*2)) < butHeight && btnWidth == 0 )
{
int newY = butHeight+(customBorder*2);
if ( (sz.y-(customBorder*2)) < butHeight && btnWidth == 0 )
{
int newY = butHeight+(customBorder*2);
- SetClientSize(-1,newY);
+ SetClientSize(wxDefaultCoord,newY);
#include "wx/msgdlg.h"
#include "wx/textctrl.h"
#include "wx/toolbar.h"
#include "wx/msgdlg.h"
#include "wx/textctrl.h"
#include "wx/toolbar.h"
+ #include "wx/combobox.h"
#endif
#include "wx/layout.h"
#include "wx/module.h"
#endif
#include "wx/layout.h"
#include "wx/module.h"
-#include "wx/combobox.h"
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/textctrl.h"
#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/textctrl.h"
+ #include "wx/combobox.h"
#endif
#include "wx/layout.h"
#include "wx/module.h"
#endif
#include "wx/layout.h"
#include "wx/module.h"
-#include "wx/combobox.h"
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
#if wxUSE_DRAG_AND_DROP
#include "wx/dnd.h"
+#include "wx/combobox.h"
+
#ifndef WX_PRECOMP
#include "wx/settings.h"
#endif
#ifndef WX_PRECOMP
#include "wx/settings.h"
#endif
-#include "wx/combobox.h"
#include "wx/clipbrd.h"
#include "wx/os2/private.h"
#include "wx/clipbrd.h"
#include "wx/os2/private.h"
IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl)
IMPLEMENT_DYNAMIC_CLASS(wxComboBox, wxControl)
-bool wxComboBox::OS2Command(
- WXUINT uParam
-, WXWORD WXUNUSED(wId)
-)
+bool wxComboBox::OS2Command( WXUINT uParam, WXWORD WXUNUSED(wId) )
- long lSel = -1L;
- wxString sValue;
+ long lSel = -1L;
+ wxString sValue;
switch (uParam)
{
case CBN_LBSELECT:
if (GetSelection() > -1)
{
switch (uParam)
{
case CBN_LBSELECT:
if (GetSelection() > -1)
{
- wxCommandEvent vEvent( wxEVT_COMMAND_COMBOBOX_SELECTED
- ,GetId()
- );
+ wxCommandEvent vEvent( wxEVT_COMMAND_COMBOBOX_SELECTED, GetId() );
vEvent.SetInt(GetSelection());
vEvent.SetEventObject(this);
vEvent.SetString(GetStringSelection());
vEvent.SetInt(GetSelection());
vEvent.SetEventObject(this);
vEvent.SetString(GetStringSelection());
ProcessCommand(vEvent);
}
break;
case CBN_EFCHANGE:
{
ProcessCommand(vEvent);
}
break;
case CBN_EFCHANGE:
{
- wxCommandEvent vEvent( wxEVT_COMMAND_TEXT_UPDATED
- ,GetId()
- );
+ wxCommandEvent vEvent( wxEVT_COMMAND_TEXT_UPDATED, GetId() );
if (lSel == -1L)
sValue = GetValue();
if (lSel == -1L)
sValue = GetValue();
#endif
} // end of wxComboBox::Remove
#endif
} // end of wxComboBox::Remove
-void wxComboBox::SetSelection(
- long lFrom
-, long lTo
-)
+void wxComboBox::SetSelection( long lFrom, long lTo )
- HWND hWnd = GetHwnd();
- long lFromChar = 0;
- long lToChar = 0;
+ HWND hWnd = GetHwnd();
+ long lFromChar = 0;
+ long lToChar = 0;
//
// If from and to are both -1, it means
//
// If from and to are both -1, it means
#ifndef WX_PRECOMP
#include "wx/intl.h"
#ifndef WX_PRECOMP
#include "wx/intl.h"
+ #include "wx/combobox.h"
-#include "wx/combobox.h"
-
IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler)
wxComboBoxXmlHandler::wxComboBoxXmlHandler()
IMPLEMENT_DYNAMIC_CLASS(wxComboBoxXmlHandler, wxXmlResourceHandler)
wxComboBoxXmlHandler::wxComboBoxXmlHandler()
-: wxXmlResourceHandler() , m_insideBox(false)
+ :wxXmlResourceHandler()
+ ,m_insideBox(false)
{
XRC_ADD_STYLE(wxCB_SIMPLE);
XRC_ADD_STYLE(wxCB_SORT);
{
XRC_ADD_STYLE(wxCB_SIMPLE);
XRC_ADD_STYLE(wxCB_SORT);