pb 怎样用网页做导航界面解决思路

pb 怎样用网页做导航界面
pb 怎样用网页做导航界面

------解决方案--------------------
在pb的某窗口中加入OLE对象,选择Insert control(插入控件),然后选中"Microsoft WEB 浏览器",(随系统而定的版本),就可以在这个窗口直接使用IE浏览器控件了。

常用函数:(对这个ole控件取名叫ole_web)
ole_web.object.navigate(string ls_url) file://浏览某url,可以是本地网页

在ole_web的clicked事件中写入下面的代码
string ls_tagName, ls_url
ls_tagName=this.object.document.activeElement.tagName

if upper(trim(ls_tagName))="A" then
ls_url=this.object.Document.activeElement.href
//根据点击的ls_url来判断是点的什么
end if

return 1
------解决方案--------------------
http://download.csdn.net/source/1957908

写了个简单的示例,楼主去下载吧~~
楼上的朋友,已经发到你邮箱了,