Log In    |    Knowledge Base    |    4D Home
Tech Tip: Support of Themes in Tables - 4D View Pro
PRODUCT: 4D View Pro | VERSION: 19 R 8 | PLATFORM: Mac & Win
Published On: May 31, 2023

As of 4D v19 R8, 4D View Pro introduces the support of themes in tables. The new VP Get Table Theme command returns the current theme property values of the table. A table theme can be set using the new VP Set Table Theme command.

The VP Get table theme command returns an object of the cs.ViewPro.TableTheme class with properties and values that describe the current table theme.

When setting the table theme using VP Set Table Theme, in the options parameter pass an object of the cs.ViewPro.TableTheme class that contains the theme properties to modify.


var $param : cs.ViewPro.TableTheme
$param.theme:="dark10" //use of a native theme name

VP SET TABLE THEME("ViewProArea"; "myTable"; $param)
$vTheme:=VP Get table theme("ViewProArea"; "myTable")
$result:=Asserted(Value type($vTheme.theme)=Is object) //true

Commented by Mats Abrahamsson on October 3, 2023 at 7:50 AM
I have accepted