| 网站首页 | 日常馆务 | 数据库 | 文摘库 | 光盘库 | 音视频库 | 软件库 | 图片中心 | 代查代检 | 留言 | 读者论坛 | 青岛馆 | 泰安馆 | 
您现在的位置: 图书馆 > 文摘库 > 编程技术 > DeLphi > 文章正文
专题栏目
更多内容
最新推荐 更多内容
相关文章
CSS滤镜:alpha属性
delphi+Oracle做的三层结
Delphi中资源文件使用详
Delphi中三种延时方法及
有关DELPHI 6.0 开发的三
[轉載]Delphi 修改 VCL 
关于delphi的socket的问
利用自定义事件实现不同
用Delphi制作以浏览器为
利用Delphi开发旅游景点
更多内容
delphi create Http link on your form         
delphi create Http link on your form
作者:admin 文章来源:不详 点击数:3587 更新时间:2006-8-8 13:34:28
There are at least 3 ways to create an http link on your form, i'll describe 2 of them here.
<--color="#DBDBD-->
 
<--nt-->Terms of Agreement:   
By using this article, you agree to the following terms...   
1) You may use this article in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this article (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this article from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the article or article's description.
First, you need to create a button/label/whatever, then you'll have this procedure...

procedure Tform1.Button1Click(Sender: TObject);
const
csOLEObjName = 'InternetExplorer.Application';
var
IE : Variant;
begin
IE := CreateOleObject( csOLEObjName );
IE.Visible := true;
IE.Navigate('http://www.mzsoft.cn);
end;

the unit that u'll need for this application should be automatically added to the Uses if not, just add Uses ComOBJ there but this only works if you have internet explorer installed.
the SECOND method should work regardless of your browser:

ShellExecute(0,'open','http://www.mzsoft.cn,'','',SW_SHOWNORMAL);

for this one, you'll need to have Uses ShellAPI
the third method, consists of simply downloading a component that has http link, and adding it to your form, but that's up to you to look for one
文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章: 没有了
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    山东科技大学济南校区图书馆 网 管:library-w