home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / FERRAMEN / LEONGINI / DEMO3.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1994-04-06  |  3.4 KB  |  92 lines

  1. Demo3
  2. Leong INI Controls Demo 3
  3. Form15
  4. LeongProfileString
  5.     demo3.ini
  6.     CMDialog1
  7. CommonDialog
  8. INI Files|*.ini|All Files|*.*%x
  9. Text1
  10. Picture1
  11. wwwwwwwwwwwx
  12. wwwwDwDwwwwx
  13. wwwwDwDwwwwx
  14. tGtGwwwtGtGx
  15. tGtGwwwtGtGx
  16. tGtGwwwtGtGx
  17. tGtGwwwtGtGx
  18. wwwwwwwwwwwx
  19. wwwwwwwx
  20. wqwwwwwx
  21. wwwwwx
  22. qwwwwwwx
  23. wwwwwwx
  24. wwwwwwwx
  25. wwwwwx
  26. qwwwwwwx
  27. wwwwwx
  28. wwwwwx
  29. qwwwwwx
  30. qqqwwwwwx
  31. wwwwwqwwwwwx
  32. wwwwwx
  33. wwwwwwwwwwwx
  34. Line1
  35. Label1
  36. 5This program remembers the most recently opened files
  37. Arial
  38. FileMenu
  39. FileOpen
  40. &Open...
  41. FileSep1
  42. FileRecent
  43. FileSep2
  44. FileExit
  45. E&xit
  46. FileExit_Click
  47. FileOpen_Click
  48.     CMDialog1
  49. Filename
  50. Action
  51. Text1;
  52. UpdateFileList
  53. nFiles2
  54. maxFilesn
  55. FileSep2
  56. Visible
  57. FileRecent
  58. Caption
  59. FileRecent_Click
  60. Index
  61. LoadFile
  62.     Form_Load
  63. InitDir
  64. empty
  65. there
  66. entry
  67. Flags@
  68.  maximum number of files to keep on menu    
  69. FileExit_Click
  70. FileOpen_Click
  71.  Prompt for a filename
  72.  Show the File Open Dialog Box
  73. FileRecent_Click
  74. Form_Load
  75.  create new INI file control
  76.  Try to add the filename to the menu.  (it will be an 
  77.  empty string if there is no entry in the INI file)I
  78. LoadFile
  79. You just opened 
  80. UpdateFileList
  81.  number of files presently on menu
  82.  Check if the new item is already in the list 
  83.  If so, we're ready to move down just the entries above it in the list
  84.  If not, we want to move all the entries or create
  85.  another if we haven't filled all the slots yeta
  86.  ensure the files are visibly distinct on the menu
  87.  create a new menu itemn
  88.  just shuffle them all downh
  89.  Move the necessary entries down the list
  90.  add the new file at the top
  91.  Update the menu items to match the INI file
  92.