///HTML组件
///后面的字符串为这个控件的ID号
///直线          Line         (WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertHorizontalRule', True,
'');
///按钮          Button      (WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertButton', True, '');
///复选框        CheckBox  (WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertInputCheckbox', True, '');
///单选框        Radio        (WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertInputRadio', True, '');
///编辑框        Edit        (WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertInputText', True, '');
///文本框        Memo        (WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertTextArea', True, '');
///密码框        PswEdit      (WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertInputPassword', True, '');
///组框架     GroupBox    (WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertIFrame', True, '');
///列表框        ListBox      (WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertSelectListbox', True, '');
///组合框        Combobox    (WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertSelectDropdown', True,
'');
{
InsertFieldset
InsertInputFileUpload
InsertInputHidden
InsertInputImage
InsertInputSubmit
InsertMarquee

}

procedure WB_InsertHorizontalRule();
begin
   (Form1.WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertHorizontalRule', True, '');
end;

procedure WB_InsertButton();
begin
   (Form1.WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertButton', True,
'');
end;

procedure WB_InsertCheckbox();
begin
   (Form1.WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertInputCheckbox',
True, '');
end;

procedure WB_InsertRadio();
begin
   (Form1.WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertInputRadio',
True, '');
end;

procedure WB_InsertInputText();
begin
   (Form1.WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertInputText',
True, '');
end;

procedure WB_InsertTextArea();
begin
   (Form1.WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertTextArea',
True, '');
end;

procedure WB_InsertInputPassword();
begin
   (Form1.WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertInputPassword',
True, '');
end;

procedure WB_InsertIFrame();
begin
   (Form1.WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertIFrame', True,
'');
end;

procedure WB_InsertSelectListbox();
begin
   (Form1.WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertSelectListbox',
True, '');
end;

procedure WB_InsertSelectDropdown();
begin
   (Form1.WebBrowser1.Document
as IHTMLDocument2).execCommand('InsertSelectDropdown', True, '');
end;

a

delphi 08 HTML组件的更多相关文章

  1. Delphi 利用TComm组件 Spcomm 实现串行通信

    Delphi 利用TComm组件 Spcomm 实现串行通信 摘要:利用Delphi开发工业控制系统软件成为越来越多的开发人员的选择,而串口通信是这个过程中必须解决的问题之一.本文在对几种常用串口通信 ...

  2. Delphi各种Socket组件的模式和模型

    Delphi各种Socket组件的模式和模型 Delphi的大多数书籍里面都没有提到delphi的各种socket通信组件的模式和模型,有的书只讲解了windows的socket模式和模型,并没有归纳 ...

  3. 转:Delphi各种Socket组件的模式和模型

    Delphi的大多数书籍里面都没有提到delphi的各种socket通信组件的模式和模型,有的书只讲解了windows的socket模式和模型,并没有归纳各种组件采用的模型,所以我们的程序员并不知道如 ...

  4. Delphi的VCL组件库

    Visual Component Library的缩写(可视组件库)VCL是Visual Component Library的缩写,即可视组件库,它是Delphi,C++Builder等编程语言的基本 ...

  5. Delphi动态创建组件,并释放内存

    开发所用delphi版本是xe2,效果图如下: 代码如下: ---------------------------------------------------------------------- ...

  6. Delphi HTML5 Canvas组件

    最近去sourceforge瞎转悠,突然发了一个组件,关于Delphi下Html5的canvas的组件,大概浏览了一下源码,竟然是纯粹的Pascal代码,也就说完全的Delphi代码.不敢独享,现在上 ...

  7. delphi 从 TWebbrowse组件中获取图片

    在 delphi 中使用 TWebbrowse 组件,虽然效率不如用(idhttp之类)模拟操作效率高.但其难度低,上手快,简单粗暴有效. 从网上搜到的处理此问题的文章大多是 ctrl + c 复制到 ...

  8. delphi+mysql做的图书管理系统,怎么把mysql数据库也一起打包进去?我用的是delphi的Express组件。

    sqlconnection,sqlquery1这些组件,我连接数据库的时候是用对象编辑器里的属性进行连接的,在sqlconnection中指定了字符集utf8,有些人做的方法是利用代码连接的数据库,如 ...

  9. Delphi 动态创建组件,单个创建、单个销毁

    效果图如下: 实现部分代码如下: var rec: Integer = 0; //记录增行按钮点击次数 implementation {$R *.dfm} //动态释放单个组件内存,即销毁组件 pro ...

随机推荐

  1. java 中的Exception RuntimeException 区别

    在java的异常类体系中: 1.Error和RuntimeException是非检查型异常,其他的都是检查型异常; 2.所有方法都可以在不声明throws的情况下抛出RuntimeException及 ...

  2. Android学习笔记一

    一.eclipse中的十大快捷键: 1. ctrl+shift+r:打开资源 这可能是所有快捷键组合中最省时间的了.这组快捷键可以让你打开你的工作区中任何一个文件,而你只需要按下文件名或mask名中的 ...

  3. 微信多媒体上传图片,创建卡券上传 LOGO

    //*****************************************多媒体上传图片 begin******************************************** ...

  4. Myeclipse8.5 svn插件安装两种方式

    第一种方式:(亲测成功)第一步:准备插件包:site-1.6.18.zip解压该包里面有features和plugins文件夹,删除该包里面的xml结尾的文件. 第二:我的Myeclipse8.5安装 ...

  5. OpenGL学习——基本概念和坐标变换

    基本概念 基本功能:几何图形.变换.着色.光照.贴图 高级功能:曲面图元.光栅操作.景深.shader编程   状态机 先设置状态参数:多边形.顶点列表.填充颜色.纹理.混合模式.坐标系 再调用绘图指 ...

  6. CentOS下编译安装hping3

    安装hping之前,先装上libpcap-dev和tcl-dev 1.获取源码包 wget http://www.hping.org/hping3-20051105.tar.gz 2.解压,得到 hp ...

  7. 读《编写高质量代码-Web前端开发修炼之道》笔记

    第一章 1.Web标准由一系列标准组合而成,核心理念是将网页的结构,样式和行为分离,所以分为三大部分:结构标准,样式标准和行为标准.结构标准包括XML标准,XHTML标准,HTML标准:样式标准指CS ...

  8. Android版本判断

    尽管Android向下兼容不好,但是一个程序还是可以在多个平台上跑的.向下兼容不好,接口改变,新的平台上不能用旧的API,旧的平台更不可能用新的API,不等于一个平台需要一个APK.可以在高版本的SD ...

  9. C++多态分析(polymorphisn)

    前言 借着这次学校的生产实习来回顾下C++的多态,这里讨论下C++的多态以及实现原理.我都是在QT下使用C++的,就直接在QT下进行演示了 多态介绍 面向对象语言中最核心的几个理念就是:封装.继承.多 ...

  10. jsViews validates(验证)

          概述:jsViews使得前端开发过程将js代码与html分离,通过模板实现数据与html元素关联,通过绑定方法用数据填充模板,达到渲染html要素的目的.采用该方法后js文件中再也不会出现 ...