NodeInfo


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. 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).
  9. showbevel
  10. showformicon have values of 0 (for off) or 1 (for on). Showformicon only applies to output nodes.
  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 5.0) 0=(default) Visible, 1 = Hidden, 2 = Very hidden, 3 = Extremely hidden, 4 = Hidden in browse mode, 5 = Visible but disabled (in both edit and browse mode), 6 = Visible but disabled in Browse mode.
    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 5.0) 0 = Left align text, 1 = Center align text, 2 = Right align text.
  14. Control on left: (requires Analytica 5.0) 0 = (default) Control is to the right of the label text, 1 = Control is on the left of the label text. Starting with Analytica 5.5, in a tall Formnode with Vertical Justification of label = top, a value of 2=center is also allowed.
  15. Tab advance on Enter: (requires Analytica 5.0) 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.
  16. Vertical justification of label: (requires Analytica 5.5). Vertical location of label. Applies to tall Formnodes only. 1=Top, 2=Middle.
  17. Vertical alignment of button: (new to Analytica 5.5). Applies to tall Formnodes. Unset=button on same line as label. 1=button in middle.

See Also

Comments


You are not allowed to post comments.