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

行业应用

开发平台:

VFP

  1. *********************************************************
  2. *
  3. * Name: Demos
  4. *       此程序演示此目录下的部分.prg程序
  5. *
  6. **********************************************************
  7. set talk off
  8. set esca off
  9. set sysm off
  10. set path to ..
  11. do LoadSDK                    && 装入SDK
  12. clea
  13. =ShowBmp(0,0,"Demo.bmp")
  14. priv Color
  15. Color='W/BG,N/BG,W+/BG,GR+/W,N/W,W+/GR,W+/BG,N+/N,GR+/B,R+/B'
  16. =DefiMenu("DemoMenu",5,1,16,75,"colo (Color)")
  17. =defipad(5,5,  "What",    "DemoMenu","<A SDK???", "SDK.ICO")
  18. =defipad(5,20, "BGI",     "DemoMenu","<B 图形函数","Graphic.ICO")
  19. =defipad(5,35, "Image3",  "DemoMenu","<P 图像函数","Paint.ICO")
  20. =defipad(5,50, "Image2",  "DemoMenu","<S 图形特技","Critter.ICO")
  21. =defipad(5,65, "HZ",      "DemoMenu","<Z 汉字显示","HZ.ICO")
  22. =defipad(9,5,  "Menu",    "DemoMenu","<M 菜单函数","DLLDemo.ICO")
  23. =defipad(9,20, "Ctrl3",   "DemoMenu","<G GUI控制", "Wins1.ICO")
  24. =defipad(9,35, "Chart",   "DemoMenu","<C 图表函数","Chart1.ICO")
  25. =defipad(9,50, "SDKMenu1","DemoMenu","<E 菜单生成器","HotSpot.ICO")
  26. =defipad(9,65, "SDKScre1","DemoMenu","<I 界面生成器","HotSpot.ICO")
  27. =defipad(13,5, "Rpt2",    "DemoMenu","<R 报表工具","ToPrn.ICO")
  28. =defipad(13,20,"Brow1",   "DemoMenu","<W Brow工具","Note1.ICO")
  29. =defipad(13,35,"Help1",   "DemoMenu","<H 帮助工具","Help.ICO")
  30. =defipad(13,50,"Stuff",   "DemoMenu","<E 应用实例","Pad1.ICO")
  31. on sele menu DemoMenu do DemoProc
  32. do _ActiMenu in MisTool with 'DemoMenu'
  33. =DeacMenu('DemoMenu')
  34. =ReleMenu('DemoMenu')
  35. =cls()
  36. set sysm to defa
  37. retu
  38. proc DemoProc
  39. *-----------------------------------------------------------------
  40. priv pProc,pImg
  41. pImg=GetImage(0,0,GetMaxx(),GetMaxy())
  42. do case
  43. case pad()=="WHAT"
  44. do What
  45. case pad()=="BGI"
  46. do Bgi
  47. case pad()=="IMAGE3"
  48. do Image3
  49. case pad()=="IMAGE2"
  50. do Image2
  51. case pad()=="HZ"
  52. do HZ
  53. case pad()=="MENU"
  54. do Menu
  55. case pad()=="CTRL3"
  56. do Ctrl3
  57. case pad()=="CHART"
  58. do Chart
  59. case pad()=="RPT2"
  60. do Rpt2
  61. case pad()=="SDKMENU1"
  62. do SDKMenu1.mpr
  63. case pad()=="SDKSCRE1"
  64. do SDKScre1.spr
  65. case pad()=="BROW1"
  66. do Brow1
  67. case pad()=="HELP1"
  68. do Help1
  69. case pad()=="STUFF"
  70. do Stuff
  71. endc
  72. =PutImage(0,0,pImg)
  73. =ReleImage(pImg)
  74. retu