home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / CODIGO_2 / REFRESH / REFRESH.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-03-17  |  4.7 KB  |  124 lines

  1. Form1
  2. REFRESH DEMO
  3. wwwwwwwwwwwwwwp
  4. wwwwwwwwwwwwww
  5. Form1%
  6. txbRefreshed
  7. txbRefComment
  8. MS Sans Serif
  9. txbNonRefreshed
  10. txbNonRefComment
  11. MS Sans Serif
  12. txbWidthValue
  13. MS Sans Serif
  14. cmbDemo
  15. START DEMO
  16. Label2
  17. ,Changing Width Value Using Explicit Refresh.
  18. Label1
  19. ,Changing Width Value With VB's Idle Refresh.
  20. Label3
  21. Width =
  22. MS Sans Serif
  23. mnuHelp
  24. &Help
  25. mnuNotes
  26.     &Notes...
  27. mnuAbout
  28.     &About...
  29. Text1_Change
  30. Peter
  31. shithead
  32. Text1
  33. CaptionG
  34. Command1_Click
  35. Command1_KeyPress=
  36. KeyAscii#
  37. Text2w
  38. Width
  39. text3]
  40. Text3_Change
  41. Form_Click4
  42. txbRefreshed
  43. txbWidthValue
  44. txbNonRefreshed
  45. cmbDemo_Click
  46. without
  47. proper~
  48. repetative
  49. txbNonRefCommentK
  50. txbRefComment
  51. cmbDemo
  52. Enable
  53. TRUEA
  54. FalsetxbNonRefComment
  55. FALSE
  56. Enabled#
  57. mnuNotes_Click
  58. InfoBox*
  59. mnuAbout_Clickm
  60. msgNotes}
  61. ttlNotes
  62. msgHelpAbout$
  63. ttlHelpAbout
  64. msgHelpNotes2
  65. ttlHelpNotesV
  66. msgHelpAbout2C
  67. msgHelpAbout1
  68.     Hartquist
  69.     Generally
  70. CHEDRefresh
  71. refreshing
  72. happens
  73. automatically
  74. wheni
  75. reached
  76. example
  77. created
  78.     situation
  79. demonstrate
  80. effects
  81.     refeshing
  82. txbNonRefreshed_Changen
  83. Who Done It?
  84. Just for fun - Peter Hartquist 73227,3600
  85. What Does It Do?
  86. According the the Language Reference manual, refreshing a form or control happens automatically when VB's idle loop is reached.  This demo shows the effect of explicitly using Refresh on a dynamically changing control.
  87. cmbDemo_Click
  88.    According the the Visual Basic Language Reference manual, refreshingg
  89.    a form or control happens automatically when VB's idle loop is reached.
  90.    In this example I have created a situation to demonstrate
  91.    the effects of using or not using Refesh on a control
  92.    (a text box) while it repetitively changes in width..
  93.    I have created two similar controls on the form.  One text box changes
  94.    without using Refresh and one changes with Refresh on each change.n
  95.    It looks like Refresh is not necessary when decreasing the width of a
  96.    text box control.  It actually causes jitter in the redrawn image.n
  97.    But Refresh is needed to see the effects of repetitively increasing
  98.    the width of the text box.  Without Refresh, the text box doesn't
  99.    display with its' correct width until the repetitive changes have
  100.    all been completed.
  101. Smooth
  102. Comments while
  103. Jitters a bit
  104. Width decreasesW
  105. Initial Textbox Width = 4500
  106. Handle low wdith value
  107. Avoid low or zero I valuer
  108. Wrong Width
  109. Comments while
  110. Correct Width
  111. Width increasesd
  112. Display Width Valuer
  113. Change Textbox 1 without Refresh
  114. Change Testbox 2
  115. With Refresh
  116. Loop till done
  117. Correct Width At Last
  118. Comments
  119. Correct Width
  120. when doneo
  121. SEE IT AGAIN ?
  122. mnuAbout_Click
  123. mnuNotes_Click
  124.