KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Programmatically hide 4D View Pro scrollbars
PRODUCT: 4D View Pro | VERSION: 20 | PLATFORM: Mac & Win
Published On: March 4, 2024

When working with View Pro areas, occasionally the scrollbars may need to be hidden programmatically, such as when creating a dashboard. To do this, export the View Pro area to an object and configure the “spreadJS.showHorizontalScrollbar” and “spreadJS.showVerticalScrollbar” properties, like this:

$vp_o:=VP Export to object("ViewProArea")
$vp_o.spreadJS.showHorizontalScrollbar:=False
$vp_o.spreadJS.showVerticalScrollbar:=False
VP IMPORT FROM OBJECT("ViewProArea"; $vp_o)

Afterwards, import the View Pro object back into the area.