I have a DG table and I'm trying to set the textFont to FreeSansBoldQblique based upon the value of a column (Row_Style) in the grid. I have set the Rowtemplate to a custom button. The font is installed. In a preOpenStack script I set the textFont on several fields in the stack and that works on both iOS and Android. The DG script works fine on iOS but on Android only the textColor is set. What am I missing?
Code: Select all
on FillInData pData
local theRowStyle
set the text of the long ID of me to pData
put GetDataOfLine(the dgLine of me, "Row_Style") into theRowStyle
switch theRowStyle
case "1"
if the uDevice of this stack is "iPhone" then
set the textStyle of me to "italic,bold"
else
set the textFont of me to "FreeSansBoldQblique"
end if
set the textColor of me to 200,0,0
break
case "2"
set the textStyle of me to "italic,bold"
break
case "3"
if the uDevice of this stack is "iPhone" then
set the textStyle of me to "italic,bold"
else
set the textFont of me to "FreeSansBoldQblique"
end if
set the textColor of me to 0,0,255
break
default
set the textStyle of me to "plain"
set the textColor of me to "black"
break
end switch
end FillInData