滚动问题 [英] Scrolling problems
问题描述
我以前发过这个并且没有得到答案,所以让我们再试一次。现在IE8被作为一个高优先级的更新被推倒了,我的所有客户至少可以说是苦涩的。 g_lngScroll = g_hLC.Window.Document.Body.ScrollRectangle.Top I posted this before and got no answers, so lets try again. Now that IE8 is being shoved down as a high priority update, all of my customers are, to say the least, bitter. g_lngScroll = g_hLC.Window.Document.Body.ScrollRectangle.Top 如果 g_lngScroll> = g_lngLast - 30 然后 If g_lngScroll >= g_lngLast - 30 Then g_hLC.Window.ScrollTo(0,ScrollMax) g_hLC.Window.ScrollTo(0, ScrollMax) g_lngScroll = g_hLC.Window.Document.Body.ScrollRectangle.Top g_lngScroll = g_hLC.Window.Document.Body.ScrollRectangle.Top g_lngLast = g_lngScroll g_lngLast = g_lngScroll 结束 If End If ResultWeb.Document.frames.Window.ScrollTo(1,9999999999.0#) ResultWeb.Document.frames.Window.ScrollTo(1, 9999999999.0#) 这篇关于滚动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
我有一个使用Browser控件对象的应用程序,其中数据是不断的附加到文档正文。随着新数据的进入,文档将滚动到最后,以便显示最新信息。当IE6和7被使用时,下面的代码工作得很好,现在IE8的人告诉我它滚动到顶部而不是底部,使我的应用程序无用。
I have an application that uses an the Browser control object, where data is constantly being appended to the body of the document. As new data comes in, the document will scroll to the end so that the latest information is displayed. The following code worked perfectly when IE6 and 7 were being used, and now the IE8 folks tell me that it scrolls to the top instead of the bottom, making my application useless.
什么是解决方案?
Whats the solution?推荐答案
我遇到了类似的问题。当我将新文档加载到broswer控件中时,我等到导航完成后再发出ScrollTo函数,如下所示
scoll bar确实移动到页面底部但是当我退出我执行ScrollTo功能的例程时,滚动条跳回到顶部。
当你习惯于看到页面底部时,这非常烦人。I am experiencing a simular problem. When I load a new document into the broswer control, I wait until the navigation is complete and then I issue the ScrollTo function as shown below
The scoll bar does move to the bottom of the page but when I exit the routine where I did the ScrollTo function, the scroll bar jumps back up to the top.
This is extremely annoying when you are use to always seeing the bottom of the page.