How can I display scrollbars for a custom HTML control?

How can I display scrollbars for a custom HTML control?

I used the WebSDK PDF help file to create an HTML control with 2-way communication with the browser. Works fine.

My problem is that the displayed HTML, one of several controls on the page, has no scrollbars and I can’t find any documentation that explains how to make them appear. I expected them to appear automatically when the HTML contents exceeded the size of the HTML area - but that doesn’t happen - so most of the HTML text is hidden from the user.

Any suggestions?

Maybe a css overflow=auto for the HTML text div?

The HTMLArea example just uses a DIV to show the HTML. It looks like you can add a scroll bar to a DIV by adding “overflow-y:scroll;” to the style

Which would change this line in HTMLArea.SetupHTML:

sty = " style=""opacity:0.5;cursor:default;overflow-y:scroll;"""

Right scroll, not auto
(don’t write to much things at the same time or you will write them in wrong places…)

Thanks. I’ve got scroll bars now and could change the background color.