home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / expert.pak / XFRSTATE.SNP < prev   
Text File  |  1997-07-23  |  4KB  |  77 lines

  1. ##QUERY_CLASS_NAME [[ClassName]]
  2. ##QUERY_SNP_RES_CONSTANT [[Constant]]
  3. ##QUERY_SNP_RSRC_TYPE [[ControlType]]
  4. ##QUERY_SNP_RSRC_SUBTYPE [[ControlSubType]]
  5. ##QUERY_SNP_XFER_SIZE [[DataTypeSize]]
  6. ##QUERY_SNP_DATA_NAME [[DataName]]
  7. ##--BEGIN-- TRUE
  8. ##--BEGIN-- ControlType == "BUTTON"
  9. ##(ControlSubType == "DEFPUSHBUTTON") || (ControlSubType == "USERBUTTON") || (ControlSubType == "PUSHBUTTON")
  10. ##:     \\"TButton *[[DataName]];" ClassDefLine
  11. ##:     \\"[[DataName]] = new TButton(this, [[Constant]]);" ConstructorLine
  12. ##:     "" StructDefLine
  13. ##:     "#include <owl\\button.h>" IncludeFile
  14. ##*
  15. ##(ControlSubType == "GROUPBOX")
  16. ##:     \\"TGroupBox *[[DataName]];" ClassDefLine
  17. ##:     \\"[[DataName]] = new TGroupBox(this, [[Constant]]);" ConstructorLine
  18. ##:     "" StructDefLine
  19. ##:     "#include <owl\\groupbox.h>" IncludeFile
  20. ##*
  21. ##(ControlSubType == "CHECKBOX") || (ControlSubType == "AUTOCHECKBOX") || (ControlSubType == "3STATE") || (ControlSubType == "AUTO3STATE") 
  22. ##:     \\"TCheckBox *[[DataName]];" ClassDefLine
  23. ##:     \\"[[DataName]] = new TCheckBox(this, [[Constant]], 0);" ConstructorLine
  24. ##:     \\"bool    [[DataName]];" StructDefLine
  25. ##:     "#include <owl\\checkbox.h>" IncludeFile
  26. ##*
  27. ##(ControlSubType == "RADIOBUTTON") || (ControlSubType == "AUTORADIOBUTTON")
  28. ##:     \\"TRadioButton *[[DataName]];" ClassDefLine
  29. ##:     \\"[[DataName]] = new TRadioButton(this, [[Constant]], 0);" ConstructorLine
  30. ##:     \\"bool    [[DataName]];" StructDefLine
  31. ##:     "#include <owl\\radiobut.h>" IncludeFile
  32. ##*
  33. ##--END-- ControlType == "BUTTON"
  34. ##--BEGIN-- ControlType == "STATIC"
  35. ##DataTypeSize == ""
  36. ##:         "255" DataTypeSize
  37. ##*
  38. ##:     \\"TStatic *[[DataName]];" ClassDefLine
  39. ##:     \\"[[DataName]] = new TStatic(this, [[Constant]], [[DataTypeSize]]);" ConstructorLine
  40. ##:     \\"char    [[DataName]][ [[DataTypeSize]] ];" StructDefLine
  41. ##:     "#include <owl\\static.h>" IncludeFile
  42. ##--END-- ControlType == "STATIC"
  43. ##--BEGIN-- ControlType == "EDIT"
  44. ##DataTypeSize == ""
  45. ##:         "255" DataTypeSize
  46. ##*
  47. ##:     \\"TEdit *[[DataName]];" ClassDefLine
  48. ##:     \\"[[DataName]] = new TEdit(this, [[Constant]], [[DataTypeSize]]);" ConstructorLine
  49. ##:     \\"char    [[DataName]][ [[DataTypeSize]] ];" StructDefLine
  50. ##:     "#include <owl\\edit.h>" IncludeFile
  51. ##--END-- ControlType == "EDIT"
  52. ##--BEGIN-- ControlType == "LISTBOX"
  53. ##:     \\"TListBox *[[DataName]];" ClassDefLine
  54. ##:     \\"[[DataName]] = new TListBox(this, [[Constant]]);" ConstructorLine
  55. ##:     \\"TListBoxData  [[DataName]];" StructDefLine
  56. ##:     "#include <owl\\listbox.h>" IncludeFile
  57. ##--END-- ControlType == "LISTBOX"
  58. ##--BEGIN-- ControlType == "SCROLLBAR"
  59. ##:     \\"TScrollBar *[[DataName]];" ClassDefLine
  60. ##:     \\"[[DataName]] = new TScrollBar(this, [[Constant]]);" ConstructorLine
  61. ##:     \\"TScrollBarData    [[DataName]];" StructDefLine
  62. ##:     "#include <owl\\scrollba.h>" IncludeFile
  63. ##--END-- ControlType == "SCROLLBAR"
  64. ##--BEGIN-- ControlType == "COMBOBOX"
  65. ##DataTypeSize == ""
  66. ##:         "1" DataTypeSize
  67. ##*
  68. ##:     \\"TComboBox *[[DataName]];" ClassDefLine
  69. ##:     \\"[[DataName]] = new TComboBox(this, [[Constant]], [[DataTypeSize]]);" ConstructorLine
  70. ##:     \\"TComboBoxData  [[DataName]];" StructDefLine
  71. ##:     "#include <owl\\combobox.h>" IncludeFile
  72. ##--END-- ControlType == "COMBOBOX"
  73. ##(ClassDefLine == "") && (ConstructorLine == "") && (StructDefLine == "")
  74. ##:     %\\"Unknown Control Type [[ControlType]].  "
  75. ##*
  76. ##--END-- TRUE
  77.