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的更多相关文章

  1. 使用 IntraWeb (15) - 基本控件之 TIWEdit、TIWMemo、TIWText

    TIWEdit //单行文本框, 通过 PasswordPrompt 属性可以作为密码框 TIWMemo //多行文本框 TIWText //相当于多行的 TIWLabel 或不能编辑的 TIWMem ...

  2. 使用 IntraWeb (24) - 基本控件之 TIWFileUploader、TIWFile

    TIWFileUploader 是基于 Ajax 的上传控件, 最初是 Andrew Valums 开发, 从 IntraWeb XIV 纳入并替换 TIWFile. 虽然从组件面板上还能看到 TIW ...

  3. 使用 IntraWeb (22) - 基本控件之 TIWCalendar

    TIWCalendar: 日历控件, 继承于 TIWCustomGrid, 所以它和 TIWGrid 共同属性特多. 它的 Cell 是 TIWCalendarCell 对象, 直接从 TIWGrid ...

  4. 使用 IntraWeb (29) - 基本控件之 TIWAutherList、TIWAutherINI、TIWAutherEvent

    TIWAutherList //通过一组户名与密码验证登陆 TIWAutherINI //通过记录户名与密码信息的 #Auth.ini 文件验证登陆 TIWAutherEvent //通过其 OnCh ...

  5. 使用 IntraWeb (28) - 基本控件之 TIWTemplateProcessorHTML、TIWLayoutMgrHTML、TIWLayoutMgrForm

    TIWTemplateProcessorHTML //使用外部的 html 文件做模板 TIWLayoutMgrHTML //直接输入 Html 文本做模板 TIWLayoutMgrForm //这应 ...

  6. 使用 IntraWeb (26) - 基本控件之 TIWMenu

    TIWMenu 的任务是让原来的 TMainMenu 呈现在网页上, 通过其 AttachedMenu 属性关联一个 TMainMenu 是必需的. TIWMenu 所在单元及继承链: IWCompM ...

  7. 使用 IntraWeb (25) - 基本控件之 TIWRegion

    这应该是 IW 中最重要的容器了, 和它同父的还有 TIWTabControl TIWRegion 所在单元及继承链: IWRegion.TIWRegion 主要成员: property Align: ...

  8. 使用 IntraWeb (23) - 基本控件之 TIWTimer、TIWProgressBar、TIWProgressIndicator、TIWTimeEdit

    TIWTimer //和 TTimer 没多大区别, 它的默认事件现在是异步的(OnAsyncTimer), 在网络上使用 OnTimer 肯定是非常糟糕的 TIWProgressBar //进度条 ...

  9. 使用 IntraWeb (20) - 基本控件之 TIWGrid

    TIWGrid 最终通过 Html Table 呈现; 其每个 Cell 都是一个 TIWGridCell 对象, Cell 对象的 Control 属性非常好, 可以非常方便地嵌入其他控件. TIW ...

随机推荐

  1. python AjaxSpider 代码演示

    import re # 引入正则表达式 import json # 引入 json import pymongo # 引入mongo数据库 import requests # 引入HTTP请求协议 f ...

  2. [原]JUnit 自定义扩展思路

    1. 理解Annotation,http://www.cnblogs.com/mandroid/archive/2011/07/18/2109829.html 2. JUNIT整体执行过程分析,htt ...

  3. Java内存模型-final域的内存语义

    一 引言 说到final你肯定知道它是Java中的关键字,那么它所在Java中的作用你知道吗?不知道的话,请前往这篇了解下https://www.cnblogs.com/yuanfy008/p/802 ...

  4. Oracle SQL部分练习题

    SQL练习题        注:查询列表不建议用 “*” 1.列出至少有一个雇员的所有部门: a. select * from dept where deptno in(select distinct ...

  5. .NET C#错误:所生成项目的处理器框架“MSIL”与引用“wdapi_dotnet1021”的处理器架构“AMD64”不匹配

    .NET C#错误:所生成项目的处理器框架“MSIL”与引用“wdapi_dotnet1021”的处理器架构“AMD64”不匹配. 直接在项目右键属性->生成->x64. 即可解决

  6. 一个无锁消息队列引发的血案(三)——地:q3.h 与 RingBuffer

    目录 (一)起因 (二)混合自旋锁 (三)q3.h 与 RingBuffer (四)RingQueue(上) 自旋锁 (五)RingQueue(中) 休眠的艺术 (六)RingQueue(中) 休眠的 ...

  7. 06 Go 1.6 Release Notes

    Go 1.6 Release Notes Introduction to Go 1.6 Changes to the language Ports Tools Cgo Compiler Toolcha ...

  8. PHPStorm 配置本地服务器

    本篇教程为配置 PHPStorm 本地服务器,以方便程序调试. 本地服务器工具:XAMPP for windows 7.1.1-0 / Apache 2.4.25 ( Win32 ) / PHP 7. ...

  9. Android Studio 3.0正式版填坑之路

    原文:https://www.jianshu.com/p/9b25087a5d7d   Android Studio 3.0启动图 序言 总看别人的文章,今天尝试着自己来写一篇.在逛论坛时候,无意间发 ...

  10. P1006 传纸条 多维DP

    题目描述 小渊和小轩是好朋友也是同班同学,他们在一起总有谈不完的话题.一次素质拓展活动中,班上同学安排做成一个mm行nn列的矩阵,而小渊和小轩被安排在矩阵对角线的两端,因此,他们就无法直接交谈了.幸运 ...