Ago
Ago

Reputation: 765

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?

Upvotes: 5

Views: 371

Answers (1)

Victoria
Victoria

Reputation: 7912

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

Chromium1.Browser.MainFrame.ExecuteJavaScript(
  'document.documentElement.style.overflow = ''hidden''',
  '',
  0
);

Upvotes: 6

Related Questions