Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I hide the scrollbars in TChromium

Its been a while now and I can't figure out how can I hide the scrollbars in TChromium. Is there a procedure/function or a property for it?

like image 794
Ago Avatar asked Aug 16 '17 07:08

Ago


People also ask

Can you hide the scrollbar?

To hide the scrollbar and disable scrolling, we can use the CSS overflow property. This property determines what to do with content that extends beyond the boundaries of its container. To prevent scrolling with this property, just apply the rule overflow: hidden to the body (for the entire page) or a container element.

How do I get rid of the scroll bar?

Type "Remove Scrollbars" (without quotes) in the search box and press "Enter." Click the "Remove Scrollbars" option located on top of the search results.

How do I hide the scroll bar in inactivity?

There are many ways to hide the scroll bar when the page is inactive. One such way is using the onscroll, onmousewheel, onclick and onmousemove events, which help us to achieve our goal using basic HTML and JavaScript.

How do I hide the title bar in chromium?

You can configure Chromium only to show the tab bar like Google Chrome to save some screen space and not be redundant. The option to hide Chromium 's title bar is available on the browser's Settings page. Open Chromium 's Settings page by going to chrome://settings at the location bar.

How to hide the scroll bar in chrome?

Default – Default chooses the option Chrome has decided is best for their users. For this setting specifically, Chrome keeps this disabled, which means the scroll bar would be showing. Enable – Enable hides the toolbar.

Does chromium have a tab bar?

Although Google Chrome only shows the tab bar, Chromium installation in Ubuntu and most other Linux distributions are configured to display both the tab bar and the title bar. You can configure Chromium only to show the tab bar like Google Chrome to save some screen space and not be redundant.

What does it mean when it says disable scrollbar?

It prevents your scrollbar from appearing, requiring you to hover your mouse over the edge of your window to trigger the scrollbar to appear. Disable – Disable shows the toolbar. This will make the toolbar automatically appear, provided the page is long enough to extend past the page requiring you to scroll.


1 Answers

This should be done in document, so after it's loaded call e.g.:

Chromium1.Browser.MainFrame.ExecuteJavaScript(
  'document.documentElement.style.overflow = ''hidden''',
  '',
  0
);
like image 183
Victoria Avatar answered Oct 01 '22 20:10

Victoria