mozers | 1 Jun 18:49 2009
Picon

Style of annotation text


Hello Scite-interest,

I want to set the annotation text's style of the second line but it does not work.
Please, correct my script:

scite.SendEditor(SCI_ANNOTATIONSETTEXT, 68, 'aaaa\nbbbbb\ncccccc')
scite.SendEditor(SCI_ANNOTATIONSETSTYLES, 3, "fore:#FFFF00,back:#FF0000")
scite.SendEditor(SCI_ANNOTATIONSETSTYLE, 2, 3)
scite.SendEditor(SCI_ANNOTATIONSETVISIBLE, 2)

--

-- 
mozers
<http://scite.net.ru>

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

Neil Hodgson | 2 Jun 01:22 2009
Picon

Re: Style of annotation text


mozers :

> I want to set the annotation text's style of the second line but it does not work.
> Please, correct my script:
>
> scite.SendEditor(SCI_ANNOTATIONSETTEXT, 68, 'aaaa\nbbbbb\ncccccc')
> scite.SendEditor(SCI_ANNOTATIONSETSTYLES, 3, "fore:#FFFF00,back:#FF0000")

   You can't send property strings - use an array of style bytes like
in SetStylingEx. You also need to use the same line number in your
calls.

> scite.SendEditor(SCI_ANNOTATIONSETSTYLE, 2, 3)
> scite.SendEditor(SCI_ANNOTATIONSETVISIBLE, 2)

   Neil

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

Neil Hodgson | 2 Jun 01:54 2009
Picon

Re: Style of annotation text


   There is also bug #2789430 in 1.78 that is fixed in CVS that means
that SCI_ANNOTATIONSETSTYLE doesn't work with multi-line annotations.
For 1.78 you will only be able to use SCI_ANNOTATIONSETSTYLES.

   Neil

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

mozers | 2 Jun 19:30 2009
Picon

Re: Style of annotation text


Tuesday, June 2, 2009, 3:22:02 AM, Neil wrote:

>> scite.SendEditor(SCI_ANNOTATIONSETSTYLES, 3, "fore:#FFFF00,back:#FF0000")
>    You can't send property strings - use an array of style bytes like
> in SetStylingEx. You also need to use the same line number in your
> calls.
>    There is also bug #2789430 in 1.78 that is fixed in CVS that means
> that SCI_ANNOTATIONSETSTYLE doesn't work with multi-line annotations.

Thanks for advice.
I compiled last version from CVS.
Now this script shows the annotation (all lines) in the set style (used style 12 lua):
--------------------------------------------
annotation_line = 5
annotation_text = 'line one\nline two\nline three'
annotation_style = 12

scite.SendEditor(SCI_ANNOTATIONSETTEXT, annotation_line, annotation_text)
scite.SendEditor(SCI_ANNOTATIONSETSTYLE, annotation_line, annotation_style)
scite.SendEditor(SCI_ANNOTATIONSETVISIBLE, ANNOTATION_BOXED)
--------------------------------------------

