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 ...
随机推荐
- [android]如何让TextView使用超链接
找了很多网址,最后是这个有说到. 总的做法是: 1.(当然也可以从Res中获取.) tv.setText(Html.fromHtml("<a href=\"http://ww ...
- MySQL 5.6 复制:GTID 的优点和限制(第一部分)
全局事务标示符(Global Transactions Identifier)是MySQL 5.6复制的一个新特性.它为维护特定的复制拓扑结构下服务器的DBA们大幅度改善他们的工作状况提供了多种可能性 ...
- 字符集编码Unicode ,gb2312 cp936
这是一篇程序员写给程序员的趣味读物.所谓趣味是指可以比较轻松地了解一些原来不清楚的概念,增进知识,类似于打RPG游戏的升级.整理这篇文章的动机是两个问题: 问题一:使用Windows记事本的“另存为” ...
- codeforces 678D Iterated Linear Function 矩阵快速幂
矩阵快速幂的题要多做 由题可得 g[n]=A*g[n-1]+B 所以构造矩阵 { g[n] } = {A B} * { g[n-1]} { 1 } {0 1 ...
- Unity3d 基于物理渲染Physically-Based Rendering之specular BRDF
在实时渲染中Physically-Based Rendering(PBR)中文为基于物理的渲染它能为渲染的物体带来更真实的效果,而且能量守恒 稍微解释一下字母的意思,为对后文的理解有帮助,从右到左L为 ...
- bzoj 2555 SubString(SAM+LCT)
[题目链接] http://www.lydsy.com/JudgeOnline/problem.php?id=2555 [题意] 给定一个字符串,可以随时插入字符串,提供查询s在其中作为连续子串的出现 ...
- java 复习003 之排序篇
由java 复习003跳转过来的C语言实现版见some-sort-algorithms 快速排序(不稳定 O(n log n)) package vell.bibi.sort_algorithms; ...
- 运行时环境(The Runtime Environment)
App Engine应用响应网络请求.当一个客户端(典型的是用户的Web浏览器)使用HTTP请求(比如获取在URL上的网页)连接上应用的时候,网络请求就开始了.当App Engine接收到请求时,它会 ...
- 视频资源下载方法[download video resources]
笔者做视频时钟分析,需要用到大量特殊的视频,如何获取需要的视频是一个问题? 以下载NBA视频为例: Tools:①腾讯视频软件 (自行下载) ②批处理文件(下文会给出代码) convert.bat ...
- int.class与Integer.type的不同
int.class返回Integer的对象 Integer.type返回int对象