const wxValidator& validator,
const wxString& name )
{
- return Create(
- parent, id, pos, size, 0, NULL,
- style, validator, name );
+ if ( !Create( parent, id, pos, size, 0, NULL, style, validator, name ) )
+ return false;
Append( choices );
if ( !choices.empty() )
SetSelection( 0 );
+
+ SetInitialSize( size );
+
+ return true;
}
bool wxChoice::Create(wxWindow *parent,
UMAInsertMenuItem(MAC_WXHMENU( m_macPopUpMenuHandle ),
items[i],
- m_font.GetEncoding(),
+ GetFont().GetEncoding(),
idx);
m_datas.Insert( NULL, idx );
AssignNewItemClientData(idx, clientData, i, type);