1 #############################################################################
3 ## Purpose: XS for Wx::Choice
4 ## Author: Mattia Barbon
7 ## RCS-ID: $Id: Choice.xs 2057 2007-06-18 23:03:00Z mbarbon $
8 ## Copyright: (c) 2000-2003, 2006 Mattia Barbon
9 ## Licence: This program is free software; you can redistribute it and/or
10 ## modify it under the same terms as Perl itself
11 #############################################################################
13 #include <wx/choice.h>
15 MODULE=Wx PACKAGE=Wx::Choice
21 MATCH_VOIDM_REDISP( newDefault )
22 MATCH_ANY_REDISP( newFull )
23 END_OVERLOAD( "Wx::Choice::new" )
29 RETVAL = new wxChoice();
30 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
34 newFull( CLASS, parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, choices = 0, style = 0, validator = (wxValidator*)&wxDefaultValidator, name = wxChoiceNameStr )
42 wxValidator* validator
49 n = wxPli_av_2_stringarray( aTHX_ choices, &chs );
51 RETVAL = new wxChoice( parent, id, pos, size, n, chs, style,
53 wxPli_create_evthandler( aTHX_ RETVAL, CLASS );
60 wxChoice::Create( parent, id = wxID_ANY, pos = wxDefaultPosition, size = wxDefaultSize, choices = 0, style = 0, validator = (wxValidator*)&wxDefaultValidator, name = wxChoiceNameStr )
67 wxValidator* validator
74 n = wxPli_av_2_stringarray( aTHX_ choices, &chs );
76 RETVAL = THIS->Create( parent, id, pos, size, n, chs, style,
89 #if !defined(__WXUNIVERSAL__)
92 wxChoice::GetColumns()
95 wxChoice::SetColumns( n = 1 )
100 #if WXPERL_W_VERSION_GE( 2, 7, 2 )
103 wxChoice::GetCurrentSelection()
108 wxChoice::SetSelection( n )
112 wxChoice::SetStringSelection( string )