# chm.compiler 库模块帮助文档

## chm 成员列表 <a id="chm" href="#chm">&#x23;</a>

### chm.compiler("HHP文件路径") <a id="chm.compiler" href="#chm.compiler">&#x23;</a>
创建可打开CHM工程文件

### chm.compiler() <a id="chm.compiler" href="#chm.compiler">&#x23;</a>
[返回对象:chmCompilerObject](#chmCompilerObject)

## chmCompilerObject 成员列表 <a id="chmCompilerObject" href="#chmCompilerObject">&#x23;</a>

### chmCompilerObject.compile() <a id="chmCompilerObject.compile" href="#chmCompilerObject.compile">&#x23;</a>
编译生成CHM文件  
可选在参数中指定输出CHM文件路径

### chmCompilerObject.compiledFile <a id="chmCompilerObject.compiledFile" href="#chmCompilerObject.compiledFile">&#x23;</a>
输出的CHM文件路径

### chmCompilerObject.contentsFile <a id="chmCompilerObject.contentsFile" href="#chmCompilerObject.contentsFile">&#x23;</a>
目录文件

### chmCompilerObject.defaultFont <a id="chmCompilerObject.defaultFont" href="#chmCompilerObject.defaultFont">&#x23;</a>
默认字体,默认为 "Tahoma,10,0"

### chmCompilerObject.defaultTopic <a id="chmCompilerObject.defaultTopic" href="#chmCompilerObject.defaultTopic">&#x23;</a>
默认首页

### chmCompilerObject.defaultWindow <a id="chmCompilerObject.defaultWindow" href="#chmCompilerObject.defaultWindow">&#x23;</a>
默认窗体名字

### chmCompilerObject.displayCompileProgress <a id="chmCompilerObject.displayCompileProgress" href="#chmCompilerObject.displayCompileProgress">&#x23;</a>
是否显示进度,默认为"Yes"

### chmCompilerObject.fullTextSearch <a id="chmCompilerObject.fullTextSearch" href="#chmCompilerObject.fullTextSearch">&#x23;</a>
是否全文搜索,默认为 "Yes"

### chmCompilerObject.hhpInfo <a id="chmCompilerObject.hhpInfo" href="#chmCompilerObject.hhpInfo">&#x23;</a>
配置文件  

[返回对象:iniObject](#iniObject)

### chmCompilerObject.indexFile <a id="chmCompilerObject.indexFile" href="#chmCompilerObject.indexFile">&#x23;</a>
索引文件

### chmCompilerObject.language <a id="chmCompilerObject.language" href="#chmCompilerObject.language">&#x23;</a>
LCID 语言代码

### chmCompilerObject.navigationPaneWidth <a id="chmCompilerObject.navigationPaneWidth" href="#chmCompilerObject.navigationPaneWidth">&#x23;</a>
左侧导航栏宽度,默认为 220

### chmCompilerObject.navigationStyle <a id="chmCompilerObject.navigationStyle" href="#chmCompilerObject.navigationStyle">&#x23;</a>
左侧导航栏样式,数值,  
默认为 0x60420

### chmCompilerObject.title <a id="chmCompilerObject.title" href="#chmCompilerObject.title">&#x23;</a>
窗口标题

## chmCompilerObject 事件列表 <a id="chmCompilerObjectEvent" href="#chmCompilerObjectEvent">&#x23;</a>

### chmCompilerObject.onPrint <a id="chmCompilerObject.onPrint" href="#chmCompilerObject.onPrint">&#x23;</a>

```aardio
chmCompilerObject.onPrint = function( str ){
	io.print( str )/*参数为输出信息,  
此回调函数返回 true 继续编译*/
	return true;
}
```

### chmCompilerObject.onProgress <a id="chmCompilerObject.onProgress" href="#chmCompilerObject.onProgress">&#x23;</a>

```aardio
chmCompilerObject.onProgress = function( str ){
	io.print( str )/*参数指示进度,  
此回调函数返回 true 继续编译*/
	return true;
}
```

