Neil Hodgson | 1 Jun 2009 01:42
Picon

Re: Patch for column/rectangular editing , feature for 545068


Mike Lischke:

> Hmm, how can that work if the selection is defined by the range
> between anchor and caret? Moving the caret will then change the
> selection implicitely due to that definition.

  Here is a command in SciTE for swapping the caret to the opposite end:

function SwapSelection()
	anchor = editor.Anchor
	currentPos = editor.CurrentPos
	editor.Anchor = currentPos
	editor.CurrentPos = anchor
end

   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
-~----------~----~----~----~------~----~------~--~---

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
-~----------~----~----~----~------~----~------~--~---

Gianluca | 3 Jun 2009 18:27
Picon

SCI_MARGINSETSTYLE


Hello,
I'm developing a code editor using Scintilla v1.78 in a windows
environment.
I'd like to modify the margin background color for specified lines in
order to reflect defined line states like it's done in this image
http://www.scintilla.org/styledmargin.png
In the documentation I found the SCI_MARGINSETSTYLE message which
should do the job, but unfortunately it doesn't seem to work.
Here is a snapshot of my code (I'm using a MFC Scintilla wrapper):

	mScintillaWnd.Call(SCI_STYLESETBACK, 39, RGB(255, 0, 0));
	mScintillaWnd.Call(SCI_MARGINSETSTYLE, 0, 39);
	mScintillaWnd.Call(SCI_MARGINSETSTYLE, 1, 39);
	mScintillaWnd.Call(SCI_MARGINSETSTYLE, 2, 39);

this should set a red background color (i.e. style 39) for the margin
of lines 0,1 and 2, but it doesn't.
Any idea?

Thank you
--
Gianluca

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
(Continue reading)

Neil Hodgson | 4 Jun 2009 00:38
Picon

Re: SCI_MARGINSETSTYLE


Gianluca:

> I'd like to modify the margin background color for specified lines in
> order to reflect defined line states like it's done in this image
> http://www.scintilla.org/styledmargin.png
> In the documentation I found the SCI_MARGINSETSTYLE message which
> should do the job, but unfortunately it doesn't seem to work.
> Here is a snapshot of my code (I'm using a MFC Scintilla wrapper):
>
>        mScintillaWnd.Call(SCI_STYLESETBACK, 39, RGB(255, 0, 0));
>        mScintillaWnd.Call(SCI_MARGINSETSTYLE, 0, 39);
>        mScintillaWnd.Call(SCI_MARGINSETSTYLE, 1, 39);
>        mScintillaWnd.Call(SCI_MARGINSETSTYLE, 2, 39);

   SCI_MARGINSETSTYLE is for styled text margins. You will need to
make it a text margin and set some text with SCI_MARGINSETTEXT.

   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
-~----------~----~----~----~------~----~------~--~---

Jason Haslam | 5 Jun 2009 22:17
Picon
Gravatar

char * property accessor from lexer


There doesn't seem to be an easy way to get a string property from a  
lexer through the Accessor interface.  Is this by design or has it  
just never been needed before?  Would a small patch that implements  
this be acceptable?

Thanks,
Jason Haslam

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Neil Hodgson | 6 Jun 2009 02:09
Picon

Re: char * property accessor from lexer


Jason Haslam:

> There doesn't seem to be an easy way to get a string property from a
> lexer through the Accessor interface.  Is this by design or has it
> just never been needed before?

   It was actually deliberate. I would have preferred to have a much
lighter implementation of properties in Scintilla with just a single
level string -> integer map, moving the more complex current
implementation into SciTE. Can't really do that now since there is a
published API to retrieve strings.

> Would a small patch that implements this be acceptable?

   Accessor is supposed to be a long-term stable interface. Depends on
the amount of benefit.

   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
-~----------~----~----~----~------~----~------~--~---

EMauro | 7 Jun 2009 00:46
Picon

Size of Auto Completion window


Hi,

Is it possible to get the height/width of the Auto Completion window
after the user change its size? I tried utoCGetMax function but they
return the values that were set not the values after the user resized
the window. Or
am I missing something?

Best regards,
Eduardo Mauro
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Neil Hodgson | 7 Jun 2009 01:11
Picon

Re: Size of Auto Completion window


EMauro:

> Is it possible to get the height/width of the Auto Completion window
> after the user change its size? I tried utoCGetMax function but they
> return the values that were set not the values after the user resized
> the window. Or
> am I missing something?

   Use your platform's API.

   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
-~----------~----~----~----~------~----~------~--~---

Neil Hodgson | 10 Jun 2009 13:37
Picon

Wrap indent mode


   A feature (#2796119) has been implemented by maXmo to optionally
indent wrapped lines to match their start line or one indent further.
For example

         int visualWidth = visualSpace * x + z * treeHeightX;

   may wrap to

         int visualWidth =
         visualSpace * x +
         z * treeHeightX;

   Use SCI_SETWRAPINDENTMODE in Scintilla or wrap.indent.mode in
SciTE: 1 to match first line, 2 for 1 more indent, 0 for current
behaviour.

http://www.scintilla.org/scite.zip Source
http://www.scintilla.org/wscite.zip Windows executable

   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
-~----------~----~----~----~------~----~------~--~---

(Continue reading)


Gmane