hide/show adxieAdvancedBar and scroll message

Add-in Express™ Support Service
That's what is more important than anything else

hide/show adxieAdvancedBar and scroll message
 
minho so




Posts: 11
Joined: 2013-03-11
Hello

tool : visual studio 2010
language : visual studio c++ .net

by trying to expose the top of the explore bar. adxieAdvancedBar

However, I want to hang

See the top of the explore bar ie Vertical scroll bar position is 0, the only

Want to show the top of the explore bar.

Hide scrollbar in another location if the top of the explore bar about handling

1) ie the scrollbar get a message that way

2) the top of the explorer bar is always how to handle the scrollbar position is 0, the only visible

Tell
Posted 13 Mar, 2013 08:32:58 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Minho,

I think that to get the scroll position you can use the 'NewValue' property of the 'e' parameter of the Scroll event handler.
Posted 13 Mar, 2013 11:07:59 Top
minho so




Posts: 11
Joined: 2013-03-11
um..

I'm Sorry.

1) What is 'NewValue' ?


2) how onscroll event handling?

3) please example source.
Posted 13 Mar, 2013 11:28:49 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Minho,

Just double click on the Scroll event in the Events tab of the advanced bar control. The designer should add the code below:

	    
private: System::Void MyIEAdvancedBar1_Scroll(System::Object^  sender, System::Windows::Forms::ScrollEventArgs^  e) {
    int scrollPosition = e->NewValue;
}
Posted 14 Mar, 2013 04:30:55 Top
minho so




Posts: 11
Joined: 2013-03-11
1) i want ie scroll bar event.

----
i'm source code.

IEModule.h


this->adxiehtmlDocEvents1->OnScroll += gcnew AddinExpress::IE::ADXIEHTMLEventObject_EventHandler(this, &IEModule::OnScroll1);


private: System::Void OnScroll1(System::Object^ sender, System::Object^ eventObject) {

MessageBox::Show("OnScroll1");
}
-----------------

However, the scroll event does not occur.

How to get ie vetical scrollbar value?


2) WebBrowser Control in MyIEAdvanceBar1.h

i want IEModule.h refer webBrowser Control. and

How webBrowser Control Navigate2?
Posted 14 Mar, 2013 06:12:59 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Minho,

1. I don't quite understand.
Do you need the scroll position of the IE browser window or your controls added to the advanced bar control?

2. >> want IEModule.h refer webBrowser Control.

 System::Windows::Forms::WebBrowser^ GetWebBrowserControl()
 {
	if (this->adxieAdvancedBarItem1->BarObj != nullptr)
	{
  	    return ((MyIEAdvancedBar1^)this->adxieAdvancedBarItem1->BarObj)->webBrowser1; 
	}
	return nullptr;
 }


Make sure that the 'webBrowser1' field has the 'public' access modifier.

>> How webBrowser Control Navigate2?
The 'System::Windows::Forms::WebBrowser' control doesn't provide such a method.
Please use Navigate instead.
http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser_methods.aspx
Posted 14 Mar, 2013 07:21:28 Top
minho so




Posts: 11
Joined: 2013-03-11
um ^^

I'm Sorry.
Can not speak English. ^^

I Want..


----------------------
IEModule.h

Interop::SHDocVw::WebBrowser

vertical Scrollbar position on the current web page
----------------------
Posted 14 Mar, 2013 07:48:26 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Minho,

To intercept the OnScroll event of the browser window you need to use the 'ADXIEHTMLDocEvents' component (right click on the iemodule designer and choose the 'Add HTML Events' option). Then you need to select 'Window' in the 'SupportedEvents' property of the 'ADXIEHTMLDocEvents' component. In the Events tab of the 'Property Window' you will find all HTML events supported by the component.
I have just discovered that there is an issue with the OnScroll event in IE. The issue is described here:
http://social.msdn.microsoft.com/Forums/en-US/ieextensiondevelopment/thread/808df95a-c559-44c3-93b7-b9e3b2c3b737
I will try to find a workaround and will let you know about results as soon as possible.
Posted 14 Mar, 2013 11:10:03 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Minho,

I implemented the workaround described here:
http://stackoverflow.com/questions/9971783/onscroll-event-handling-in-c-sharp-bho-for-ie9
Now the OnScroll event works. We will publish a new version of the product with the fix on Monday.
Posted 15 Mar, 2013 08:50:03 Top
minho so




Posts: 11
Joined: 2013-03-11
Oh!!

Thank you..
Posted 16 Mar, 2013 00:03:44 Top