Custom CSS for scroll bar

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Re: Custom CSS for scroll bar

Postby nanobill » Fri Aug 26, 2016 8:40 am

Yes, you can use it in OnDidCreateDocumentElement, or, I could implement a universal function that works exactly like CefRegisterExtension, it would get called every time the document is created. Also, the stylesheet does not appear in the source code so it works correctly.
nanobill
Newbie
 
Posts: 9
Joined: Tue Aug 23, 2016 7:39 pm

Re: Custom CSS for scroll bar

Postby nanobill » Fri Aug 26, 2016 11:38 am

I'll push the update by next week. I'll have to copy/paste to the official source since our build includes too many custom changes.

The update will include:
-OnDidCreateDocumentElement for the LoadHandler.
-CefBrowser::SetDefaultStyle(CefString csscode), allowing you to set the default style for your browser
-Frame->SetDocumentStyle(CefString csscode), allowing you to make dynamic changes to your frame in OnDidCreateDocumentElement
-Added default_style parameter to CreateBrowserSync, allowing you to set your default style when creating a browser.
nanobill
Newbie
 
Posts: 9
Joined: Tue Aug 23, 2016 7:39 pm

Previous

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 93 guests