菜鸟问题,如何做点击网址进行网络链接 就是我在程序的关于里弄了一个网址,比如说http://expert.csdn.net/expert/forum.asp我怎么设置才能让鼠标移动到上面就变色?点击他就会到达这个网址?刚学DELPHI希望大家帮助,谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在onclick事件中:shellexecute(handle,nil,pchar('expert.csdn.net/expert/forum.asp'),nil,nil,sw_shownormal);在mousemove事件中:label1.Font.Style:=[fsbold,fsunderline];label1.Font.Color:=clyellow; procedure Tfrm_about.Label1Click(Sender: TObject);beginShellExecute(handle, 'open', 'http://www.sina.com',nil, nil, sw_ShowNormal);end; 对了,在uses中别忘加shellapi单元 对了,在uses中别忘加shellapi单元???在哪里加,怎么加……菜鸟刚学真的还什么都不会 unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs,shellapi; ~~~~~~~~~~type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);beginshellexecute(handle,nil,pchar('expert.csdn.net/expert/forum.asp'),nil,nil,sw_shownormal);end;end. 一个问题讲了这么多晕啊ShellExecute(0, 'open', 'http:\\pdc.csmud.com',nil, nil, sw_Show); ShellExecute(Handle,'open','mailto:[email protected]',nil,nil,SW_SHOWNORMAL);//发邮件ShellExecute(Handle,'open','http://duan.8u8.com',nil,nil,SW_SHOWNORMAL);//打开个人主页 use shellapi=========================ShellExecute(0, 'open', 'http:\\pdc.csmud.com',nil, nil, sw_Show); 呵呵,帮楼上纠正一个手误uses shellapi ~=========================ShellExecute(0, 'open', 'http:\\www.csdn.net',nil, nil, sw_Show); 还有一点,可以配合OnMouseMove等事件,改变字体的颜色,做得更像超连接一些。 vc转delphi问题 Postmessage不行 sendmessage可以 服务程序为啥不支持键盘输入 readfile的使用 求局域网自动update文件的小程序(源代码) Delphi登陆窗口的密码验证怎么写啊? 一个DLL如何调用另一个DLL中的FUNCION(VAR B:PCHAR):INTEGER 请问:win2k下我的exe执行时候老报告:a.exe错误,请重新启动。错误已经被记录日志中。如何修改让它显示错误在那个dll里面?(lk2000) DELPHI6不好用,经常打不开单元文件 如何判断鼠标左右建同时按下? 怎样设置DbGridEh的排序 如何画回归线?
shellexecute(handle,nil,pchar('expert.csdn.net/expert/forum.asp'),nil,nil,sw_shownormal);
在mousemove事件中:
label1.Font.Style:=[fsbold,fsunderline];
label1.Font.Color:=clyellow;
begin
ShellExecute(handle, 'open', 'http://www.sina.com',nil, nil, sw_ShowNormal);
end;
在哪里加,怎么加……菜鸟刚学真的还什么都不会
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs,shellapi;
~~~~~~~~~~type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
begin
shellexecute(handle,nil,pchar('expert.csdn.net/expert/forum.asp'),nil,nil,sw_shownormal);end;end.
ShellExecute(0, 'open', 'http:\\pdc.csmud.com',nil, nil, sw_Show);
//发邮件
ShellExecute(Handle,'open','http://duan.8u8.com',nil,nil,SW_SHOWNORMAL);
//打开个人主页
=========================ShellExecute(0, 'open', 'http:\\pdc.csmud.com',nil, nil, sw_Show);
uses shellapi
~
=========================
ShellExecute(0, 'open', 'http:\\www.csdn.net',nil, nil, sw_Show);