ModuleTree

Description:              This function draws a module tree diagram and returns a module tree value.

Returns:                    ModuleTree

Usage:                       Steady State

Format:                      ModuleTree(RootModule, Zoom, Left, Top, LineColor, BoxColor, SelBoxColor, TextColor, SelTextColor, HighlightColor, ShadowColor, SelHighlightColor, SelShadowColor [, Font])

Parameters:             RootModule   { Module }  { required }  { no default }

                                       Any expression for the module at the root of the tree.

                                    Zoom   { numeric }  { required }  { no default }

                                      Any numeric expression for the zoom factor applied to the diagram.

                                    Left   { numeric }  { required }  { no default }

                                      Any numeric expression for the left side user coordinate of the tree.

                                    Top   { numeric }  { required }  { no default }

                                      Any numeric expression for the top side user coordinate of the tree.

                                    LineColor   { numeric }  { required }  { no default }

                                      Any numeric expression for the color of the lines in the diagram.

                                    BoxColor   { numeric }  { required }  { no default }

                                      Any numeric expression for the color of the boxes in the diagram.

                                    SelBoxColor   { numeric }  { required }  { no default }

                                      Any numeric expression for the color of the selected boxes in the diagram.

                                    TextColor   { numeric }  { required }  { no default }

                                      Any numeric expression for the color of the text in the diagram.

                                    SelTextColor   { numeric }  { required }  { no default }

                                      Any numeric expression for the color of the selected text in the diagram.

                                    HighlightColor   { numeric }  { required }  { no default }

                                      Any numeric expression for the highlight color of the boxes in the diagram.

                                    ShadowColor   { numeric }  { required }  { no default }

                                      Any numeric expression for the shadow color of the boxes in the diagram.

                                    SelHighlightColor   { numeric }  { required }  { no default }

                                      Any numeric expression for the highlight color of selected boxes in the diagram.

                                    SelShadowColor   { numeric }  { required }  { no default }

                                      Any numeric expression for the shadow color of the selected boxes in the diagram.

                                    Font   { Font }  { optional }  { no default }

                                      An optional parameter that is any Font value used to display the diagram.

Comments:              

Example:

MTVal = ModuleTree(ShowModule { Root module of tree },

                1 { Zoom factor }, 

                10, 10 { Left, top corner }, 

                GetSystemColor(5) 

                { Color of lines (background window color) }, 

                GetSystemColor(15)

                { Color of boxes (button face color) }, 

                GetSystemColor(2)

                { Color of sel boxes (active win titlebar) }, 

                GetSystemColor(18)

                { Color of text on boxes (text on btns ) }, 

                GetSystemColor(20)

                { Color of selected text (btn highlight) }, 

                GetSystemColor(20)

                { Color of boxes highlight (btn highlight) }, 

                GetSystemColor(16)

                { Color of boxes shadow (button shadow) }, 

                GetSystemColor(16)

                { Color of sel boxes highlight (btn shadow)}, 

                GetSystemColor(20)

                { Color of sel boxes shadow (btn highlight)}, 

                Font("MS Sans Serif", 0, 9, 0, 3, 0, 0)); 

In this example, a module tree having ShowModule as its module will be drawn in the upper left corner of the screen. Since all colors are defined using GetSystemColor, as the Windows default color settings are changed, the colors of the module tree will likewise change.

See Also:

ModuleTreeSize