Jerry Evans | 2 Jun 2009 14:41
Favicon

Background colors?


I am using Scintilla 177 built as a static Win32 library using VC++
2008 in an MFC view.

What is the simplest way to change the background window color? This
means regions from left to right margin, top to bottom. I can see some
code in

void Editor::Paint(Surface *surfaceWindow, PRectangle rcArea)
{
    // snip
    if (rcBeyondEOF.top < rcBeyondEOF.bottom)
    {
       surfaceWindow->FillRectangle(rcBeyondEOF, vs.styles
[STYLE_DEFAULT].back.allocated);
       // ... snip
       surfaceWindow->FillRectangle(rcBeyondEOF,
vs.edgecolour.allocated);
    }
}

Is vs.styles[STYLE_DEFAULT].back.allocated the key/approved setting
change here?

Thx++

Jerry.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
(Continue reading)

Neil Hodgson | 3 Jun 2009 00:32
Picon

Re: Background colors?


Jerry Evans:

> What is the simplest way to change the background window color? This
> means regions from left to right margin, top to bottom.

   You want to set the background colour of all styles. The quickest
way to do this is to set the background colour of STYLE_DEFAULT and
then copy this to all styles with SCI_STYLECLEARALL.

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To post to this group, send email to scintilla-interest <at> googlegroups.com
To unsubscribe from this group, send email to scintilla-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scintilla-interest?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane