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. iOS-Socket编程体验

    CHENYILONG Blog Socket编程体验 Socket编程体验  技术博客http://www.cnblogs.com/ChenYilong/新浪微博http://weibo.com/lu ...

  2. HDU 1863 畅通工程 最下生成树问题

    题目描述:给出图,要你求是否存在最小生成树,如果存在,要求输出最小权值和,如果不存在,输出? 解题报告:又是一个最裸的克鲁斯卡尔,并且要判断是否存在最小生成树的问题.废话不多说,给个短代码: #inc ...

  3. C++单链表反转

    单链表反转笔记: #include<iostream> #include<string.h> using namespace std; struct ListNode { in ...

  4. mysql innobackupex 备份及恢复

    ----------------------------------全量备份恢复-------------------------------------1.生成一个完整的备份 innobackupe ...

  5. find中的-print0和xargs中-0的奥妙【转】

    find cygnus/firmware_cygnus/target/linux/brcm5830/files/arch/arm/mach-iproc/pm_iproc/ -name "*. ...

  6. MySQL5.7 GTID在线开启与关闭【转】

    当前场景   当前某些业务还有未开启GTID服务组,升级5.7后,如何检测是否符合开启GTID条件,如何在线修改切换使用GTID:已经升级5.7后,已经开启GTID,如何快速回滚后退: 线上gtid如 ...

  7. springcloud配置详解

    Spring Boot的配置参考Spring Boot系列文章,这里只对Spring Cloud用到的配置解释. spring.application.name:配置应用名称,在注册中心中显示的服务注 ...

  8. mysql innodb 行级锁升级

    创建数据表test,表定义如下所示: CREATE TABLE `test` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(20) NO ...

  9. redis配置文件redis.conf翻译、解释以及常用注意事项(持续更新中...)

    # Redis configuration file example. #Redis 配置文件的示例 #如何利用配置文件启动Redis # Note that in order to read the ...

  10. SOA 设计的 9 大原则

    面向服务的架构 (SOA) 设计要尽可能地简单.在设计一个 SOA 服务的时候要谨记这 9 大设计原则: 1. 标准服务契约 服务要遵循一个服务描述. 2. 松耦合 服务之间的依赖最小化. 3. 服务 ...