8288分类目录 8288分类目录 8288分类目录
  当前位置:海洋目录网 » 站长资讯 » 站长资讯 » 文章详细 订阅RssFeed

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

来源:本站原创 浏览:162次 时间:2021-09-14
使用 IntraWeb (13) - 基本控件之 TIWLabel、TIWLink、TIWURL、TIWURLWindow    


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


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 := '万一的 Delphi 博客';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 Bord���ó���,�������er: 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;



  推荐站点

  • At-lib分类目录At-lib分类目录

    At-lib网站分类目录汇集全国所有高质量网站,是中国权威的中文网站分类目录,给站长提供免费网址目录提交收录和推荐最新最全的优秀网站大全是名站导航之家

    www.at-lib.cn
  • 中国链接目录中国链接目录

    中国链接目录简称链接目录,是收录优秀网站和淘宝网店的网站分类目录,为您提供优质的网址导航服务,也是网店进行收录推广,站长免费推广网站、加快百度收录、增加友情链接和网站外链的平台。

    www.cnlink.org
  • 35目录网35目录网

    35目录免费收录各类优秀网站,全力打造互动式网站目录,提供网站分类目录检索,关键字搜索功能。欢迎您向35目录推荐、提交优秀网站。

    www.35mulu.com
  • 就要爱网站目录就要爱网站目录

    就要爱网站目录,按主题和类别列出网站。所有提交的网站都经过人工审查,确保质量和无垃圾邮件的结果。

    www.912219.com
  • 伍佰目录伍佰目录

    伍佰网站目录免费收录各类优秀网站,全力打造互动式网站目录,提供网站分类目录检索,关键字搜索功能。欢迎您向伍佰目录推荐、提交优秀网站。

    www.wbwb.net