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

行业应用

开发平台:

VFP

  1. *********************************************************
  2. *
  3. * Name: Ctrl2
  4. *       此程序演示图形化的控制件
  5. *
  6. **********************************************************
  7. set talk off
  8. set esca off
  9. set path to ..
  10. do LoadSDK                    && 装入SDK
  11. dime Ary[20]
  12. for i=1 to alen(Ary)
  13.    Ary[i]=ltri(str(i))+"#部门"
  14. endf
  15. Str=""
  16. for i=1 to alen(Ary)
  17.    Str=Str+"编辑Edit  "+ltri(str(i))+chr(13)+chr(10)
  18. endf
  19. use Profit
  20. defi popu Pop prom fiel rtri(Month)+"月份" mark '' scro marg
  21. =RefreshScr()
  22. Color='B/W,W+/B,W*/W,W+/B,W/B,W+/B,W+/W,W/B,N/W,N+/W'
  23. =defiwind("Ctrl",2,4,21,75,"colo &Color titl '演示窗口1'")
  24. =actiwind("Ctrl")
  25. Choice1=1
  26. Choice2=1
  27. Choice3=1
  28. Choice4=1
  29. Choice5=1
  30. Choice6=1
  31. =GetCtrl(9,36,8,2,  "Choice1","func '*H <Yes;<No;\Cancle'")
  32. =GetCtrl(1,1,11,14, "Choice2","POPU Pop func '&' colo b/w*,b/w*")
  33. =GetCtrl(1,18,11,14,"Choice3","FROM Ary func '&' colo b/w*,b/w*")
  34. =GetCtrl(2,37,12,0, "Choice4","func '*R <Radio1;R<adio2;\Radio3;Ra<dio4'")
  35. =GetCtrl(2,52,12,1, "Choice5","func '*C <Check1'")
  36. =GetCtrl(4,52,12,1, "Choice6","func '*C C<heck2'")
  37. =edit(13,20,4,40,"Str","scro colo b/w*,b/w*")
  38. set curs on
  39. read cycl
  40. =relewind("Ctrl")
  41. use
  42. retu