///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. [Everyday Mathematics]20150104

    设 $a>0$, $$\bex x_1=1,\quad x_{n+1}=x_n+an\prod_{i=1}^n x_i^{-\frac{1}{n}}. \eex$$ 试证: $$\bex \vl ...

  2. Cadence关闭StartPage的方法

    Cadence 16.5开始,打开原理图工具 Orcad Capture 时,总是会弹出startpage 页面,关闭它的方法: 解决方法如下: (1) View---Toolbar----Comma ...

  3. HTML5的manifest缓存

    要使用manifest缓存,我们首先需要写一个manifest文件.这个文件有严格的格式要求,下面是个例子CACHE MANIFEST#我是注释,这个文件名叫test.manifestCACHE:/t ...

  4. sensor BMA250源代码执行分析

    重力传感器是根据压电效应的原理来工作的.   所谓的压电效应就是 “对于不存在对称中心的异极晶体加在晶体上的外力除了使晶体发生形变以外,还将改变晶体的极化状态,在晶体内部建立电场,这种由于机械力作用使 ...

  5. mybatis系列-10-一对一查询

    10.1     需求 查询订单信息,关联查询创建订单的用户信息 10.2     resultType 10.2.1      sql语句 确定查询的主表:订单表 确定查询的关联表:用户表 关联查询 ...

  6. 【转】Maven实战(八)---模块划分

    本博文出自于:http://blog.csdn.net/liutengteng130/article/details/47000217    感谢! 为了防止传递依赖,我们各个模块之间尽量用直接依赖的 ...

  7. html5+css3中的background: -moz-linear-gradient 用法

    在CSS中background: -moz-linear-gradient 让网站背景渐变的属性,目前火狐3.6以上版本和google浏览器支持这个属性. background: -moz-linea ...

  8. ViewPager使用笔记

    1.ViewPager.setCurrentItem(position),即使已设置动画,但是没有动画效果 原因:因为ViewPager滑动之前的时间间隔太短,可以通过反射,去修改ViewPager自 ...

  9. ocp 1Z0-047 61-130题解析

    61. Evaluate the following SQL statements that are issued in the given order:CREATE TABLE emp(emp_no ...

  10. Spring MVC ControllerClassNameHandlerMapping example

    handler mapping是把url跟控制器关联起来. In Spring MVC, ControllerClassNameHandlerMapping use convention to map ...