[QScintilla] Help! Trying to set up markers

Detlev Offenbach detlev at die-offenbachs.de
Fri Sep 21 17:23:08 BST 2007


On Freitag, 21. September 2007, Patrick Mabie wrote:
> 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_FO
>LDERS); 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.
> _______________________________________________
> QScintilla mailing list
> QScintilla at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/qscintilla

Why don't you use the QsciScintilla API. It has C++ methods for all you need.

Detlev
-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the QScintilla mailing list