Hi,
I think the problem is that there is no AppendText() method in a wxComboBox. AppendText() is a member of wxTextCtrl.
You can use:
Append() which adds a wxString to the end
Insert() which inserts a wxString at a given index
SetString() which also places a wxString at a given index
HTH:
;
thx,
Dave S.
wxMS_developers · Development with wxWidgets on MSWindows 
wxMS_developers RSS feed
wxWidgets Code Exchange
-- On Mon, 04 Dec 2006 17:30:24 -0000 Peter Rung wrote --
> I am interested in taking the text typed in a text control in a
> dialog box, and placing it in a combobox in the parent panel.
>
> Let's take the following:
>
> 1. A frame/panel which has a combobox and a button. The combobox
> variable name is m_combo1. The button calls a dialog box, called
> SubD. 2. SubD has a textcontrol and a button. The text control
> accepts text. The button store the text in a public variable call
> T1. It also calls a method in the frame.cpp call ACCCept(); 3.
> ACCCept() has one line in it: m_combo1->AppendText(T1);
>
> This line causes an exception violation.
>
> Thoughts?
>
> Peter
>
>
> Yahoo! Groups Links
>
> To visit your group on the web, go to:
>
> Your email settings:
> Individual Email | Traditional
>
> To change settings online go to:
> required)
>
> To change settings via email:
> anthemion-devtools-digest@yahoogroups.com">mailto:anthemion-devtools-digest
yahoogroups.com anthemion">mailto:anthemion-
> devtools-fullfeatured
yahoogroups.com
>
> To unsubscribe from this group, send an email to: anthemion-
> devtools-unsubscribe
yahoogroups.com
>
> Your use of Yahoo! Groups is subject to:
.