Try the "GTK+" sample referenced at the front of the Scintilla doc
file (ScintillaDoc.html) - it is called "bait".  While not for the
"wx" world specifically, it does contain a minimal set of Scintilla
API calls for showing that your local install is working (I use it
when I move Scintilla to a new platform).


Okay, i looked at bait and i've tried thevStyleSetForeground (wxSCI_STYLE_DEFAULT, wxColour (_T("BLUE"))); call but i still got the text showing up in black. wxSCI_STYLE_DEFAULT should be displaying all text as blue right ? If not then which value should I put in ? Funny thing is if i do the exact same call using the Background fonction, that works fine. So it doesn't really make any sense to me. Also how many values like wxSCI_STYLE_DEFAULT are there and what are they ? because in the API it says something about bytes 0 to 31 being used to set text attributes and predefinied styles starting at 32. I'm not sure i understand what that all means. I'm sorry if this all sounds silly or whatever, i'm still in school and therefore a newbee (and I'm french by the way so reading english written documentation, while not that hard for me, can sometimes be difficult). Thank you for anyone who will be willing to explain to me about the whole syntaxe colouring step by step. Hope it's not too much to ask.
Tom


Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com

------------------------------

Message: 2
Date: Wed, 14 Feb 2007 09:34:50 +1100
From: "Neil Hodgson" <[EMAIL PROTECTED]>
Subject: Re: [scintilla] Scintilla use and problem
To: "Discussion of the Scintilla editing component"
        <[email protected]>
Message-ID:
        <[EMAIL PROTECTED]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Tom Zaffran:

> Here's the part of the code that concerns scintilla, please someone help
> me...
>
>         // Scintilla Component
>         m_ScinTxt = new wxScintilla(this, SCITXT, wxDefaultPosition,
> wxSize(700,460), wxTE_MULTILINE, _T(""));
>
>         // Pascal LExer
>         //m_ScinTxt->SetLexerLanguage(_T("pascal"));
>         m_ScinTxt->SetLexer(wxSCI_LEX_PASCAL);
>         m_ScinTxt->SetStyleBits(5);
>         // key words definition  ?
>         m_ScinTxt->SetKeyWords (0, _T("begin"));
>         m_ScinTxt->SetText(_T("Scintilla\nbegin\nThomas end"));
>
>         // Color call
>         m_ScinTxt->Colourise (0,-1);

   You need to set what you want the styles to look like. As Robert
said, look at bait.

   Neil


_________________________________________________________________
Check out all that glitters with the MSN Entertainment Guide to the Academy Awards® http://movies.msn.com/movies/oscars2007/?icid=ncoscartagline2

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to