summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b8f2db1)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16359
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{
wxSize size = m_choice->GetBestSize();
{
wxSize size = m_choice->GetBestSize();
{
wxSize sizeText = m_text->GetBestSize();
{
wxSize sizeText = m_text->GetBestSize();
wxControl::DoMoveWindow(x, y, width, height);
wxControl::DoMoveWindow(x, y, width, height);
{
m_choice->SetSize(0, 0 , width, -1);
}
{
m_choice->SetSize(0, 0 , width, -1);
}
- void wxComboBox::SetFocus()
- {
- m_text->SetFocus();
- }
+void wxComboBox::SetFocus()
+{
+ if ( m_text != NULL) {
+ m_text->SetFocus();
+ }
+}
-void wxComboBox::DelegateTextChanged( const wxString& value ) {
+void wxComboBox::DelegateTextChanged( const wxString& value )
+{
wxSize csize = size;
if ( style & wxCB_READONLY )
{
wxSize csize = size;
if ( style & wxCB_READONLY )
{
{
result = m_choice->GetString( m_choice->GetSelection() );
}
{
result = m_choice->GetString( m_choice->GetSelection() );
}
// Clipboard operations
void wxComboBox::Copy()
{
// Clipboard operations
void wxComboBox::Copy()
{
void wxComboBox::Paste()
{
void wxComboBox::Paste()
{
void wxComboBox::SetEditable(bool editable)
{
void wxComboBox::SetEditable(bool editable)
{
- if ( ( m_text == 0 ) && editable )
+ if ( ( m_text == NULL ) && editable )
{
m_text = new wxComboBoxText( this );
}
{
m_text = new wxComboBoxText( this );
}
- else if ( ( m_text != 0 ) && !editable )
+ else if ( ( m_text != NULL ) && !editable )
}
int currentX, currentY;
}
int currentX, currentY;
{
m_choice->SetSelection( n );
{
m_choice->SetSelection( n );
{
m_text->SetValue( GetString( n ) );
}
{
m_text->SetValue( GetString( n ) );
}
{
wxSize size = m_choice->GetBestSize();
{
wxSize size = m_choice->GetBestSize();
{
wxSize sizeText = m_text->GetBestSize();
{
wxSize sizeText = m_text->GetBestSize();
wxControl::DoMoveWindow(x, y, width, height);
wxControl::DoMoveWindow(x, y, width, height);
{
m_choice->SetSize(0, 0 , width, -1);
}
{
m_choice->SetSize(0, 0 , width, -1);
}
- void wxComboBox::SetFocus()
- {
- m_text->SetFocus();
- }
+void wxComboBox::SetFocus()
+{
+ if ( m_text != NULL) {
+ m_text->SetFocus();
+ }
+}
-void wxComboBox::DelegateTextChanged( const wxString& value ) {
+void wxComboBox::DelegateTextChanged( const wxString& value )
+{
wxSize csize = size;
if ( style & wxCB_READONLY )
{
wxSize csize = size;
if ( style & wxCB_READONLY )
{
{
result = m_choice->GetString( m_choice->GetSelection() );
}
{
result = m_choice->GetString( m_choice->GetSelection() );
}
// Clipboard operations
void wxComboBox::Copy()
{
// Clipboard operations
void wxComboBox::Copy()
{
void wxComboBox::Paste()
{
void wxComboBox::Paste()
{
void wxComboBox::SetEditable(bool editable)
{
void wxComboBox::SetEditable(bool editable)
{
- if ( ( m_text == 0 ) && editable )
+ if ( ( m_text == NULL ) && editable )
{
m_text = new wxComboBoxText( this );
}
{
m_text = new wxComboBoxText( this );
}
- else if ( ( m_text != 0 ) && !editable )
+ else if ( ( m_text != NULL ) && !editable )
}
int currentX, currentY;
}
int currentX, currentY;
{
m_choice->SetSelection( n );
{
m_choice->SetSelection( n );
{
m_text->SetValue( GetString( n ) );
}
{
m_text->SetValue( GetString( n ) );
}