I need wxwebconnect without scroll bars, But it does not have the interface,,,help!!
can i set the scroll bars width to 0?
Kirix Support Forums
How to invisible the scroll bars!
2 posts
• Page 1 of 1
- wzquyin
- Registered User
- Posts: 1
- Joined: Thu Apr 21, 2011 9:48 pm
Re: How to invisible the scroll bars!
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
2 posts
· Page 1 of 1
Return to wxWebConnect Questions, Thoughts & Feedback