当前位置:网站首页>MFC function extension control bcgsuite for MFC help document: XML format of cbcgpeditctrl

MFC function extension control bcgsuite for MFC help document: XML format of cbcgpeditctrl

2021-01-19 00:06:40 FILA6666

BCGSuite Library has 100 Many have been fully designed , Tested and fully documented MFC The extension class , Its components can be easily integrated into your application , And save you hundreds of development and debugging time .

Introduction and CBCGPEditCtrl Used together XML File format , By calling CBCGPEditCtrl::LoadXMLSettings or CBCGPEditCtrl::LoadXMLSettingsFromBuffer To call XML Parser .

The overall structure is as follows :

 

<SETTINGS>
<OPTIONS>
<WordDelimeters></WordDelimeters>
<SpecialDelimiters></SpecialDelimiters>
<IntelliSenseChars></IntelliSenseChars>
</OPTIONS>
<COLOR_DATA>
<EditTextColor></EditTextColor>
<EditBackColor></EditBackColor>
<SelTextColor></SelTextColor>
<SelBackColor></SelBackColor>
<KEYWORDS>
<Color></Color>
<BackColor></BackColor>
<CaseSensitive></CaseSensitive>
<Keyword></Keyword>
<Keyword></Keyword>
... more keywords ....
<Keyword></Keyword>
</KEYWORDS>
<WORDS>
<WORD>
<Val></Val>
<Color></Color>
<BackColor></BackColor>
<CaseSensitive></CaseSensitive>
</WORD>
... more WORDs ...
<WORD>
....... 
</WORD>
</WORDS>
<BLOCKS>
<BLOCK>
<Start></Start>
<End></End>
<Color></Color>
<BackColor></BackColor>
<WholeText></WholeText>
<CaseSensitive></CaseSensitive>
</BLOCK>
... more blocks ...
<BLOCK>
.......
</BLOCK>
<BLOCKS> 
</COLOR_DATA>
</SETTINGS>

 

Except for the main “ SETTINGS” Out of label , There are no other mandatory labels .

“OPTIONS” The tag describes the common settings that apply to edit controls .

“COLOR_DATA” Tags define the general edit control color as well as syntax highlight and block color .

"KEYWORDS" Tags are used for syntax highlighting definitions , When you need to define a set of keywords with the same color , It's very useful . For each keyword ,XML The parser will call CBCGPEditCtrl::SetWordColor.

  • Color - clrFrgnd Parameters
  • BackColor - clrBkgnd Parameters
  • CaseSensitive - bCaseSensitive Parameters
  • Keyword - strWord Parameters

"WORDS" Tags are used to display individual words using a variety of color settings , For each word ,XML The parser will call CBCGPEditCtrl::SetWordColor.

“ WORD” The label represents a word .

  • Val - strWord Parameters
  • Color - clrFrgnd Parameters
  • BackColor - clrBkgnd Parameters
  • CaseSensitive - bCaseSensitive Parameters

"BLOCKS" Tags define a list of color blocks , For each color block ,XML The parser will call CBCGPEditCtrl :: SetBlockColor.

“ BLOCK” The marker represents a single color block

  • Start - strBlockOpen Parameters
  • End - strBlockClose Parameters
  • Color - clrFrgnd Parameters
  • BackColor - clrBkgnd Parameters
  • WholeText - bWholeText Parameters
  • CaseSensitive - bCaseSensitive Parameters

Here are XML List of colors the parser can recognize :

  • black
  • darkred
  • darkgreen
  • brown
  • darkblue
  • darkmagenta
  • darkcyan
  • gray
  • darkgray
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan
  • white

For Boolean , have access to “ true” or “ false”

版权声明
本文为[FILA6666]所创,转载请带上原文链接,感谢
https://chowdera.com/2021/01/20210112102602719x.html

随机推荐