CSimpleReport::CSimpleReport() { FocusSubItems(TRUE); AllowEdit(TRUE); EditOnClick(FALSE); SetMultipleSelection(FALSE); // GetPaintManager()->SetGridStyle(TRUE, xtpReportGridLargeDots); // GetPaintManager()->SetGridColor(RGB(200,200,200)); GetPaintManager()->SetGridStyle(FALSE, xtpReportGridSolid); GetPaintManager()->SetGridColor(RGB(220,220,220)); GetPaintManager()->SetGridStyle(TRUE, xtpReportGridSolid); GetPaintManager()->SetGridColor(RGB(220,220,220)); #if _XTPLIB_VERSION_PREFIX == 1020 GetPaintManager()->m_columnStyle = xtpReportColumnOffice2003; #else // if _XTPLIB_VERSION_PREFIX == 1200 GetPaintManager()->SetColumnStyle(xtpReportColumnOffice2007); #endif GetPaintManager()->m_bDrawSortTriangleAlways = TRUE; GetPaintManager()->m_bHotTracking = TRUE; GetPaintManager()->m_clrHighlight = RGB(170, 200, 255); GetPaintManager()->m_clrHighlightText = RGB(0, 0, 0); // GetPaintManager()->m_clrSelectedRow = RGB(200, 230, 230); // GetPaintManager()->m_clrSelectedRowText = RGB(0, 0, 0); GetReportHeader()->AllowColumnRemove(FALSE); GetReportHeader()->AllowColumnSort(TRUE); GetReportHeader()->AllowColumnResize(TRUE); GetReportHeader()->AllowColumnReorder(TRUE); SetFontText("Arial", 14); SetFontHeader("Arial", 14); // SetColorBack(RGB(240, 255, 255)); // SetColorHightLight(RGB(0, 0, 0), RGB(255, 255, 0)); callback_add = NULL; callback_del = NULL; callback_copy = NULL; callback_newrec = NULL; m_bAdd = false; }
void CodeEdit::SetEditorSettings(const EditorSettings& settings) { m_indentationSize = settings.GetIndentSize(); SetIndent(m_indentationSize); SetTabWidth(m_indentationSize); bool useTabs = settings.GetUseTabs(); bool showWhiteSpace = settings.GetShowWhiteSpace(); SetUseTabs(useTabs); SetTabIndents(useTabs); SetBackSpaceUnIndents(useTabs); SetViewWhiteSpace(showWhiteSpace); SetMultipleSelection(true); SetAdditionalSelectionTyping(true); SetMultiPaste(1); SetVirtualSpaceOptions(1); if (settings.GetShowLineNumbers()) { // Figure out how wide the margin needs to be do display // the most number of linqes we'd reasonbly have. int marginSize = TextWidth(wxSTC_STYLE_LINENUMBER, "_99999"); SetMarginWidth(0, marginSize); SetMarginType(0,wxSTC_MARGIN_NUMBER); } else { SetMarginWidth(0, 0); } m_enableAutoComplete = settings.GetEnableAutoComplete(); }
void Edit::OnMultipleSelections(wxCommandEvent& WXUNUSED(event)) { bool isSet = GetMultipleSelection(); SetMultipleSelection(!isSet); }