Hoping there may be a data grid guru around?
I'm needed to clone data grids to other stacks, so just rolling my own solution and making good progress.
It all works well except for group level text settings (ie text settings not set in the row template, but with the data grid selected changing text style, color etc).
These don't seem to be in the group properties, dgProps or row/column templates and aren't replicated in the destination data grid...
Am i missing something or do i also need to copy these across separately?
Essentially what i've done is
- copy the properties from the source DG to the destination DG on the target stack
- copy the customPropertySet "dgProps" from the source DG to the destination DG on the target stack
- clone the source DG's behaviour substack, rename it and set it's mainstack to the destination stack
- iterate through the dgProps of the destination DG on the target stack to point to the new substack
- obviously multiple checks - if same stack not to clone the substack etc
This replicates the the source data grid nearly perfectly.
However if for example i've selected the data grid and hit command-B to make it's text bold, or set the textColor and then do the above, this isn't copied across to the target data grid... should this not be in the properties copied across? Other properties like row colours copy across as expected...
Many thanks
Stam
--------------
edit: on further investigation: If i select the source data grid, change it's text colour, make it bold and increase its font size in the IDE the visible changes are not reflected in it's properties.
it's fairly quick to list all the properties in the multiline message box with
Code: Select all
local myArray
put the properties of the selectedObject into myArray
combine myArray using return and ": "
put myArray
Code: Select all
...
tabGroupBehavior: false
textFont:
textSize:
textStyle:
threeD: false
toolTip: source data grid
...