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. Redis配置文件介绍

    Redis在源码包中存放了一个Redis配置实例文件,文件中对各个配置点进行了简单的介绍,我也通过这个文件来对Redis的一些配置进行一些简单介绍. 一.UNITS(单位)[了解] 1.Redis服务 ...

  2. order by 字段自动填写脚本

    新版 firefox 中的 hackbar 没有 order by 字段填写, 所以就有了这个: =begin pod sql注入中自动输出order by 的位数 =end pod sub MAIN ...

  3. python3之模块io使用流的核心工具

    1.io概叙 io模块提供了python用于处理各种类型I/O的主要工具,主要有三种类型的I/O:文本I/O,二进制I/O和原始I/O:这些都是通用类型,各种后备存储可使用其中的每一种类型,所以这些类 ...

  4. MySQL的Auto-Failover功能

    今天来体验一下MySQL的Auto-Failover功能,这里用到一个工具MySQL Utilities,它的功能很强大.此工具提供如下功能:(1)管理工具 (克隆.复制.比较.差异.导出.导入)(2 ...

  5. Google Protocol Buffer的安装与.proto文件的定义(转)

    转自(https://www.cnblogs.com/yinheyi/p/6080244.html) 什么是protocol Buffer呢? Google Protocol Buffer( 简称 P ...

  6. Install Shield中调用devcon自动安装硬件驱动程序

    1.安装驱动程序命令devcon安装好WINDDK之后,devcon.exe在"C:\WINDDK\3790.1830\tools\devcon"目录下.>devcon up ...

  7. MySQL binlog导入失败

    一个同事问我,说他用innobackupex恢复数据后用mysqlbinlog导入增量数据时,发现数据没有导入进去并且也没有报错. mysqlbinlog /u01/mysql_py/database ...

  8. Axure RP 快速原型设计工具

       Axure RP是美国Axure Software Solution公司旗舰产品,是一个专业的快速原型设计工具,让负责定义需求和规格.设计功能和界面的专家能够快速创建应用软件或Web网站的线框图 ...

  9. wpf 自定义控件展开popup,点击popup之外的部分,popup不能自动关闭

    比如textbox点击展开popup,这样popup也是不能自动关闭的.可能是textbox获得了焦点. 可是使用textblock,或者ToggleButton来代替textbox点击展开popup ...

  10. java 代理 agency

    java并没有对其提供直接的支持,这是继承和组合的中庸之道,因为我们将一个成员对象置于所要构造的类中(组合),但与此同时我们在新类中暴露了该成员的所有方法(就像继承),使用代理时可以拥有更多的控制力, ...