TWebBrowser 與 MSHTML(4): location、history、screen、navigator 對象的屬性與方法縱覽

{location 對象:}reload //重新載入當前文檔replace //用新的文檔替換當前文檔assign //載入新文檔href //設定或返回完整的 URLprotocol //設定或返回當前 URL 的協議host //設定或返回 # 號開始的 URL(錨)hostname //設定或返回當前 URL 的主機名稱port //設定或返回當前 URL 的連接埠號碼pathname //設定或返回當前 URL 的路徑部分search

總結與思考

雖是半路出家, 但也接觸了幾種程式設計語言(主要是 Delphi), 面對未知的程式語言也不再神秘了.所有這些語言, 最終都會編譯成另一種語言(二進位的機器碼)去和機器交流; 因為人們很難識別只有 0、1 構成的機器碼, 所以才有了彙編、彙編還是有點麻煩所以才有了 Delphi 等進階語言, 說起來進階語言已經不算難了.所謂某種語言的功能強大, 其實是 "庫" 的強大, 就像 Delphi 強大在 VCL 庫一樣.比 VCL 更強大的庫是 Windows API, 這好像不屬於 Delphi,

TWebBrowser 與 MSHTML(5): document 對象的屬性、方法、事件縱覽

{IHTMLDocument2 方法:}write //寫入writeln //寫入並換行open //開啟一個流,以收集 document.write 或 document.writeln 的輸出close //關閉並輸出用 document.open 方法開啟的流clear //清空文檔中所有元素,

查看記憶體資料的函數

unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; procedure Button1Click(Sender: TObject); procedure

使 SaveDialog 對話方塊的檔案名稱選擇變灰 – 回複 “delphan” 的問題

問題來源: http://www.cnblogs.com/del/archive/2009/03/18/1410030.html#1480550本例:代碼檔案:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton;

轉換 Byte 數組到 … – 回複 “高群” 的問題

問題來源: http://www.cnblogs.com/del/archive/2009/03/21/1410030.html#1483614{轉換 TBytes 到 Integer}procedure TForm1.Button1Click(Sender: TObject);var bs: TBytes; {TBytes 就是 Byte 的動態數組} i: Integer;begin {它應該和 Integer 一樣大小才適合轉換} SetLength(bs, 4); bs[0]

CompareDateTime、CompareDate、CompareTime、SameDateTime、SameDate、SameTime – 對比時間的函數

CompareDateTime、CompareDate、CompareTime 返回的是 -1、0、1;前者 = 後者: 返回 0;前者 > 後者: 返回 1;前者 SameDateTime、SameDate、SameTime 返回的是 True 和 False.unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs;type

從字串中提取單詞、從字串中提取漢字的函數

{從字串中提取單詞的函數}procedure StrToWordList(str: string; var List: TStringList);var p: PChar; i: Integer;begin if List = nil then List := TStringList.Create; List.Clear; {去除重複} List.Sorted := True; List.Duplicates := dupIgnore; p := PChar(str); {

DateOf、TimeOf、YearOf、MonthOf、WeekOf、DayOf、HourOf、MinuteOf、SecondOf、MilliSecondOf – 提取時間成分

它們的參數都是一個 TDateTime, DateOf、TimeOf 分別提取日期與時間, 並返回 TDateTime 類型;YearOf、MonthOf、WeekOf、DayOf、HourOf、MinuteOf、SecondOf、MilliSecondOf 返回的都是 Word 類型.unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,

如何比較兩個二維數組是否相等 – 回複 “阿拉丁” 的問題

一句話: 用 CompareMem 對比記憶體即可.{對比靜態數組}procedure TForm1.Button1Click(Sender: TObject);var arr1: array[0..3] of AnsiChar; arr2: array[0..3] of Byte;begin arr1[0] := 'A'; arr1[1] := 'B'; arr1[2] := 'C'; arr1[3] := 'D'; arr2[0] := 65; arr2[1] := 66;

把 Integer 數組儲存到檔案、並讀取

unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; procedure Button1Click(Sender: TObject); procedure

MonthOfTheYear、WeekOfTheYear、WeekOfTheMonth、DayOfTheYear … 相對時間

SysUtils.DayOfWeek();DateUtils.MonthOfTheYear();DateUtils.WeekOfTheYear();DateUtils.WeekOfTheMonth();DateUtils.NthDayOfWeek();DateUtils.DayOfTheYear();DateUtils.DayOfTheMonth();DateUtils.DayOfTheWeek();DateUtils.SysUtils.DayOfWeek();DateUtils.HourOfT

TWebBrowser 與 MSHTML(2): 擷取 window 對象的時機

這是在頁面下載完畢後即刻擷取:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OleCtrls, SHDocVw, StdCtrls;type TForm1 = class(TForm) WebBrowser1: TWebBrowser; Button1: TButton; Button2:

用一個 Byte 數表示 8 個複選框的選擇狀態

本例:代碼檔案:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, CheckLst;type TForm1 = class(TForm) CheckListBox1: TCheckListBox; Button1: TButton; Edit1: TEdit; procedure

WinApi: SystemParametersInfo

舉例: 更換案頭壁紙var BmpPath: PChar;begin BmpPath := 'C:\Temp\Test.bmp'; SystemParametersInfo(SPI_SETDESKWALLPAPER, 0, BmpPath, SPIF_UPDATEINIFILE);end;SystemParametersInfo 的參數實在太多了...SPI_GETBEEP = 1; {}SPI_SETBEEP

如何擷取圖片中第一個像素的顏色值? – 回複 “格蘭特” 的問題

問題來源: http://www.cnblogs.com/del/archive/2009/03/15/1410030.html#1477217unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton;

使用 TWebBrowser 編輯網頁

本例:代碼檔案:unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, OleCtrls, SHDocVw, StdCtrls, ExtCtrls;type TForm1 = class(TForm) WebBrowser1: TWebBrowser; Panel1: TPanel; Button1:

YearsBetween、MonthsBetween … YearSpan、MonthSpan … 間隔時間

DateUtils.YearsBetween();DateUtils.MonthsBetween();DateUtils.WeeksBetween();DateUtils.DaysBetween();DateUtils.HoursBetween();DateUtils.MinutesBetween();DateUtils.SecondsBetween();DateUtils.MilliSecondsBetween();DateUtils.YearSpan();DateUtils.MonthSpa

顯示 jpg、png、gif 圖片及 gif 動畫 – 回複 “格蘭特” 的問題

問題來源: http://www.cnblogs.com/del/archive/2009/03/15/1412384.html#1477470unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ExtCtrls;type TForm1 = class(TForm) Button1: TButton;

極快的正整數排序函數

實現原理: 對比二進位位.unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Memo1: TMemo; procedure Button1Click(Sender: TObject);

總頁數: 61357 1 .... 4759 4760 4761 4762 4763 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.