-
- m_comboCtrl1 = new wxComboCtrl(m_panel5,wxID_ANY,wxEmptyString);
- // first of all, set the popup control!
- ListViewComboPopup* popupList = new ListViewComboPopup();
- m_comboCtrl1->SetPopupControl(popupList);
- m_comboCtrl1->SetPopupMaxHeight(80);
-
- m_comboCtrl1->SetText(wxT("wxComboCtrl"));
- m_comboCtrl1->SetToolTip(_("wxComboCtrl"));
-
- // Populate using wxListView methods
- popupList->InsertItem(popupList->GetItemCount(),wxT("wxComboCtrl"));
- popupList->InsertItem(popupList->GetItemCount(),wxT("with"));
- popupList->InsertItem(popupList->GetItemCount(),wxT("wxListView"));
- popupList->InsertItem(popupList->GetItemCount(),wxT("popup"));
- popupList->InsertItem(popupList->GetItemCount(),wxT("Item1"));
- popupList->InsertItem(popupList->GetItemCount(),wxT("Item2"));
- popupList->InsertItem(popupList->GetItemCount(),wxT("Item3"));
-
- popupList->Select(0, true);
- fgSizer4->Add( m_comboCtrl1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 20 );
-
- m_comboCtrl2 = new wxComboCtrl(m_panel5,wxID_ANY,wxEmptyString);
- // first of all, set the popup control!
- TreeCtrlComboPopup* popupTree = new TreeCtrlComboPopup();
- m_comboCtrl2->SetPopupControl(popupTree);
- m_comboCtrl2->SetPopupMaxHeight(80);
-
- m_comboCtrl2->SetText(wxT("wxComboCtrl"));
- m_comboCtrl2->SetToolTip(_("wxComboCtrl"));
-
- //Add a root and some nodes using wxTreeCtrl methods
- wxTreeItemId root = popupTree->AddRoot(_("wxComboCtrl"));
-
- popupTree->AppendItem(root, _("with"));
- popupTree->AppendItem(root, _("wxTreeCtrl"));
-
- wxTreeItemId node2 = popupTree->AppendItem(root, _("popout"));
- popupTree->AppendItem(node2, _("Node1"));
- popupTree->AppendItem(node2, _("Node2"));
-
- popupTree->ExpandAll();
- fgSizer4->Add( m_comboCtrl2, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 20 );
-
+
+ //wxComboCtrl 1
+ m_comboCtrl1 = new wxComboCtrl(m_panel5,wxID_ANY,wxEmptyString);
+ // first of all, set the popup control!
+ ListViewComboPopup* popupList = new ListViewComboPopup();
+ m_comboCtrl1->SetPopupControl(popupList);
+ m_comboCtrl1->SetPopupMaxHeight(80);
+
+ m_comboCtrl1->SetText(wxT("wxComboCtrl"));
+ m_comboCtrl1->SetToolTip(_("wxComboCtrl"));
+
+ // Populate using wxListView methods
+ popupList->InsertItem(popupList->GetItemCount(),wxT("wxComboCtrl"));
+ popupList->InsertItem(popupList->GetItemCount(),wxT("with"));
+ popupList->InsertItem(popupList->GetItemCount(),wxT("wxListView"));
+ popupList->InsertItem(popupList->GetItemCount(),wxT("popup"));
+ popupList->InsertItem(popupList->GetItemCount(),wxT("Item1"));
+ popupList->InsertItem(popupList->GetItemCount(),wxT("Item2"));
+ popupList->InsertItem(popupList->GetItemCount(),wxT("Item3"));
+
+ popupList->Select(0, true);
+ fgSizer4->Add( m_comboCtrl1, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 20 );
+
+ //wxComboCtrl 2
+ m_comboCtrl2 = new wxComboCtrl(m_panel5,wxID_ANY,wxEmptyString);
+ // first of all, set the popup control!
+ TreeCtrlComboPopup* popupTree = new TreeCtrlComboPopup();
+ m_comboCtrl2->SetPopupControl(popupTree);
+ m_comboCtrl2->SetPopupMaxHeight(80);
+
+ m_comboCtrl2->SetText(wxT("wxComboCtrl"));
+ m_comboCtrl2->SetToolTip(_("wxComboCtrl"));
+
+ //Add a root and some nodes using wxTreeCtrl methods
+ wxTreeItemId root = popupTree->AddRoot(_("wxComboCtrl"));
+
+ popupTree->AppendItem(root, _("with"));
+ popupTree->AppendItem(root, _("wxTreeCtrl"));
+
+ wxTreeItemId node2 = popupTree->AppendItem(root, _("popout"));
+ popupTree->AppendItem(node2, _("Node1"));
+ popupTree->AppendItem(node2, _("Node2"));
+
+ popupTree->ExpandAll();
+ fgSizer4->Add( m_comboCtrl2, 1, wxALL|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 20 );
+