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

  1. Form1
  2. Text on Lines DEMO
  3. Form15G
  4. Picture1
  5. Text1
  6. Text1
  7. Command1
  8. Color it BLUE
  9. Label4
  10. Enter a number in the edit box below && press the "Color it BLUE" button. You can look at the code by double-clicking in the button when the sample is loaded in Visual Basic.
  11. Label2
  12. |This sample first loads a file in ABC FlowCharter called "T_ONLINE.AF3" which contains a line with 3 attached text objects. 
  13. Label3
  14. /(c) Micrografx Inc., 1995. All Rights Reserved.
  15. Label1
  16. Which Text Object?
  17. Command1_Click
  18. Object?
  19. Chart
  20. Patho
  21. TheLine
  22. Objects
  23. ItemFromLines
  24. Text1
  25. Count
  26. CounterS
  27. TheTextObject
  28. ItemFromAttachments
  29. Color
  30. BLACK
  31. BLUEf
  32. @    Form_Load
  33. Valid
  34. ChosenTextObject
  35. Visible
  36. Found
  37. Label1_Click
  38. Label3_Click
  39. Form1
  40. Caption
  41. Picture1_Click(
  42. Command1_Click
  43.  Since there is only one line in the .
  44.  test chart uses ItemFromLines
  45.  Get an Objects collection to work with
  46.  Look at all objects attached to the line
  47.  If the attached object is a TextBlock (Type = 2).
  48.  Reset all text objects on the linel
  49.  to black 
  50.  If this is the requested Object
  51.  from the Text1 EditControl, store 
  52.  the object in a variable called e
  53.  ChosenTextObjecte
  54.  Set ChosenTextObject to Bluel
  55. The line only has 
  56.  attached text objects. Cannot color text object 
  57.  blue.
  58. Form_Load
  59. ABCFlow.application
  60. \T_ONLINE.ABC
  61.