Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
change qm editor background and foreground
#2
Macro Make QM code editor background dark
Code:
Copy      Help
int backColor(0x464646) foreColor(0xC0C0C0)
int h=id(2210 _hwndqm)
int i
for i 0 18
,SendMessage h SCI.SCI_STYLESETBACK i backColor
SendMessage h SCI.SCI_STYLESETBACK 32 backColor
SendMessage h SCI.SCI_STYLESETFORE 0 foreColor
SendMessage h SCI.SCI_STYLESETFORE 14 foreColor ;;variables; or change it in Options, because default is black


#ret
;style indices used by QM
enum STYLES
{
,STYLE_COMMENT=1, STYLE_COMMENT_AFTER,
,STYLE_STRING, STYLE_NUMBER, STYLE_OPERATOR, STYLE_PUNCTUATION,
,STYLE_F_QM, STYLE_F_UDF, STYLE_F_DLL, STYLE_DIR,
,STYLE_TYPE, STYLE_DEF, STYLE_LIB,
,STYLE_VARIABLE, STYLE_REGION,
,STYLE_MENU_ICON, STYLE_TAB,
,STYLE_NSTYLES_QM,
,//these are not true styles. Will be mapped to other values or messages.
,STYLE__SELECTION=STYLE_NSTYLES_QM,    //SCI_SETSELBACK
,STYLE__CARETLINE,                    //SCI_SETCARETLINEVISIBLE, SCI_SETCARETLINEBACK
,STYLE__SELBAR, STYLE__SELBAR_FOCUS,    //STYLE_LINENUMBER, etc
,//these are true styles (not mapped)
,STYLE__SELBAR_CHANGEDLINE_NEW, STYLE__SELBAR_CHANGEDLINE_OLD,
,//mapped again
,STYLE__ANNOTATION, //STYLE__ANNOTATION_OFFSET
,STYLE__FINDHIGHLIGHT, //SCI_INDICSETFORE, SCI_MARKERSETBACK
,//mapped again
,STYLE__NSTYLES_QM,

#ifndef SCI_LINK_INDICATORS
,STYLE__HIDDEN=STYLE_DEFAULT-1, //31. Used with links.
#endif

,STYLE__ANNOTATION_OFFSET=256,
};


Messages In This Thread
RE: change qm editor background and foreground - by Gintaras - 05-23-2018, 09:14 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)