"ownFont";
The attribute "ownFont"; returns TRUE if an object (for example, a textEdit, a slider, a zoom navigator or a tree widget) uses its own font. If the value is FALSE, the object uses its parent widget`s font.
Synopsis
getValue(string shape,"ownFont",bool fontMode);
Parameter
| Parameter | Description | 
|---|---|
| shape | Name of the object | 
| fontMode | 
                                 TRUE = textEdit uses its own font. FALSE = textEdit uses its parent widget`s font.  | 
                        
Description
The attribute "ownFont"; returns TRUE if an object (for example, a textEdit, a slider, a zoom navigator or a tree widget) uses its own font. If the value is FALSE, the object uses its parent widget`s font.
Example
The following example returns TRUE if the textEdit uses its own font.
main(bool enter)
{
  string obj = "TEXT_EDIT1";
  bool owC;
  getValue(obj,"ownFont",owC);
  DebugN("Own font or not", owC);
}
            Assignment
TextEdit, Tree widget, Slider, Zoom navigator, DpTreeView
