Kirix Support Forums

How to invisible the scroll bars!

Please post all general questions, comments, bug reports, and any other wxWebConnect feedback here.

How to invisible the scroll bars!

Postby wzquyin on Thu Apr 21, 2011 9:56 pm

I need wxwebconnect without scroll bars, But it does not have the interface,,,help!!
can i set the scroll bars width to 0?
wzquyin
Registered User
 
Posts: 1
Joined: Thu Apr 21, 2011 9:48 pm

Re: How to invisible the scroll bars!

Postby jerry_mouse on Sat May 14, 2011 12:34 am

Add a method like this to wxWebControl and call it when needed.

Code: Select all
void wxWebControl::SetScrollbars( bool bHasScrollbars )
{
   ns_smartptr<nsIDOMWindow> domWindow;
   m_ptrs->m_web_browser->GetContentDOMWindow(&domWindow.p);
   if (!domWindow)
      return;
   ns_smartptr<nsIDOMBarProp> barprop;
   domWindow->GetScrollbars(&barprop.p);
   if (barprop)
   {
      barprop->SetVisible(bHasScrollbars?PR_TRUE:PR_FALSE);
   }
}
jerry_mouse
Registered User
 
Posts: 12
Joined: Sat Jan 09, 2010 5:11 am

Return to wxWebConnect Questions, Thoughts & Feedback