[QScintilla] Help! Trying to set up markers
Patrick Mabie
pmabie at gmail.com
Fri Sep 21 17:01:05 BST 2007
Hello to all!
Using QScintilla-1.73-gpl-2.1,Qt-Win-4.3.1,Windows Vista , Microsoft
Visual Studio 2005
Problem : Trying to set up BookMarks
I am not sure if this is the correct setup
textEdit->SendScintilla(textEdit->SCI_SETMARGINWIDTHN,2, 16);
textEdit->SendScintilla(textEdit->SCI_SETMARGINSENSITIVEN,2,true);
textEdit->SendScintilla(textEdit->SCI_SETMARGINTYPEN,2,textEdit->SC_MARGIN_SYMBOL);
textEdit->SendScintilla(textEdit->SCI_SETMARGINMASKN,2,textEdit->SC_MASK_FOLDERS);
textEdit->setProperty("marker","2"); <------------- Really unclear just
guessed
// Add BookMark
int mnr = textEdit->markerDefine(textEdit->SC_MARK_CIRCLE);
long pos = textEdit->SendScintilla(textEdit->SCI_GETCURRENTPOS);
long Line =
textEdit->SendScintilla(textEdit->SCI_LINEFROMPOSITION,pos,pos)+1;
int res = textEdit->markerAdd(Line,0); <-- Always returns -1 no matter
what i do :(
Any help would be greatly appreciated.
Patrick Mabie.
More information about the QScintilla
mailing list