> Are there declares that can be made (like on the Mac)
> to handle the Back and Forward functions on Windows?
> If there are not, is there an alternative that can
> provide me a solution?
1) To your project, add an ActiveX component
Component name "Microsoft Web Browser"
Program ID or Class ID "Shell.Explorer"
This adds the ActiveX component to the Project List.
2) Place the component on your window.
3) Add these commands where appropriate:
WebBrowser1.Navigate2 "http://www.yourwebsite.com"
WebBrowser1.GoForward
WebBrowser1.GoBack
WebBrowser1.GoHome
WebBrowser1.GoSearch
....of course there are other commands. Many, if not all, show up in the RB
auto-complete list.
You will have to handle/avoid OLEExceptions. For instance, if you try to
move forward and there is no page to move forward to, you will get an
OLEException. Does it keep track of the history? I have no idea.
I've only tested this on XPSP2, MSIE 6.0. I'm also not sure that this is
optimized code as I was just playing around.
I might also note that, if I remember correctly, it suffers from some of the
drawing issues of the RB HTMLViewer. Also, I remember having some funkiness
with RB5.5 when trying to use this, but I got it working. Unfortunately, I
can't remember the specifics.
So, what if you only have the Mac version of the IDE? I don't know for
sure, but my guess is that this won't work.
HTH
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|