使用 IntraWeb (13) - 基本控件之 TIWLabel、TIWLink、TIWURL、TIWURLWindow
TIWLabel //
TIWLink //内部链接
TIWURL //外部链接
TIWURLWindow //页内框架, 就是 <iframe></iframe>
TIWLabel 所在单元及继承链:
IWCompLabel.TIWLabel
主要成员:
property AutoSize: Boolean //自动大小
property Caption: TCaption //使用 Text 也行
property RawText: Boolean //= True 时, 会把 Caption 当做 Html 源代码
property ConvertSpaces: Boolean //是否转换空格; 如果 False, 连续的空格只能被识别为一个
property NoWrap: Boolean // = False 且 ConvertSpaces = False 且 AutoSize = False 时, 可换行
property ForControl: TIWCustomControl //指定它是哪个控件的标签; 指定后, 点击该 Label 会激活指定的控件
RawText 属性测试:
procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
IWLabel1.RawText := True;
IWLabel1.Caption := '<a href="http://del.cnblogs.com">万一的 Delphi 博客</a>';
end;
TIWLink 所在单元及继承链:
IWHTMLControls.TIWLink
主要成员:
property Confirmation: string //
property DoSubmitValidation: Boolean //
property RawText: Boolean //
property Caption: TCaption //
property RawText: Boolean // property OnClick: TNotifyEvent //
TIWLink 示例:
uses Unit2; procedure TIWForm1.IWLink1Click(Sender: TObject);
begin
TIWForm2.Create(WebApplication).Show;
end;
TIWURL 所在单元及继承链:
IWHTMLControls.TIWURL
主要成员:
property TargetOptions: TIWURLTarget //目标窗口选项
property TerminateApp: Boolean //跳转时, 是否同时终止应用
property URL: string //跳转地址
property UseTarget: Boolean //是否使用目标窗口
property RawText: Boolean //
property Caption: TCaption // TIWURLTarget 类的成员:
property Left: Integer
property Top: Integer
property Width: Integer
property Height: Integer
property WindowName: string
property AddressBar: Boolean
property Menu: Boolean
property Resizable: Boolean
property Scrollbars: Boolean
property Toolbar: Boolean
property Mode: TIWURLTargetMode //TIWURLTargetMode = (tmBlank, tmNewWindow, tmParent, tmSelf, tmTop)
function GetModeString(AMode: IWHTMLControls.TIWURLTargetMode): string
TIWURL 示例:
{在新标签页打开}
procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
IWURL1.URL := 'http://www.cnblogs.com/del';
end;
{在新窗口打开}
procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
IWURL1.URL := 'http://www.cnblogs.com/del';
IWURL1.UseTarget := True;
IWURL1.TargetOptions.Top := 0;
IWURL1.TargetOptions.Left := 0;
end;
{在当前页打开}
procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
IWURL1.URL := 'http://www.cnblogs.com/del';
IWURL1.UseTarget := True;
IWURL1.TargetOptions.Mode := tmSelf;
end;
TIWURLWindow 所在单元及继承链:
IWHTMLControls.TIWURLWindow
主要成员:
property URI: string //地址
property Border: Boolean //使用要边框
property Scrolling: TIWURLWindowScrolling //是否显示滚动条: usYes、usNo、usAuto
TIWLink 示例:
procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
IWURLWindow1.URI := 'http://del.cnblogs.com';
IWURLWindow1.Border := True;
IWURLWindow1.Align := alLeft;
end;
使用 IntraWeb (13) - 基本控件之 TIWLabel、TIWLink、TIWURL、TIWURLWindow的更多相关文章
- 使用 IntraWeb (15) - 基本控件之 TIWEdit、TIWMemo、TIWText
TIWEdit //单行文本框, 通过 PasswordPrompt 属性可以作为密码框 TIWMemo //多行文本框 TIWText //相当于多行的 TIWLabel 或不能编辑的 TIWMem ...
- 使用 IntraWeb (24) - 基本控件之 TIWFileUploader、TIWFile
TIWFileUploader 是基于 Ajax 的上传控件, 最初是 Andrew Valums 开发, 从 IntraWeb XIV 纳入并替换 TIWFile. 虽然从组件面板上还能看到 TIW ...
- 使用 IntraWeb (22) - 基本控件之 TIWCalendar
TIWCalendar: 日历控件, 继承于 TIWCustomGrid, 所以它和 TIWGrid 共同属性特多. 它的 Cell 是 TIWCalendarCell 对象, 直接从 TIWGrid ...
- 使用 IntraWeb (29) - 基本控件之 TIWAutherList、TIWAutherINI、TIWAutherEvent
TIWAutherList //通过一组户名与密码验证登陆 TIWAutherINI //通过记录户名与密码信息的 #Auth.ini 文件验证登陆 TIWAutherEvent //通过其 OnCh ...
- 使用 IntraWeb (28) - 基本控件之 TIWTemplateProcessorHTML、TIWLayoutMgrHTML、TIWLayoutMgrForm
TIWTemplateProcessorHTML //使用外部的 html 文件做模板 TIWLayoutMgrHTML //直接输入 Html 文本做模板 TIWLayoutMgrForm //这应 ...
- 使用 IntraWeb (26) - 基本控件之 TIWMenu
TIWMenu 的任务是让原来的 TMainMenu 呈现在网页上, 通过其 AttachedMenu 属性关联一个 TMainMenu 是必需的. TIWMenu 所在单元及继承链: IWCompM ...
- 使用 IntraWeb (25) - 基本控件之 TIWRegion
这应该是 IW 中最重要的容器了, 和它同父的还有 TIWTabControl TIWRegion 所在单元及继承链: IWRegion.TIWRegion 主要成员: property Align: ...
- 使用 IntraWeb (23) - 基本控件之 TIWTimer、TIWProgressBar、TIWProgressIndicator、TIWTimeEdit
TIWTimer //和 TTimer 没多大区别, 它的默认事件现在是异步的(OnAsyncTimer), 在网络上使用 OnTimer 肯定是非常糟糕的 TIWProgressBar //进度条 ...
- 使用 IntraWeb (20) - 基本控件之 TIWGrid
TIWGrid 最终通过 Html Table 呈现; 其每个 Cell 都是一个 TIWGridCell 对象, Cell 对象的 Control 属性非常好, 可以非常方便地嵌入其他控件. TIW ...
随机推荐
- angularJs入门篇-hello world 开头
AngularJS 采用了完全不同的解决方案,它创建实时视图模板代替视图,而不是将数据合并进模板之后更新DOM. 任何一个独立视图组件中的值都是 动态替换的.这个功能可以说是AngularJS中最重要 ...
- ARC 之内存转换
CHENYILONG Blog ARC 之内存转换 技术博客http://www.cnblogs.com/ChenYilong/ 新浪微博http://weibo.com/luohanchenyilo ...
- ffmpeg查看音频文件信息
查看音频文件的信息(基于本地路径) import subprocess import json path = r'D:\learn\download\NosVJ60QCIs0b8PVHMPomZJsr ...
- opencv学习笔记(八)IplImage* 访问图像像素的值
opencv2.1版本之前使用IplImage*数据结构来表示图像,2.1之后的版本使用图像容器Mat来存储.IplImage结构体如下所示. typedef struct _IplImage { i ...
- 解决chrome运行报错unknown error: cannot get automation extension
今天把默认浏览器改成chrome,结果一运行脚本就报错,具体错误信息如下. FAILED CONFIGURATION: @BeforeClass beforeClassorg.openqa.selen ...
- NTP多种模式的配置
自己安装和配置了一个NTP服务器的一些心得,希望与大家分享.写了一个文档包含了各个命令和参数的具体含义,由于不能上传无法与大家分享.以后还希望大家多多支持和帮助我们共同成长,我会不断做把这些年的经营和 ...
- [转] caffe激活层及参数
在激活层中,对输入数据进行激活操作(实际上就是一种函数变换),是逐元素进行运算的.从bottom得到一个blob数据输入,运算后,从top输入一个blob数据.在运算过程中,没有改变数据的大小,即输入 ...
- MySQL Replication Report
很多人都会MySQL主从框架的搭建,但很多人没有真正理解同步基本用途.同步的基本原理,还有当Master和Slave同步断开后的处理以及导致Master和slave不同步的原因等等,当你对这些都了如指 ...
- visual studio code插件精选
HTML Snippets 超级实用且初级的 H5代码片段以及提示 HTML CSS Support 让 html 标签上写class 智能提示当前项目所支持的样式 JavaScript Atom G ...
- 解决 Delphi XE5 写Android程序的No resource identifier found for attribute... 错误【转】
原文:http://www.hxhlb.cn/article/32142aaeb67bbc05379369c3.html 那一天,我装上了RAD Studio XE5. 当天晚上,我就写了一个小小的A ...