- for(long index = 0; index < 5; index++)
- m_listCtrl1->InsertItem( index, wxString::Format(_("Item\n(0,%d)"),index));
+ m_listCtrl1->InsertColumn(0, "Names");
+ m_listCtrl1->InsertColumn(1, "Values");
+ for(long index = 0; index < 5; index++) {
+ m_listCtrl1->InsertItem( index, wxString::Format(_("Item%d"),index));
+ m_listCtrl1->SetItem(index, 1, wxString::Format("%d", index));
+ }
+
+ // Init file and dir pickers
+ wxString file, dir;
+#if defined(__WXMSW__)
+ file = "C:\\Windows\\explorer.exe";
+ dir = "C:\\Windows";
+#else
+ file = "/bin/bash";
+ dir = "/home";
+#endif
+ m_filePicker1->SetPath(file);
+ m_dirPicker1->SetPath(dir);