ICOMENU.PRG
上传用户:abc1382430
上传日期:2013-01-31
资源大小:1233k
文件大小:2k
源码类别:

行业应用

开发平台:

VFP

  1. *********************************************************
  2. *
  3. * Name: IcoMenu
  4. *       此程序演示图符菜单函数
  5. *
  6. **********************************************************
  7. set talk off
  8. set esca off
  9. set path to ..
  10. do LoadSDK                    && 装入SDK
  11. clea
  12. =ShowBmp(0,0,"9516.bmp")
  13. priv Color
  14. Color='W/BG,N/BG,W+/BG,GR+/W,N/W,W+/GR,GR/BG,N+/N,GR+/B,R+/B'
  15. =DefiMenu("MainMenu",5,1,11,30,"colo (Color)")
  16. =defipad(5,5, "Sys", "MainMenu","<S. 系统","SDK.ICO")
  17. =defipad(5,20,"Tool","MainMenu","<T. 工具","NOTE.ICO")
  18. =defipad(9,5,"SetUp","MainMenu","<O. 安装","Setup.ICO")
  19. on sele pad Sys  of MainMenu do SysProc
  20. on sele pad Tool of MainMenu do ToolProc
  21. do _ActiMenu in MisTool with 'MainMenu'
  22. =DeacMenu('MainMenu')
  23. =ReleMenu('MainMenu')
  24. retu
  25. proc SysProc
  26. *-----------------------------------------------------------------
  27. priv Color
  28. Color='B/W,W+/B,W/W,W+/B,W/B,W+/B,GR/W,W/B,N/W,W+/W'
  29. =defiwind("Sys",4,20,12,60,"colo (Color) titl '系统窗口'")
  30. =actiwind("Sys")
  31. =DnRect(C2X(1)-2,R2Y(1)-2,C2X(38)+2,R2Y(7)+2)
  32. =SetColor(7)
  33. =Rect(C2X(1)-1,R2Y(1)-1,C2X(38)+1,R2Y(7)+1)
  34. =SetFillStyle(1,15)
  35. =DrawBar(C2X(1),R2Y(1),C2X(38),R2Y(7))
  36. Color='N+/W*,N/W*,GR/W*,GR+/W,N/W,W+/B,GR/W*,N+/N,GR+/B,R+/B'
  37. =DefiMenu("Sys",2,0,4,50,"colo &Color")
  38. =defipad(2,4, "Ver", "Sys", "<V. 版本","SDK.ICO")
  39. =defipad(2,16,"Help","Sys", "<H. 帮助","HELP.ICO")
  40. on sele pad Ver  of Sys do ToolProc
  41. do _ActiMenu in MisTool with 'Sys'
  42. =DeacMenu('Sys')
  43. =ReleMenu('Sys')
  44. =relewind("Sys")
  45. retu
  46. proc ToolProc
  47. *-----------------------------------------------------------------
  48. priv Color
  49. Color='B/W,W+/B,W/W,W+/B,W/B,W+/B,GR/W,W/B,N/W,W+/W'
  50. =defiwind("Tool",6,26,14,55,"colo (Color) titl '工具窗口'")
  51. =actiwind("Tool")
  52. Color='N+/W,N/W,GR/W,GR+/W,N/W,W+/B,GR/W,N+/N,GR+/B,R+/B'
  53. =DefiMenu("Tool",2,0,4,50,"colo &Color")
  54. =defipad(2,4, "Ver", "Tool", "<P. 图像","PAINT.ICO")
  55. =defipad(2,16,"Help","Tool", "<C. 图表","CHART.ICO")
  56. on sele pad Ver  of Tool do HZ
  57. on sele pad Help of Tool do Chart
  58. do _ActiMenu in MisTool with 'Tool'
  59. =DeacMenu('Tool')
  60. =ReleMenu('Tool')
  61. =relewind("Tool")
  62. retu