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

來源:互聯網
上載者:User

標籤:des   class   blog   http   tar   ext   


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;

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.