What is the way to show the second line of the annotation in the other style (e.g. 3) I do not understand :(

--

-- 
mozers

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

Neil Hodgson | 3 Jun 00:35 2009
Picon

Re: Style of annotation text


mozers:

> What is the way to show the second line of the annotation in the other style (e.g. 3) I do not understand :(

   If there are multiple styles within one annotation then set every
style byte with SCI_ANNOTATIONSETSTYLES:

scite.SendEditor(SCI_ANNOTATIONSETTEXT, annotation_line, "ab\ncd")
scite.SendEditor(SCI_ANNOTATIONSETSTYLES, annotation_line,
"\001\001\001\002\002")

   Neil

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

Neil Hodgson | 3 Jun 03:29 2009
Picon

Re: scite cannot display german special chars in GTK


Frank:

> SetMenuItem(menuTools, menuPos, itemID, sMenuItem.c_str(), sMnemonic
> [0] ? sMnemonic.c_str() : NULL);
>
> has to be changed to SetMenuItemLocalised(...);

   Committed.

   Neil

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

mozers | 3 Jun 07:46 2009
Picon

Re: Style of annotation text


Wednesday, June 3, 2009, 2:35:53 AM, Neil wrote:

>    If there are multiple styles within one annotation then set every
> style byte with SCI_ANNOTATIONSETSTYLES:
> scite.SendEditor(SCI_ANNOTATIONSETTEXT, annotation_line, "ab\ncd")
> scite.SendEditor(SCI_ANNOTATIONSETSTYLES, annotation_line,
> "\001\001\001\002\002")

Thank you very much.
Everything works fine.

---------------------------------------------------------------------------
local function SetAnnotation (text, line)
        local str = ''
        local style = ''
        for i = 1, #text, 2 do
                str = str..text[i]
                style = style..string.char(text[i+1]):rep(#text[i])
        end
        scite.SendEditor(SCI_ANNOTATIONSETTEXT, line, str)
        scite.SendEditor(SCI_ANNOTATIONSETSTYLES, line, style)
        scite.SendEditor(SCI_ANNOTATIONSETVISIBLE, ANNOTATION_BOXED)
end

local annot_line = 5
local annot_text = { -- text_line, style_line
'annotation line one\n', 4,
'annotation line two\n', 3,
'annotation line three', 12
(Continue reading)

yyyc186 | 3 Jun 15:28 2009
Picon

Re: SciTe will not print


I'll go out on a limb here and hazard a guess that you dont have a
DEFAULT printer selected in your environment.

It always prints for me, but ONLY to the default printer.  SciTE has
never interfaced to the environment Print Selection/Setup dialog.

On May 5, 10:01 am, "stef.bm" <stef... <at> hotmail.com> wrote:
> This error occurs with both SciTe 1.78 self-compiled on a Mandriva
> Linux
> 2008.1 x86_64 AND the Mandriva RPM (SciTe 1.74).
>
> Whenever I try to print any file, it just outputs the file to the
> output
> window as opposed to printing it.
>
> It could be a compile error on both my part and Mandriva's part, but I
> am
> wondering if this the standard behavior for SciTe.
>
> If SciTe is capable of printing, must I specify a compile option for
> printing? What libraries/dependencies would be needed for SciTe to
> print?
>
> Thanks.
>
> PS  I have posted a screenshot of the output here:
> <http://sourceforge.net/tracker/?
> func=detail&aid=2786631&group_id=2439&atid=102439>
>
(Continue reading)

yyyc186 | 3 Jun 15:30 2009
Picon

Re: Another lame scite question re scite on xubuntu 9.04.


Ubuntu has a _very_ poor track record when it comes to building SciTE.

I ended up ditching Ubuntu for OpenSuSE 11.1 64-bit.

On Apr 29, 3:58 pm, James Mansion <ja... <at> mansionfamily.plus.com>
wrote:
> Might be better on a (x)ubuntu list but it'll take me a bit to figure
> out which to use.
>
> Installed scite using synaptic into Xubuntu 9.04 in VBox 2.2.2 (running
> full screen), shows ctrl-F11 as the hotkey for monospace, but it does
> nothing.
>
> Presumably some X keyboard setup issue - but is it straightforward to
> fix or is it easier to remap the key used for this?
>
> I'd actually be happy if the global default is always to use monospace.  
> Looked in the help file but its not immediately clear how to do that. :-(
>
> James
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest+unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Picon

Re: Another lame scite question re scite on xubuntu 9.04.


Long ago I decided to recompile my scite package from the official releases
and that's better than the official packages...

On Wed, Jun 3, 2009 at 3:30 PM, yyyc186 <yyyc186 <at> hughes.net> wrote:
>
> Ubuntu has a _very_ poor track record when it comes to building SciTE.
>
> I ended up ditching Ubuntu for OpenSuSE 11.1 64-bit.
>
> On Apr 29, 3:58 pm, James Mansion <ja... <at> mansionfamily.plus.com>
> wrote:
>> Might be better on a (x)ubuntu list but it'll take me a bit to figure
>> out which to use.
>>
>> Installed scite using synaptic into Xubuntu 9.04 in VBox 2.2.2 (running
>> full screen), shows ctrl-F11 as the hotkey for monospace, but it does
>> nothing.
>>
>> Presumably some X keyboard setup issue - but is it straightforward to
>> fix or is it easier to remap the key used for this?
>>
>> I'd actually be happy if the global default is always to use monospace.
>> Looked in the help file but its not immediately clear how to do that. :-(
>>
>> James
> >
>

--~--~---------~--~----~------------~-------~--~----~
(Continue reading)


Gmane