Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
THIS.Parent.Parent.SetColWidth( This.Parent )
LPARAMETERS toColumn
IF NOT EMPTY( toColumn.ControlSource )
lnNewWidth = LEN( EVAL( toColumn.ControlSource ) )
liFactor = THIS.GetFontmetric( toColumn )
lnNewwidth = lnNewwidth * liFactor
toColumn.Width = lnNewWidth
ENDIF
PARAMETER oref
IF TYPE("oref") <> "O"
RETURN 0
ENDIF
IF TYPE("m.oref.Fontname") <> "U"
m.fname = m.oref.fontname
ELSE
m.fname = ""
ENDIF
IF TYPE("m.oref.Fontsize") <> "U"
m.fsize = m.oref.fontsize
ELSE
m.fsize = ""
ENDIF
m.fStyle = ""
IF TYPE("m.oref.FontBold") <> "U" AND m.oref.FontBold
m.fStyle = m.fStyle + "B"
ENDIF
IF TYPE("m.oref.FontItalic") <> "U" AND m.oref.FontItalic
m.fStyle = m.fStyle + "I"
ENDIF
IF TYPE("m.oref.FontOutline") <> "U" AND m.oref.FontOutline
m.fStyle = m.fStyle + "O"
ENDIF
IF TYPE("m.oref.FontShadow") <> "U" AND m.oref.FontShadow
m.fStyle = m.fStyle + "S"
ENDIF
IF TYPE("m.oref.FontShadow") <> "U" AND .oref.FontUnderline
m.fStyle = m.fStyle + "U"
ENDIF
m.ffactor = IIF(EMPTY(m.fname), THIS.BldrMetric, FONTMETRIC(6,m.fname,m.fsize,m.fstyle))
RETURN m.ffactor
lnNewWidth = LEN( TRANSFORM( EVAL( toColumn.ControlSource ) ) )