void QuitCB(Widget w, caddr_t pClientData, caddr_t pCallData) { char *text; text = XmComboBoxGetString(ComboBox1); fprintf(stderr, "You choosed \"%s\" out of the first ComboBox\n", text); XtFree(text); text = XmComboBoxGetString(ComboBox2); fprintf(stderr, "You entered \"%s\" into the second ComboBox\n", text); XtFree(text); fprintf(stderr, "Bye! ... have fun with XmComboBox!\n"); exit(0); } /* QuitCB */
wxString wxComboBox::GetValue() const { char *s = XmComboBoxGetString ((Widget) m_mainWidget); if (s) { wxString str(s); XtFree (s); return str; } else return wxEmptyString; }