*** pgadmin3/pgadmin/debugger/ctlCodeWindow.cpp.orig Mon Oct 22 16:03:52 2007 --- pgadmin3/pgadmin/debugger/ctlCodeWindow.cpp Mon Oct 22 16:05:28 2007 *************** *** 163,168 **** --- 163,169 ---- m_view->MarkerDefine( MARKER_BREAKPOINT, wxSTC_MARK_CIRCLEPLUS, *wxRED, *wxRED ); m_view->SetMarginWidth(1, ConvertDialogToPixels(wxPoint(16, 0)).x); + m_view->SetMarginType(1, wxSTC_MARGIN_NUMBER); // Make sure that the text control tells us when the user clicks in the left margin m_view->SetMarginSensitive( 0, true ); *************** *** 1069,1074 **** --- 1070,1079 ---- src = src.AfterFirst('\n'); m_view->SetText(src); + + // line numbers in the margin + m_view->SetMarginWidth(1, m_view->TextWidth(wxSTC_STYLE_LINENUMBER, + wxString(wxT("999999")).Mid(1, wxString::Format(wxT("%d"),m_view->GetLineCount()).Len()+2))); m_view->Colourise(0, src.Length()); m_view->SetReadOnly(true);