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 ...
随机推荐
- git push冲突解决
1. 首先,可以试图用git push origin branch-name推送自己的修改:2. 如果推送失败,则因为远程分支比你的本地更新,需要先用git pull试图合并:如果git pull提示 ...
- 不同语言的Unix时间戳
如何在不同编程语言中获取现在的Unix时间戳(Unix timestamp)? Java time JavaScript Math.round(new Date().getTime()/1000)ge ...
- SQL Server 2012安装时如何不安装自带的Visual Studio
不安装以下两个:
- 我们究竟什么时候可以使用Ehcache缓存
一.Ehcache是什么 EhCache是Hibernate的二级缓存技术之一,可以把查询出来的数据存储在内存或者磁盘,节省下次同样查询语句再次查询数据库,大幅减轻数据库压力. 二.Ehcache的使 ...
- 联通光纤上网配置+华为HG8240光猫+TL-WR842N
最近搬家改用北京联通宽带,光纤入户的那种.联通送的光猫是华为HG8240,没看到天线,应该是不带无线路由.然后自己再买了个TP-Link的TL-WR842N,用来组局域网,也供ipad.kindle. ...
- <译>Selenium Python Bindings 6 - WebDriver API
本章涉及Selenium WebDriver的所有接口. Recommended Import Style 推荐的导入风格如下: from selenium import webdriver 然后,你 ...
- Web Notification
在OS X 10.8 Mountain Lion系统上,通过Safari访问的页面能够发送通知到系统右边栏通知中心,通知(Notification)是通过WebKit Notification 对象发 ...
- data audit on hadoop fs
最近项目中遇到了存储在HDFS上的数据格式不对,是由于数据中带有\r\n的字符,程序处理的时候没有考虑到这些情况.历史数据大概有一年的时间,需要把错误的数据或者重复的数据给删除了,保留正确的数据,项目 ...
- 【Hadoop学习】HDFS 短路本地读
Hadoop版本:2.6.0 本文系从官方文档翻译而来,转载请尊重译者的工作,注明以下链接: http://www.cnblogs.com/zhangningbo/p/4146296.html 背景 ...
- [JLOI2013]地形生成
JLOI2013过了好长时间,才写第四题.. 第一问比较好想. 第二问我想到了n^3次方的做法,但是数据....于是没敢写,然后上网查了一下题解,居然是O(n^3)过的,数据这么弱... /* * P ...