home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1996 March / buyer-0396.iso / micrgrap / abc.z / ORGCHART.FRM (.txt) < prev    next >
Visual Basic Form  |  1995-09-15  |  15KB  |  321 lines

  1. OrgChartDlg
  2. Organization Chart DEMO
  3. Form15
  4.     ABCEvents
  5. OptionsBtn
  6. Options...
  7.     CancelBtn
  8. Cancel
  9. OrgChartBrowse
  10. CommonDialog
  11. *.txt
  12. !Choose ASCII Text File for Import
  13. *.txt
  14.     BrowseBtn
  15.     Browse...
  16. OKBtn
  17. OrgChartTextFileEdit
  18. MS Sans Serif
  19. Line6
  20. Line5
  21. Line4
  22. Line3
  23. Line2
  24. Line1
  25. Label1
  26. ASCII Text File:
  27. Text1_Change
  28. Chart<
  29. Object    
  30. ActiveChart
  31. ClearGuidelines
  32.     NumGuidesT
  33. start
  34. AddHorizontalGuidelinex
  35.     Form_Load
  36. Text1
  37. Text#
  38. Command1_Click>
  39. Label1_Click!
  40. Command2_Click
  41.     CMDialog1
  42. Action}
  43. OrgChartBrowse
  44. OrgChartTextFileEdit
  45. OrgChartTextFileEdit_Change
  46. BrowseBtn_Click
  47. CancelBtn_Click
  48. OKBtn_Click
  49. Filename$
  50. OrgChartDlg
  51. DoCreateOrgChartU
  52. success
  53. variableK
  54. OrgItemh
  55. TheChartx
  56. ABCChartk
  57. Create^
  58. ABCAppl
  59.     DrawShape
  60.     TestShape
  61.     ABCObject
  62. EntireFile
  63. len_file6
  64. DrawDirection(
  65. DrawPositionX
  66. DrawPositionY
  67.     test_charP
  68. cur_pos
  69. len_strY
  70.     [Refresh]k
  71. are_we_doneb
  72. TheCh[
  73. line_break
  74.     last_rank
  75. ShapeStacks
  76. index
  77. ur_pos!
  78. DrawLine6
  79. 2[DrawLine(ShapeStack(index-1), ShapeStack(index))]
  80. DrawPosition
  81.     fromShape
  82. toShape
  83. newlineC
  84. DrawSpacingY=
  85.     FillColor
  86. BasicColor
  87. ShadowStyle_
  88. Color:
  89. DestArrowStyle
  90.     StemStyleF
  91.     StemWidth#
  92. BorderWidthi
  93. Shape+
  94. [newline.Line.Color]E
  95. [Line.Color]
  96. Line_
  97. FormatOrgString7
  98.     OrgString
  99. state
  100.     in_quotes#
  101. test_ascCode
  102. commaa
  103. FormattedStr    
  104. GetNumLines
  105. test_str
  106. in_line_feedS
  107. total_lines
  108. req_objs4
  109.     ShapeList
  110. ParentList
  111. FirstChildList
  112. NextSiblingListC
  113. cur_obj_count
  114. cur_oindexN
  115. ShapeRefStack
  116. ParentRefList
  117. FirstChildRefList|
  118. NextSiblingRefList
  119. extSiblingRefListt
  120.     FirstChil
  121. CurrentLineType
  122. DrawK
  123. herer
  124. EndFor
  125. GetReqSize
  126. float
  127. fwidth
  128. sizeT
  129. size_neededz
  130. parent
  131. RelationMap_
  132. first_child
  133. next_sibling
  134. Relation8
  135. cur_obj$
  136. OrgGetReqBranchSize
  137. relation_mapo
  138. size_stack
  139.     cur_child7
  140. ShapeRefStac
  141. RightC
  142. box_spacing
  143. counter
  144. finished?    
  145. Width
  146. level
  147. temp_objref
  148. posY\    
  149. CenterX
  150. CenterYM    
  151. ShapeLi
  152. SrcArrowStyle
  153. YELLOW
  154. BorderColord
  155. LabelShown
  156. SourceArrowStyle
  157. OptionsBtn_Click
  158. OrgChartOptionsDlgh
  159. OrgChartN
  160. Disable
  161. Repaint
  162. CurrentLineRouting
  163. NumberShown
  164. DrawLineToOneObject.    
  165. TestLiney
  166. Paint
  167. RePain
  168.     NoRepaint
  169.     FitToText
  170. FitShapeToText
  171. size_cx
  172. size_cy'
  173. Bottom
  174. box_spacing_x
  175. box_spacing_y
  176. size_level
  177. size_branchq    
  178. box_spacing_peers
  179. box_spacing_levels
  180. HeightC
  181. Form_UnloadC
  182. Cancel
  183. BoxSpacing4
  184. vertical
  185. TopToBottomRBtn
  186. Value!
  187. BottomToTopRBtn
  188. reverse
  189. RightToLeftRBtnq
  190. Esle-
  191. inverted
  192. Boolean
  193. mirrorX\
  194. mirrorY
  195. num_levels
  196. hapeListL
  197. sizes
  198. work&
  199.     according}
  200. obj_size_level4
  201. EqualWithinLevels{
  202. IncreaseMgrSize
  203. Visible
  204. CurrentShapePalette
  205. CurrentShape
  206. Types
  207. PageLayouy
  208. Orientation
  209. PageLayout
  210. MasterItems"
  211. Hideall^
  212. PercentGuage
  213. PercentGaugeValue
  214. DrawnCount
  215. HidePercentGauge
  216. PercentGauge
  217. ShapePaletteVisible
  218. PercentGaugeCancelled_
  219. GetClientRectr
  220. hwndParent
  221.     lpPercent
  222. m_hwndPercent
  223. RxCreateDialog
  224. GETINSTANCEt
  225. LPSTR
  226. MAKEINTRESOURCE>
  227. DB_PERCENTGUAGE
  228. DlgProc7
  229. Percent 
  230. TotalFormatIter
  231. FormatItere
  232. status
  233. LoopIter
  234. TotalFormat
  235. NewGaugeIter@
  236. NewGaugeLoop
  237. IntergerW
  238. CalcPercent
  239. iteger
  240. OrghartTextFileEdit
  241. Form1
  242. WindowState^
  243. CalcPerentv
  244. DoCreateAbort
  245. DoCreteAbortW
  246. Form_LinkClose
  247. BottomToTopRBt
  248. Enabled
  249. Active
  250. MakeActiveO
  251. ValidateFilename
  252. CaLLValidateFilename
  253. OKBtn
  254. InitDir
  255. Unloadi
  256. DataFilename
  257. RegisterEvent
  258. APPNAME
  259. bFailed
  260.     CHARTTYPE
  261. ChartTypeShutdown
  262. ABC1_DoubleClickSUBCLASS
  263. ABC1_AppQuitNOTIFYX
  264. ABC1_AppQuitNOTIFY
  265. BrowseBtn_Click
  266.  OrgChartBrowse.Filename = OrgChartTextFileEdit.Text
  267. *.txt
  268. CalcPercent
  269. CancelBtn_Click
  270. Command2_Click
  271. DoCreateOrgChart
  272.  Make a new chartA
  273.  Set the right shape palette
  274. Standard
  275.     Chart.CurrentShape = "Process"
  276.  Set the Chart's internal type
  277. PROCESS
  278.  Turn off master items
  279.  Set up the progess barD
  280.         ABC.PercentGauge "Organization Chart DEMO", "PASS 1 of 2: Reading & parsing file..."
  281. Process
  282.  update status bar
  283. Give all the shapes some attributes here
  284.         ABC.PercentGauge "Organization Chart DEMO", "PASS 2 of 2: Formatting chart..."
  285.  There are currently five iterations of formatting
  286. We need to go through the list and make sure
  287. the sizes work according to the Options Dlge
  288. Here we traverse the tree gathering the maximum size box in each level
  289.  update status bar
  290. Now we have to adjust if the manager's size increases.
  291. Reinitialize the loop vars
  292. Here we traverse the tree gathering the maximum size box in each level
  293.  update status bar
  294. The object has to be at least as big as the biggest on the next leveln
  295. Format the chart *here*G
  296. start at the top (the "God" object)
  297.  Dim vertical As Integer
  298.  Dim inverted As Integer
  299. We're just calculating the sizes that these shapes need so far..
  300.  update status bar
  301. I'll have to admit - this is a little hard to follow - but it's BASIC you know, Visual or notn
  302. Can't do too much about the recursion stuff in BASIC
  303. This is recursion in disguise
  304. Don't be confused-> X and Y are reversed if this is not vertical
  305.  update status bar
  306.  since we're skipping an object in this loop
  307. Form_Load
  308. ABCFlow.application
  309. \ORGCHRT1.TXT
  310.     ABC.RegisterEvent ABC1.VBX, APPNAME, "AppQuitNOTIFY" 
  311. Form_Unload
  312. FormatOrgString
  313.  comma
  314. GetNumLines
  315. NewGaugeLoop
  316. OKBtn_Click
  317.  iconize form1
  318. OptionsBtn_Click
  319. OrgChartTextFileEdit_Change
  320. ValidateFilename
  321.