当前位置:网站首页>RichView TRVStyle
RichView TRVStyle
2022-06-28 01:23:00 【lyhoo163】
RichView TRVStyle
一、TRVStyle
这个组件在运行时是不可见的,TRVSTYLE是派生类,直接继承TCOMPONENT。如果你想显示RICHVIEW里面的文档,只用把要显示的RICHVIEW关联TRVStyle组件即可。(创建一个TRVSTYLE后把,RICHVEIW的STYLE属性关联这个TRVSTLE)。
同样 RichView, RichViewEdit, DBRichView, DBRichViewEdit 都可以关联这个TRVSTYLE,方法相同。
如果一个TRVSTYLE关联多个组件后,当其中一个组件要删除这个TRVSTYLE后,其它的组件就不能继续使用这个TRVSTYLE,解决办法就是一个组件关联一个TRVSTYLE。
二、属性
RVSTYLE有三个主属性:
(1)TEXTSTYLES- 主要是设置一些文本样式;
(2)PARASTYLES- 段落标题样式
(3)LISTSTYLES- 段落标题样式列表
RVSTYLE颜色属性:
.Color - 背景色;
.SelColor, InactiveSelColor - 选择文本的背景色;
.SelTextColor, InactiveSelTextColor - 选择文本的颜色;
.DisabledFontColor - 控件不可能时文本的颜色.
.HoverColor - 超文本的颜色;
.CheckpointColor -检查点虚线颜色;
.CheckpointEvColor - 检查点事件虚线颜色;
.PageBreakColor - 文档隔断颜色;
.FloatingLineColor - 左右占位符颜色
RVSTYLE:鼠标样式;
.JumpCursor - 超文本样式
.LineSelectCursor - 左边栏样式.
LABEL元素相关属性
.FieldHighlightColor - 高亮显示颜色.
.FieldHighlightType -高亮显示模式(有三种).
.FootnoteNumbering - 一些页脚类型.
.FootnotePageReset - 页脚模式.
.EndnoteNumbering - 尾注类型.
RVSTYLE其它属性;
.SelectionStyle - 文档外观选择;
.SelectionMode - 选择模式;
.DefUnicodeStyle - 默认Unicode 文本样式;
.DefCodePage - ANSI <->Unicode 自动转换;
.LineWrapMode 文本框类型;
.UseSound. 声音开关
二、方法
RVSTYLE方法;
.SaveINI 保存 RVStyle 属性到INI文件;
.LoadINI 加载 RVStyle 属性从INI文件;
.SaveReg 保存 RVStyle 属性到注册文件;
.LoadReg 加载 RVStyle 属性到注册文件.
.SaveCSS 保存 RVStyle 样式到CSS文件
.SaveCSSToStream.保存.RVStyle样式为CSS文件,然后保存到流
三、事件
RVSTYLE事件
.OnDrawCheckpoint 画检查点;
.OnDrawPageBreak - 画分隔线;
.OnDrawParaBack - 画段落背景;
.OnDrawTextBack - 画文本背景;
.OnApplyStyle - 保存文本类型到画布;
.OnApplyStyleColor - 保存文本颜色到画布;
.OnDrawStyleText - 指定的文本类型;
.OnStyleHoverSensitive -重画,当鼠标移进或者移出指定的文本类型时重画样式;
边栏推荐
猜你喜欢

拾光者,云南白药!
![[today in history] June 11: the co inventor of Monte Carlo method was born; Google launched Google Earth; Google acquires waze](/img/eb/147d4aac20639d50b204dcf424c9e2.png)
[today in history] June 11: the co inventor of Monte Carlo method was born; Google launched Google Earth; Google acquires waze
![[today in history] June 5: Lovelace and Babbage met; The pioneer of public key cryptography was born; Functional language design pioneer born](/img/af/1faf1df4262940e73104ed2880f08d.png)
[today in history] June 5: Lovelace and Babbage met; The pioneer of public key cryptography was born; Functional language design pioneer born

简单ELK配置实现生产级别的日志采集和查询实践

The first place on the list - the carrying rate of front-end equipment is up to 10%, and the top 10 suppliers of digital key solutions

【Kotlin】在Android官方文档中对其语法的基本介绍和理解

初始线性回归

分布式事务解决方案Seata-Golang浅析

R语言惩罚逻辑回归、线性判别分析LDA、广义加性模型GAM、多元自适应回归样条MARS、KNN、二次判别分析QDA、决策树、随机森林、支持向量机SVM分类优质劣质葡萄酒十折交叉验证和ROC可视化

英特尔锐炫A380显卡即将在中国面市
随机推荐
[today in history] June 10: Apple II came out; Microsoft acquires gecad; The scientific and technological pioneer who invented the word "software engineering" was born
MFC CString to LPVOID
树莓派-环境设置和交叉编译
[today in history] June 8: the father of the world wide web was born; PHP public release; IPhone 4 comes out
Win11如何关闭最近打开项目?Win11关闭最近打开项目的方法
在线JSON转PlainText工具
毕业季来临,2022届高校毕业生人数首次突破千万大关
3年功能测试拿8K,被刚来的测试员反超,其实你在假装努力
Reprinted article: the digital economy generates strong demand for computing power Intel releases a number of innovative technologies to tap the potential of computing power
Arduino Esp8266 Web LED控制
【插件-statistic】统计代码行数和相关数据
Opencv -- geometric space transformation (affine transformation and projection transformation)
Win11不能拖拽圖片到任務欄軟件上快速打開怎麼辦
Simple elk configuration to realize production level log collection and query practice
StaticLayout的使用详解
Livedata interview question bank and answers -- 7 consecutive questions for livedata interview~
PHP 代码 微信、公众号、企业微信 发送表情符号 [U+1F449]
[today in history] June 5: Lovelace and Babbage met; The pioneer of public key cryptography was born; Functional language design pioneer born
Usage differences between isempty and isblank
> Could not create task ‘:app:MyTest. main()‘. > SourceSet with name ‘main‘ not found. Problem repair