Neil Hodgson <nyamatongwe <at> gmail.com> writes:

> """STYLE_CONTROLCHAR          36      This style sets the font used when 
drawing
> control characters. Only the font, size, bold, italics, and character
> set attributes are used and not the colour attributes.""" The
> visibility attribute is not used.
> 
> There is no simple way to hide control characters.
> 
>    Neil
> 

Ok, thanks Neil. I finally done it by taking off the SCMOD_CTRL and 
SCMOD_SHIFT of each character wanted:

int nCodeCtrl[22] = 
{'Q', 'W', 'E', 'R', 'I', 'O', 'P', 'S', 'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Ñ'
, 'B', 'N', 'M', 186, 187, 226};

// To disable Ctrl+Char
for(i = 0; i <22; i++)
{
        nCodeCtrl[i] += (SCMOD_CTRL<<16);
        m_sciCtrl.SendMessage(SCI_CLEARCMDKEY, nCodeCtrl[i], 0);
}

// To disable Ctrl+Shift+Char of some other characters
for(i = 48; i <=122; i++)
{
        int nCode = i + ((SCMOD_CTRL|SCMOD_SHIFT)<<16);
        m_sciCtrl.SendMessage(SCI_CLEARCMDKEY, nCode, 0);
}

I hope it could help to someone else.

Marc Soleda.


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

Reply via email to