TIWLabel    // TIWLink      //内部链接 TIWURL      //外部链接 TIWURLWindow //页内框架, 就是 <iframe></iframe> 

TIWLabel所在单元及继承链:
IWCompLabel.TIWLabel < TIWCustomLabel < TIWCustomControl < TIWBaseHTMLControl < TIWBaseControl < TIWVCLBaseControl < TControl < TComponent < TPersistent < TObject

主要成员:



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 < TIWLinkBase < TIWCustomControl < TIWBaseHTMLControl < TIWBaseControl < TIWVCLBaseControl < TControl < TComponent < TPersistent < TObject

主要成员:



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 < TIWLinkBase < TIWCustomControl < TIWBaseHTMLControl < TIWBaseControl < TIWVCLBaseControl < TControl < TComponent < TPersistent < TObject

主要成员:



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 < TIWCustomControl < TIWBaseHTMLControl < TIWBaseControl < TIWVCLBaseControl < TControl < TComponent < TPersistent < TObject

主要成员:



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; 

转载于:https://www.cnblogs.com/martian6125/p/9630982.html

使用 IntraWeb (13) - 基本控件之 TIWLabel、TIWLink、TIWURL、TIWURLWindow相关推荐

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

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

  2. 【iapp】13.图像控件的使用

    13.图像控件的使用 1.下载素材. 公众号内可以查看视频介绍,介绍得更详细. 2.添加图像控件. 3.修改显示的图片. 4.选择图片. 选择后会自动填上图片路径 5.效果图. 6.图像控件的属性跟文 ...

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

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

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

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

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

    为什么80%的码农都做不了架构师?>>>    TIWAutherList //通过一组户名与密码验证登陆 TIWAutherINI //通过记录户名与密码信息的 #Auth.ini ...

  6. 使用 IntraWeb (12) - 基本控件之 TIWGradButton、TIWImageButton

    TIWGradButton.TIWImageButton 分别是有颜色梯度变化按钮和图像按钮. TIWGradButton 所在单元及继承链: IWCompGradButton.TIWGradButt ...

  7. 使用 IntraWeb (41) - 数据控件速查

    TIWDBCheckBox 所在单元及继承链: IWDBStdCtrls.TIWDBCheckBox < TIWCustomCheckBox < TIWCustomControl < ...

  8. ASP.NET自定义控件组件开发 第四章 组合控件开发CompositeControl

    第四章 组合控件开发CompositeControl 大家好,今天我们来实现一个自定义的控件,之前我们已经知道了,要开发自定义的控件一般继承三个基 类:Control,WebControl,还有一个就 ...

  9. c# imager让图片有圆角unity_Qt编写自定义控件24-图片轮播控件

    一.前言 上一篇文章写的广告轮播控件,采用的传统widget堆积设置样式表做的,这次必须要用到更高级的QPainter来绘制了,这个才是最高效的办法,本控件参考雨田哥的轮播控件,经过大规模的改造而成, ...

最新文章

  1. ldd查看可执行程序的依赖库
  2. git 基础教程总结
  3. Python Django related_name属性使用示例
  4. Python: tkinter实例改名小工具
  5. azkaban安装编译3.86 教程
  6. 从0到1,从概念到国际标准,蚂蚁共享智能凭什么?
  7. asterisk1.8 for mipsel mysql
  8. java第三次实验作业
  9. 我正在运行哪个版本的PostgreSQL?
  10. 什么叫做展望_开学季:有一种爱, 叫做爸妈给你塞的行李箱!(附大学新生行李箱应怎么选?)...
  11. MySQ学习笔记之十 NULL值处理
  12. V360i手机相关软件全面介绍(附下载)
  13. Financial knowledge
  14. 一些广州音字的输入方法
  15. CENTOS5.5下使用Roundcube搭建 Webmail
  16. Excel文本日期格式转为日期格式的方法
  17. angular中copy和extend用法实例
  18. 解决ZooKeeper配置中出现Error contacting service. It is probably not running.
  19. Java面向对象之简单项目制作(DVD管理系统)
  20. java汉字转换为拼音首字母

热门文章

  1. kylin与superset整合
  2. ST:看物联网老兵的平台化战略雄心
  3. NOIp #2011
  4. 触摸板库tslib的编译和配置
  5. 性能测试工具MultiMechanize的使用介绍
  6. mysql事务,START TRANSACTION, COMMIT和ROLLBACK,SET AUTOCOMMIT语法
  7. 如何在一年内拥有十年的工作经验(值得你反复读5遍以上)
  8. ScalaTest学习笔记(一)
  9. 【知识小课堂】 mongodb 之 objectId
  10. Android studio 混淆打包 proguard-rules.pro 与 bulid.gradle 配置总结