+void GridFrame::ToggleGridSizing( wxCommandEvent& WXUNUSED(ev) )
+{
+ grid->EnableDragGridSize(
+ GetMenuBar()->IsChecked( ID_TOGGLEGRIDSIZING ) );
+}
+
+
+void GridFrame::ToggleGridLines( wxCommandEvent& WXUNUSED(ev) )
+{
+ grid->EnableGridLines(
+ GetMenuBar()->IsChecked( ID_TOGGLEGRIDLINES ) );
+}
+
+void GridFrame::OnSetHighlightWidth( wxCommandEvent& WXUNUSED(ev) )
+{
+ wxString choices[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"};
+
+ wxSingleChoiceDialog dlg(this, "Choose the thickness of the highlight pen:",
+ "Pen Width", 11, choices);
+
+ int current = grid->GetCellHighlightPenWidth();
+ dlg.SetSelection(current);
+ if (dlg.ShowModal() == wxID_OK) {
+ grid->SetCellHighlightPenWidth(dlg.GetSelection());
+ }
+}
+
+void GridFrame::OnSetROHighlightWidth( wxCommandEvent& WXUNUSED(ev) )
+{
+ wxString choices[] = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"};
+
+ wxSingleChoiceDialog dlg(this, "Choose the thickness of the highlight pen:",
+ "Pen Width", 11, choices);
+
+ int current = grid->GetCellHighlightROPenWidth();
+ dlg.SetSelection(current);
+ if (dlg.ShowModal() == wxID_OK) {
+ grid->SetCellHighlightROPenWidth(dlg.GetSelection());
+ }
+}
+
+
+
+void GridFrame::AutoSizeCols( wxCommandEvent& WXUNUSED(ev) )
+{
+ grid->AutoSizeColumns();
+ grid->Refresh();
+}
+