亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? web.pas

?? Delphi編寫的一個支持語法高亮顯示和很多語言的文本編輯器
?? PAS
?? 第 1 頁 / 共 3 頁
字號:

procedure TWeb.BeforeNavigate2(Sender: TObject;
   const pDisp: IDispatch;var URL: OleVariant;var Flags: OleVariant;var TargetFrameName:OleVariant;var PostData: OleVariant;
   var Headers: OleVariant;var Cancel: WordBool);
begin
{  if SuperMemoURL(URL) then begin {cancel the link if it uses an internal SuperMemo protocol}{SMSpecific}
{     Cancel:=true;
     LastHyperlink:='';
     exit;
     end;}
end;

procedure TWeb.SelectAll;
begin
//  SetSelection(0,MaxTextLength);
end;

procedure TWeb.NavigateComplete2(Sender: TObject;const pDisp: IDispatch; var URL: OleVariant);
begin
  CompleteLoading;
end;

procedure TWeb.CompleteLoading;
begin
  Waitload(false); {used only to set up interface variables}
  SetBorderWidth;
  if ReadOnly then
     exit;
  if TheDoc=nil then
     exit;
  DefineEvents;
  {do not use Modified:=false here as navigation might go from an edited page to a hyperlinked page}
end;

procedure TWeb.SetHTMLText(Html:WideString); {after this command, Copy and Paste will not work}
var V:OleVariant;
begin
   try
      Stop;
      V:=Document;
      V.Open;
      V.Clear;
      V.Write(Html);
      V.Close;
      Modified:=true;
   except
//      on E:Exception do EError('Error setting HTML text',E);
     end;
end;

function TWeb.CompNo:byte;
begin
  Result:=byte(Tag);
end;

function TWeb.Visible;
begin
  Result:=true;
//  Result:=TWinControl(ElementWindow.ElWind.Objects[CompNo]).Visible;
end;

function TWeb.GetBackgroundColor:TColor;
var Background:OleVariant;
    vt:TVarType;
begin
  Result:=clWindow;
  try
     if TheDoc=nil then
        exit;
     if not Visible then {SMSpecific:}{to avoid errors on Ctrl+T before Show Answer}{Nov 8, 2001}
        exit;
     Background:=TheDoc.queryCommandValue('BackColor');
     vt:=varType(Background);
     if vt<>varNull then
        Result:=Background;
  except
//    on E:Exception do EError('Error retrieving background color',E);
    end;
end;

procedure TWeb.GetFont(var AFont:TFont);
var FontName,FontSize,FontColor:OleVariant;
    vt:TVarType;
begin
  try
     if TheDoc=nil then
        exit;
     {name}
     FontName:=TheDoc.queryCommandValue('FontName');
     vt:=varType(FontName);
     if vt<>varNull then
        AFont.Name:=FontName
     else
//        AFont.Name:=Database.DefaultFont.Name;
     {size}
     FontSize:=TheDoc.queryCommandValue('FontSize');
     vt:=varType(FontSize);
     if vt<>varNull then
        AFont.Size:=FontSize*FontScale
     else
//        AFont.Size:=Database.DefaultFont.Size;
     {color}
     FontColor:=TheDoc.queryCommandValue('ForeColor');
     vt:=varType(FontColor);
     if vt<>varNull then
        AFont.Color:=FontColor
     else
//        AFont.Color:=Database.DefaultFont.Color;
     {style}
     AFont.Style:=[];
     {bold}
     if TheDoc.queryCommandValue('Bold') then
        AFont.Style:=AFont.Style+[fsBold];
     {italic}
     if TheDoc.queryCommandValue('Italic') then
        AFont.Style:=AFont.Style+[fsItalic];
     {underline}
     if TheDoc.queryCommandValue('Underline') then
        AFont.Style:=AFont.Style+[fsUnderline];
  except
//    on E:Exception do EError('Error detecing HTML font',E);
    end;
end;

procedure TWeb.Find;
const HTMLID_FIND=1;
var vaIn,vaOut:OleVariant;
begin
  if WebCmd=nil then
     exit;
  WebCmd.Exec(PtrWGUID,HTMLID_FIND,0,vaIn,vaOut); {this command is not guaranteed to work in future versions of IE!}
end;

function TWeb.OnKeyPress(Sender:TObject):WordBool;
begin {must be defined empty for the keyboard to work correctly}
  Modified:=true;
  Result:=true;
end;

function TWeb.OnContextMenu(Sender:TObject):WordBool;
var APoint:TPoint;
begin
  Result:=true;
{  if AccessMode<amFull then
     exit;
  if SM8Main.IsSimplified then
     exit;
  if not SuperMemoMenu then
     exit;
  Result:=false;
  if TheParent<>ElementWindow.ElWind then
     exit;
  if TheDoc=nil then
     exit;
  if TheDoc.body=nil then
     exit;
  if Extrinsic then
     exit;
  if ReadOnly then
     exit;
  if TheWind=nil then
     exit;
  if TheWind.Event=nil then
     exit;}
  GetCursorPos(APoint);
//  ElementWindow.ElWind.CurrentComponent:=CompNo;
//  ElementWindow.ElWind.ComponentMenu.PopUp(APoint.X,APoint.Y);
end;

procedure TWeb.SetText(HTML:string);
begin
  if (TheDoc=nil)or(TheDoc.body=nil) then
     SetHTMLText(HTML)
  else
     TheDoc.body.innerHTML:=HTML;
end;

procedure TWeb.DefineEvents;
begin
//  if IEVer<5.5 then {if Internet Explorer older than 5.5 then ignore events}
 {    exit;
  if Events<>nil then
     Events.Free;
  Events:=TMSHTMLHTMLDocumentEvents.Create(Self);
  Events.Connect(IUnknown(Document));
  Events.OnMouseDown:=OnMouseDown;
  Events.OnMouseUp:=OnMouseUp;
  Events.OnMouseMove:=OnMouseMove;
  Events.OnMouseOver:=OnMouseOver;
  Events.OnMouseOut:=OnMouseOut;
  Events.OnClick:=OnClick;
  Events.OnSelectStart:=OnSelectStart;
  Events.OnKeyPress:=OnKeyPress;
  Events.OnKeyDown:=OnKeyDown;
  Events.OnKeyUp:=OnKeyUp;
  Events.OnContextMenu:=OnContextMenu;
  Events.OnFocusOut:=OnFocusOut;
  Events.OnFocusIn:=OnFocusIn;}
end;

procedure TWeb.Paste;
begin
  if TheDoc=nil then
     exit;
  TheDoc.ExecCommand('Paste',false,0);
  Modified:=true;
  _Filter:=true;
end;

procedure TWeb.Delete;
begin
  if TheDoc=nil then
     exit;
  TheDoc.ExecCommand('Delete',false,0);
  Modified:=true;
  _Filter:=true;
end;

procedure TWeb.Cut;
begin
  Copy;
  Delete;
end;

procedure TWeb.SetFocus;
begin
  try
    if TheDoc=nil then
       exit;
    SendMessage(Handle,wm_Activate,1,0);
    if TheWind<>nil then
       TheWind.Focus; {TheWind.Focus must come before TWeb.SetFocus}
    if TheParent.Visible then {Parenting window hosting web browser}
       if Visible then
          if CanFocus then
             inherited SetFocus; {must come AFTER TheWind.Focus}
  except
//    on E:Exception do EError('Error setting focus on HTML component',E);
    end;
end;

function TWeb.HyperlinkClicked:boolean;
var Element:IHTMLElement;
begin
  Result:=false;
  LastHyperlink:='';
  if TheWind.Event=nil then
     exit;
  Element:=TheWind.Event.srcElement;
  repeat
    if Element.tagName='A' then begin
       LastHyperlink:=Element.getAttribute('href',0);
       if LastHyperlink<>'' then begin
          Result:=TheWind.Event.Button=1; {Button=1 is the left mouse button}
          exit;
          end;
       end;
    if Element<>nil then
       Element:=Element.ParentElement;
    until Element=nil;
end;

procedure TWeb.SetScrollTop(ScrollTop:integer);
begin
  if TheDoc=nil then
     exit;
  if TheWind=nil then
     exit;
  TheWind.scrollTo(0,ScrollTop);
end;

procedure TWeb.Subscript;
begin
  if TheDoc=nil then
     exit;
  TheDoc.execCommand('Subscript',False,0);
  Modified:=true;
end;

procedure TWeb.Superscript;
begin
  if TheDoc=nil then
     exit;
  TheDoc.execCommand('Superscript',False,0);
  Modified:=true;
end;

procedure TWeb.ProcessLoadMessages;
var msg:TMsg;
    OldElementNo:integer;
    MessageQueue:array of TMsg;
    m:integer;
begin
//  OldElementNo:=ElementWindow.ElWind.TheElement;
  while PeekMessage(msg,0,wm_KeyFirst,wm_KeyLast,pm_Remove) do; {remove keyboard input first}
  while PeekMessage(msg,0,wm_MouseFirst,wm_MouseLast,pm_Remove) do; {remove mouse input}
  while PeekMessage(msg,0,wm_Close,wm_Close,pm_Remove) do; {disallow closing the application}
  while PeekMessage(msg,0,wm_ActivateApp,wm_ActivateApp,pm_Remove) do; {disallow activating the application}
//  while PeekMessage(msg,0,wm_User,cm_LastUserMessage,pm_Remove) do begin
        SetLength(MessageQueue,length(MessageQueue)+1);
        MessageQueue[length(MessageQueue)-1]:=msg;
        end;
//  forms.Application.ProcessMessages; {process messages needed to complete navigation}
{  for m:=1 to length(MessageQueue) do begin
      msg:=MessageQueue[m-1];
      PostMessage(msg.hwnd,msg.message,msg.wParam,msg.lParam);
      end;}
//  if ElementWindow.ElWind.TheElement<>OldElementNo then
//     Error('Element changed while loading HTML'+nl+
//           'Loading: '+ElementStr(OldElementNo)+nl+
 //          'Changed to: '+ElementStr(ElementWindow.ElWind.TheElement));
//end;

function TWeb.SaveFile(Filename:string):boolean;
var Source:string;
begin
  Result:=false;
  try
     Modified:=false;
     Source:=SourceText;
     if pos('&#',Source)=0 then
        if pos('<',Source)=0 then
           if pos('>',Source)=0 then begin
              Result:=false; {do not save plain text into the file}
              exit;
              end;
//     WriteStringToTXTFile(FileName,Source);
     Result:=true;
  except
//    on Exception do Error('Error writing to "'+Filename+'"');
    end;
end;

function TWeb.SourceText:string;
var WS:WideString;
    ch:WideChar;
    n:integer;
    w:word;
    s:string;
begin
  Result:='';
  if TheDoc=nil then
     exit;
  WS:=TheDoc.body.innerHTML;
  for n:=1 to length(WS) do begin
      ch:=WS[n];
      w:=word(ch);
      if w>255 then begin
         s:=IntToStr(w);
         s:='&#'+s+';';
         end
      else
         s:=ch;
      Result:=Result+s;
      end;
end;

function TWeb.Text:string;
var WS:WideString;
    ch:WideChar;
    n:integer;
    w:word;
    s:string;
begin
  Result:='';
  if TheDoc=nil then
     exit;
  WS:=TheDoc.body.innerText;
  for n:=1 to length(WS) do begin
      ch:=WS[n];
      w:=word(ch);
      if w>255 then begin
         w:=(w mod 256)+48;
         s:=IntToStr(w);
         s:=char(w);
         end
      else
         s:=ch;
      Result:=Result+s;
      end;
end;

procedure TWeb.ClickPoint(X,Y:integer);
var TextRange:IHtmlTxtRange;
begin
  try
     TextRange:=GetTextRange;
     if TextRange=nil then
        exit;
     TextRange.MoveToPoint(X,Y);
     TextRange.Select;
  except
//    on E:Exception do EError('Error processing mouse click',E);
    end;
end;

procedure TWeb.WaitLoad(peek:boolean);
begin
  try
     TheDoc:=Document as IHTMLDocument2;
     while TheDoc=nil do begin
        if peek then
           ProcessLoadMessages
        else
           exit;
        TheDoc:=Document as IHTMLDocument2;
        end;

     repeat
        ControlInterface.QueryInterface(IID_IOleCommandTarget,WebCmd);
        until WebCmd<>nil;

     repeat
        TheDoc.QueryInterface(IOleCommandTarget,DocCmd);
        until DocCmd<>nil;

     repeat
        TheWind:=TheDoc.parentWindow;
        until TheWind<>nil;

     while (TheDoc=nil)or((theDoc.ReadyState<>'complete')and(theDoc.ReadyState<>'interactive')) do begin
        {remove messages that should not be processed while the element is loading}
        {TheDoc can become nil when switching applications!}
        if TheDoc=nil then
           MessageBeep(0); {this beep is sounded while page is loading while SuperMemo is no longer in forefront}
        if peek then
           ProcessLoadMessages
        else
           exit;
        end;

  except
//       on E:Exception do EError('Error loading the document',E);
    end;
end;

procedure TWeb.SetSelection(Start,Length:integer);
var TextRange:IHtmlTxtRange;
begin
  try
     if TheDoc=nil then
        exit;
     TheDoc.Selection.Empty;
     TextRange:=GetTextRange;
     if TextRange=nil then
        exit;
     TextRange.collapse(true);
//     l:=TextRange.moveEnd('character',Start+Length);
//     l:=TextRange.moveStart('character',Start);
     TextRange.select;
  except
//    on E:Exception do EError('Error setting HTML selection'+nl+
//                             'Start='+IntToStr(Start)+nl+
 //                            'Length='+IntToStr(Length),E);
    end;
end;

procedure TWeb.SuperMemoMessageHandler(var Msg: TMsg; var Handled: Boolean);
{this message handler is vital to enable accelerators, Del, Backspace and other keys}
var iOIPAO: IOleInPlaceActiveObject;
    Dispatch: IDispatch;
begin
  Handled:=false;
  if msg.message=wm_SysChar then begin
//     SendMessage(ElementWindow.ElWind.Handle,Msg.message,Msg.wparam,Msg.lParam); {Nov 17, 2001}{to enable the main menu}
     Handled:=true;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99国产欧美另类久久久精品| 国产成人午夜视频| 欧美午夜寂寞影院| 亚洲电影你懂得| 欧美一区二区久久| 国内精品国产三级国产a久久| 久久综合成人精品亚洲另类欧美| 国产成人啪午夜精品网站男同| 国产欧美日韩亚州综合 | 亚洲柠檬福利资源导航| 色综合咪咪久久| 亚洲激情中文1区| 在线综合+亚洲+欧美中文字幕| 狠狠色狠狠色合久久伊人| 国产欧美精品日韩区二区麻豆天美| 91小视频免费看| 日韩成人一级片| 国产区在线观看成人精品 | 国产亚洲精品bt天堂精选| www.欧美.com| 调教+趴+乳夹+国产+精品| 久久综合一区二区| 91美女片黄在线观看| 久久国产福利国产秒拍| 椎名由奈av一区二区三区| 91麻豆精品国产自产在线观看一区| 国产精品夜夜爽| 亚洲小少妇裸体bbw| 国产视频一区在线观看| 欧美日韩亚洲丝袜制服| 国产乱妇无码大片在线观看| 亚洲午夜成aⅴ人片| 久久久亚洲高清| 欧美精品三级在线观看| 成人免费视频视频在线观看免费| 亚洲 欧美综合在线网络| 欧美国产一区二区| 精品免费国产二区三区| 欧美日韩一区二区三区视频| 成人国产精品免费观看视频| 国产一区二区三区四| 一区二区三区欧美亚洲| 久久九九国产精品| 欧美丰满一区二区免费视频| 99re6这里只有精品视频在线观看| 看电影不卡的网站| 亚洲一区免费观看| **性色生活片久久毛片| 久久嫩草精品久久久精品| 91.成人天堂一区| 色综合视频在线观看| 国产成人99久久亚洲综合精品| 首页国产欧美日韩丝袜| 亚洲精品菠萝久久久久久久| 中文幕一区二区三区久久蜜桃| 日韩欧美亚洲国产另类| 欧美日韩中文另类| 一本色道久久综合亚洲91| 成人性生交大片免费看视频在线| 狂野欧美性猛交blacked| 日韩中文欧美在线| 亚洲一二三区不卡| 一区二区三区日韩欧美| 亚洲欧美日韩一区| ...av二区三区久久精品| 国产精品人成在线观看免费 | 欧美激情一区三区| xfplay精品久久| ww亚洲ww在线观看国产| 久久综合九色综合97婷婷女人 | 欧美在线色视频| 色综合天天视频在线观看| 97久久人人超碰| 97se亚洲国产综合自在线不卡| 国产成人av电影在线播放| 国产精品自拍在线| 国产成人精品免费| 99精品视频一区二区| 成人黄色电影在线| 91老师国产黑色丝袜在线| 91在线免费视频观看| 91丨九色丨国产丨porny| 99在线热播精品免费| 色域天天综合网| 欧美日韩国产综合草草| 日韩欧美中文字幕一区| 亚洲精品一线二线三线| 国产无遮挡一区二区三区毛片日本| wwwwww.欧美系列| 欧美国产欧美亚州国产日韩mv天天看完整| 久久综合九色综合欧美98| 国产精品视频yy9299一区| 亚洲女人****多毛耸耸8| 亚洲国产日日夜夜| 久久99精品一区二区三区三区| 国内成人自拍视频| 成人a级免费电影| 欧美视频三区在线播放| 国产精品无圣光一区二区| 国产精品―色哟哟| 亚洲mv在线观看| 美腿丝袜在线亚洲一区| 国产成人午夜电影网| 在线观看欧美日本| 精品国产亚洲在线| 亚洲私人影院在线观看| 爽好久久久欧美精品| 国产成人精品免费| 欧美视频完全免费看| 亚洲精品在线免费观看视频| 国产精品久久久久久久久果冻传媒| 一区二区三区在线免费视频| 日韩av网站免费在线| 成人av网站在线| 欧美日韩久久久一区| 日本一区二区三区四区在线视频 | 欧美日本韩国一区二区三区视频| 精品国产乱码久久久久久免费| 国产精品国产三级国产普通话99 | 欧美电影一区二区| 国产精品情趣视频| 日韩电影一区二区三区| eeuss国产一区二区三区| 91精品婷婷国产综合久久竹菊| 国产日韩欧美电影| 蜜桃视频免费观看一区| 91麻豆文化传媒在线观看| 精品毛片乱码1区2区3区| 一区二区三区不卡在线观看| 国产精品一区二区免费不卡 | 日本久久一区二区三区| 日韩精品一区二区三区蜜臀| 亚洲一区二区三区自拍| 成人动漫一区二区三区| 日韩美女天天操| 亚洲成a人v欧美综合天堂| 91亚洲永久精品| 国产日韩欧美精品电影三级在线| 欧美a一区二区| 欧美主播一区二区三区| 中文字幕制服丝袜一区二区三区 | 亚洲一二三区在线观看| 99视频一区二区| 国产视频一区不卡| 91丝袜呻吟高潮美腿白嫩在线观看| 精品久久久久久综合日本欧美| 日韩中文字幕亚洲一区二区va在线| 91蜜桃传媒精品久久久一区二区| 国产欧美日产一区| 国产在线精品视频| 精品久久久久久亚洲综合网| 日本一不卡视频| 欧美精品粉嫩高潮一区二区| 一区二区三区四区视频精品免费| thepron国产精品| 国产精品污污网站在线观看| 久久99精品久久久久久国产越南 | 欧美日本在线视频| 亚洲一区在线看| 欧美视频中文字幕| 亚洲国产精品精华液网站| 色婷婷久久99综合精品jk白丝| 国产精品网站在线播放| 粉嫩av一区二区三区粉嫩| 久久精品视频一区二区三区| 老司机午夜精品99久久| 精品久久久久久无| 国产做a爰片久久毛片| 亚洲精品在线免费观看视频| 国产麻豆视频一区| 国产天堂亚洲国产碰碰| 成人激情黄色小说| 亚洲精品国产第一综合99久久| 色婷婷av一区二区三区之一色屋| 一区2区3区在线看| 欧美日韩一区二区三区四区 | 久久女同性恋中文字幕| 看电视剧不卡顿的网站| 精品国产乱码久久久久久图片 | 中文字幕欧美一| 色悠悠亚洲一区二区| 午夜激情一区二区三区| 日韩欧美一二三| 国产河南妇女毛片精品久久久| 国产婷婷色一区二区三区在线| 成人激情综合网站| 一区二区在线电影| 欧美久久久久久久久| 久久精品国产一区二区| 国产清纯白嫩初高生在线观看91| 成人福利视频网站| 亚洲成人免费看| 日韩欧美视频在线| 国产·精品毛片| 一区二区三区免费在线观看| 7777精品伊人久久久大香线蕉最新版| 久久99深爱久久99精品| 国产亚洲精品7777| 日本二三区不卡| 久久精品999|