delphi 08 HTML组件
///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组件的更多相关文章
- Delphi 利用TComm组件 Spcomm 实现串行通信
		Delphi 利用TComm组件 Spcomm 实现串行通信 摘要:利用Delphi开发工业控制系统软件成为越来越多的开发人员的选择,而串口通信是这个过程中必须解决的问题之一.本文在对几种常用串口通信 ... 
- Delphi各种Socket组件的模式和模型
		Delphi各种Socket组件的模式和模型 Delphi的大多数书籍里面都没有提到delphi的各种socket通信组件的模式和模型,有的书只讲解了windows的socket模式和模型,并没有归纳 ... 
- 转:Delphi各种Socket组件的模式和模型
		Delphi的大多数书籍里面都没有提到delphi的各种socket通信组件的模式和模型,有的书只讲解了windows的socket模式和模型,并没有归纳各种组件采用的模型,所以我们的程序员并不知道如 ... 
- Delphi的VCL组件库
		Visual Component Library的缩写(可视组件库)VCL是Visual Component Library的缩写,即可视组件库,它是Delphi,C++Builder等编程语言的基本 ... 
- Delphi动态创建组件,并释放内存
		开发所用delphi版本是xe2,效果图如下: 代码如下: ---------------------------------------------------------------------- ... 
- Delphi HTML5 Canvas组件
		最近去sourceforge瞎转悠,突然发了一个组件,关于Delphi下Html5的canvas的组件,大概浏览了一下源码,竟然是纯粹的Pascal代码,也就说完全的Delphi代码.不敢独享,现在上 ... 
- delphi 从 TWebbrowse组件中获取图片
		在 delphi 中使用 TWebbrowse 组件,虽然效率不如用(idhttp之类)模拟操作效率高.但其难度低,上手快,简单粗暴有效. 从网上搜到的处理此问题的文章大多是 ctrl + c 复制到 ... 
- delphi+mysql做的图书管理系统,怎么把mysql数据库也一起打包进去?我用的是delphi的Express组件。
		sqlconnection,sqlquery1这些组件,我连接数据库的时候是用对象编辑器里的属性进行连接的,在sqlconnection中指定了字符集utf8,有些人做的方法是利用代码连接的数据库,如 ... 
- Delphi 动态创建组件,单个创建、单个销毁
		效果图如下: 实现部分代码如下: var rec: Integer = 0; //记录增行按钮点击次数 implementation {$R *.dfm} //动态释放单个组件内存,即销毁组件 pro ... 
随机推荐
- 头痛的ASCII和preg_replace()
			说这个之前,大家先看下这条语句: preg_replace("/\<\?\=(\\\$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\[\]\"\'\$\x7f- ... 
- ecshop 二次开发及模板标签
			ecs_account_log // 用户账目日志表 ecs_activity // 活动表(代码,名称,开始,结束,描述) ecs_ad // 广告表(位置,类型,名称,链接,图片,开始,结 ... 
- angular+rails集成实战
			http://start.jcolemorrison.com/setting-up-an-angularjs-and-rails-4-1-project/ 1. 添加gemgem 'sprockets ... 
- 使用carrierwave出现MiniMagick::Invalid错误的解决方法
			安装Imagemagick不能从源码安装,要从软件市场安装,否则会出现错误:MiniMagick::Invalid 使用make uninstall卸载后,重新在软件市场里安装,问题解决. 
- SQL 2005 日志损坏的恢复方法
			SQL 在突然停电或者非正常关机下,可能会出现日期文件错误,导致数据库不正常.恢复数据库方法如下 1.数据库服务停掉 将数据库文件备份 例如数据库名为 DTMS 则将 DTMS.mdf 备份出来. 2 ... 
- MySQL auto_increment的坑
			背景: Innodb引擎使用B_tree结构保存表数据,这样就需要一个唯一键表示每一行记录(比如二级索引记录引用). Innodb表定义中处理主键的逻辑是: 1.如果表定义了主键,就使用主键唯一定位一 ... 
- Android中利用画图类和线程画出闪烁的心形
			本文讲解主要涉及的知识点: 1.线程控制 2.画图类 3.心形函数 大家先看图片: <ig ... 
- wireshark tcp 协议分析 z
			虽然知道wireshark是抓包神器,只会大概大概用一下,还用一下下tcpdump,略懂一点BPF过滤器,也知道一点怎么用 wirkshark过滤相关的报文,但是对于详细的字段的含义,如何查看TCP的 ... 
- MapReduce TopK统计加排序
			Hadoop技术内幕中指出Top K算法有两步,一是统计词频,二是找出词频最高的前K个词.在网上找了很多MapReduce的Top K案例,这些案例都只有排序功能,所以自己写了个案例. 这个案例分两个 ... 
- 使用logback.xml配置来实现日志文件输出
			转自:http://sungang-1120.iteye.com/blog/2104296 Logback是由log4j创始人设计的又一个开源日志组件.logback当前分成三个模块:logback- ... 
