LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX WebBrowser update and auto-scroll in CVI

 

Hi all,

 

I am using an ActiveX control in CVI (7.0) of WebBrowser type.

It displays an HTML result file which is updated constantly by a separate thread.

 

1) How can I set this control to update its view when the HTML file changes? (call INET_IWebBrowser2Refresh)

2) How can I make the ActiveX WebBrowser control to scroll down to show the last lines (results) added to this HTML file?

 

Any ideas?

 

            Thanks,

 

                        Gil

0 Kudos
Message 1 of 2
(2,905 Views)
Hi, Gil.

To have your control update, I'd simply keep track of the file size and call INET_IWebBrowser2Refresh whenever that file size changes. This wouldn't work in situations in which the file might change but have the same size, but it sounds like that won't be a problem in your application.

In terms of scrolling to the bottom of the window, there's no programmatic way to do that within CVI's domain. However, it seems likely that there might be an ActiveX method to accomplish that. I recommend poking around on www.msdn.com to see what you can find there. Good luck!
Sarah K.
Search PME
National Instruments
0 Kudos
Message 2 of 2
(2,886 Views)