Difference between revisions of "NodeInfo"

(Gave this its own page. Added documentation on some new-to-4.7 settings)
Line 1: Line 1:
#REDIRECT [[Objects_and_Their_Attributes_-_Part_2_of_3#User_Interface_Attributes]]
 
 
[[Category:Attributes]]
 
[[Category:Attributes]]
 +
 +
== NodeInfo Attribute ==
 +
 +
The [[NodeInfo]] attribute encodes various style information about how a node displays on an influence diagram. Many of these styles appear on the [[Node Style Dialog]].  The attribute value consists of a comma-separated list of numbers (fields), most being 0,1-boolean flags.
 +
 +
Fields can be blank, in which case they are inherited from the [[NodeInfo]] attribute of the object's class. For example, a Button inherits its NodeInfo values from <code>NodeInfo of Button</code>.
 +
 +
=== Fields ===
 +
The general form of the attribute value is
 +
: ''version, showinputs, showoutputs, showlabel, showborder, fill, usenodefont, formwidth, showbevel, showformicon, embed ''
 +
 +
# '''''version''''' indicates the version of this attribute's format; 1 in the current version of Analytica
 +
# '''''showinputs'''''
 +
#  '''''showoutputs'''''
 +
# '''''showlabel'''''
 +
# '''''showborder'''''
 +
# '''''fill'''''
 +
# '''''usenodefont'''''
 +
# '''''showbevel'''''
 +
# '''''showformicon'''''  have values of 0 (for off) or 1 (for on). ''Showformicon'' only applies to output nodes.
 +
# '''''formwidth'''''  specifies the width of an input node’s or output node’s field (0 is the default, which means the actual width will be computed based on the font size).
 +
# '''''embed''''': (Not yet implemented) For an input node with an underlying table, a value 0 indicates that a button should appear to bring the edit table up in a separate window.  A value 1 indicates that the edit table should be embedded in the diagram.  For an output variable with an array result, 0 indicates that a ''Calc'' or ''Result'' button should appear that opens the result in a separate window, 1 indicates that the result should be embedded.  If you embed a table or graph, you need to size your control to be large enough to accommodate it.  If this is unset, Analytica and [[Analytica_Cloud_Player|ACP]] will assume the intention is to embed when the control is taller than 5 lines of text, or about 60 pixels.
 +
# '''''Visibility''''': (''requires [[Analytica 4.7]]'') 0=(default) Visible, 1=Hidden, 2=Very hidden, 3=Extremely hidden, 4=Hidden in browse mode, 5=Visible but disabled.
 +
#:When Hidden, you can still select the node rectangle in edit mode, see it in the Outliner window, and find it when searching. Extremely hidden hides the object in all parts of the user interface, which makes it really hard to access the object.
 +
# '''''Justification''''':  (''requires [[Analytica 4.7]]'') 0=Left align text, 1=Center align text, 2=Right align text.
 +
# '''''Control on left''''':  (''requires [[Analytica 4.7]]'') 0=(default) Control is to the right of the label text, 1=Control is on the left of the label text, .
 +
# '''''Tab advance on Enter''''':  (''requires [[Analytica 4.7]]'') Applies to an input control. 0=Focus stays on control after changing the value, 1=Focus moves to the next control in tab-order after changing the value.
 +
 +
== See Also ==
 +
 +
* [[Objects_and_Their_Attributes_-_Part_2_of_3#User_Interface_Attributes|User Interface Attributes]]
 +
* [[NodeFont]] attribute
 +
* [[NodeColor]] and [[NodeFontColor]] attributes
 +
* [[NodeLocation]] and [[NodeSize]] attributes

Revision as of 20:18, 6 April 2016


NodeInfo Attribute

The NodeInfo attribute encodes various style information about how a node displays on an influence diagram. Many of these styles appear on the Node Style Dialog. The attribute value consists of a comma-separated list of numbers (fields), most being 0,1-boolean flags.

Fields can be blank, in which case they are inherited from the NodeInfo attribute of the object's class. For example, a Button inherits its NodeInfo values from NodeInfo of Button.

Fields

The general form of the attribute value is

version, showinputs, showoutputs, showlabel, showborder, fill, usenodefont, formwidth, showbevel, showformicon, embed
  1. version indicates the version of this attribute's format; 1 in the current version of Analytica
  2. showinputs
  3. showoutputs
  4. showlabel
  5. showborder
  6. fill
  7. usenodefont
  8. showbevel
  9. showformicon have values of 0 (for off) or 1 (for on). Showformicon only applies to output nodes.
  10. formwidth specifies the width of an input node’s or output node’s field (0 is the default, which means the actual width will be computed based on the font size).
  11. embed: (Not yet implemented) For an input node with an underlying table, a value 0 indicates that a button should appear to bring the edit table up in a separate window. A value 1 indicates that the edit table should be embedded in the diagram. For an output variable with an array result, 0 indicates that a Calc or Result button should appear that opens the result in a separate window, 1 indicates that the result should be embedded. If you embed a table or graph, you need to size your control to be large enough to accommodate it. If this is unset, Analytica and ACP will assume the intention is to embed when the control is taller than 5 lines of text, or about 60 pixels.
  12. Visibility: (requires Analytica 4.7) 0=(default) Visible, 1=Hidden, 2=Very hidden, 3=Extremely hidden, 4=Hidden in browse mode, 5=Visible but disabled.
    When Hidden, you can still select the node rectangle in edit mode, see it in the Outliner window, and find it when searching. Extremely hidden hides the object in all parts of the user interface, which makes it really hard to access the object.
  13. Justification: (requires Analytica 4.7) 0=Left align text, 1=Center align text, 2=Right align text.
  14. Control on left: (requires Analytica 4.7) 0=(default) Control is to the right of the label text, 1=Control is on the left of the label text, .
  15. Tab advance on Enter: (requires Analytica 4.7) Applies to an input control. 0=Focus stays on control after changing the value, 1=Focus moves to the next control in tab-order after changing the value.

See Also

Comments


You are not allowed to post comments.