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?
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.
Type "Remove Scrollbars" (without quotes) in the search box and press "Enter." Click the "Remove Scrollbars" option located on top of the search results.
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.
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.
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.
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.
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.
This should be done in document, so after it's loaded call e.g.:
Chromium1.Browser.MainFrame.ExecuteJavaScript(
'document.documentElement.style.overflow = ''hidden''',
'',
0
);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With