I was thinking of taking the looknfeel definition of a StaticText and simply stripping out everything that relates to scrollbar. However when I look at the scheme file entry for StaticText it is associated with a Falagard/StaticText. Does the Falagard/StaticText expect to find child scrollbars?
Within one of my specialized functions, I currently instantiate a number of these StaticText items and never use the scrollbars. I want to eliminate them for performance reasons only. So I want to do a simple refactor that replaces my creation of StaticText items (for the specific function of interest only) with the trimmed down object. I want to refactor in a fashion that I can be sure that all the current properties and functions of the StaticText still work.
The Falagard documentation says:
Child widget definitions:
* Scrollbar based widget with name suffix "__auto_vscrollbar__". This widget will be used to control vertical scroll position.
* Scrollbar based widget with name suffix "__auto_hscrollbar__". This widget will be used to control horizontal scroll position.
These seem to be required, though the area elements are optional:
# TextRenderAreaHScroll – Target area where text will appear when the horizontal scrollbar is visible. Optional.
# TextRenderAreaVScroll – Target area where text will appear when the vertical scrollbar is visible. Optional.
# TextRenderAreaHVScroll – Target area where text will appear when both the horizontal and vertical scrollbars are visible. Optional.