I have a wxStyledTextCtrl and I want to find the column number of a given position in the document. Basically I want a function like GetColumn but I don't want tabs to be expanded.
Does such a function exist?
...
I have the following chunk of C++ code that gets called when } is pressed:
int iCurPos = GetCurrentPos();
InsertText(iCurPos,wxT("}"));
int iPos = BraceMatch(iCurPos);
This works fine (iPos gets the position of the matching brace) except when I call SetLexer(...) beforehand. Then it returns -1? How can I get it to work?
Edit: I sho...
I have a wxWidgets application that has a wxStyledTextCtrl. But for the life of me, I cannot figure out how to get notified of modification events.
I have the following code:
void CMainWindow::OnDocumentModified(wxStyledTextEvent & event)
{
wxString msg;
msg << event.GetModificationType();
wxMessageBox(msg);
}
This gets c...