BBC BASIC for Windows
Programming >> BBC BASIC language >> ATL
http://bb4w.conforums.com/index.cgi?board=language&action=display&num=1301127326

ATL
Post by ATL on Mar 26th, 2011, 08:15am

How would you go back/forward in a ATL Container Control?
Re: ATL
Post by admin on Mar 26th, 2011, 09:49am

on Mar 26th, 2011, 08:15am, Guest-ATL wrote:
How would you go back/forward in a ATL Container Control?

You would need to call the GoBack and GoForward methods of the IWebBrowser2 COM automation (ActiveX) interface:

http://msdn.microsoft.com/en-us/library/aa752127.aspx

Once you've got an interface pointer you should be able to do this from BB4W using the COMLIB library.

If you need more help, ask again.

Richard.

Re: ATL
Post by AT on Mar 26th, 2011, 11:06am

Thanks Richard wink
Re: ATL
Post by ATL on Mar 26th, 2011, 1:13pm

By the way, is there an example program?
Re: ATL
Post by admin on Mar 27th, 2011, 10:14am

on Mar 26th, 2011, 1:13pm, Guest-ATL wrote:
By the way, is there an example program?

Sadly, I can't make it work. I've got an example program that accepts the GoHome method correctly, and navigates to the start page without problems. However both GoBack and GoForward crash it, and I haven't the foggiest idea why.

Richard.

Re: ATL
Post by ATL on Apr 8th, 2011, 3:20pm

Oh dear... huh