home *** CD-ROM | disk | FTP | other *** search
/ QBasic & Borland Pascal & C / Delphi5.iso / C / BC_502 / APPEXPRT.PAK / XFRSTATE.SNP < prev   
Encoding:
Text File  |  1997-05-06  |  11.0 KB  |  300 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. ##:     \\"uint    [[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. ##:     \\"uint    [[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. '
  74. ' Win32 Common Controls
  75. '
  76. ##--BEGIN-- ControlType == "SYSANIMATE32"
  77. ##:     \\"TAnimateCtrl* [[DataName]];" ClassDefLine
  78. ##:     \\"[[DataName]] = new TAnimateCtrl(this, [[Constant]]);" ConstructorLine
  79. ##:     "" StructDefLine
  80. ##:     "#include <owl/animctrl.h>" IncludeFile
  81. ##*
  82. ##--END-- ControlType == "SYSANIMATE32"
  83. '
  84. ##--BEGIN-- ControlType == "SYSHEADER32"
  85. ##:     \\"TColumnHeader* [[DataName]];" ClassDefLine
  86. ##:     \\"[[DataName]] = new TColumnHeader(this, [[Constant]]);" ConstructorLine
  87. ##:     "" StructDefLine
  88. ##:     "#include <owl/colmnhdr.h>" IncludeFile
  89. ##*
  90. ##--END-- ControlType == "SYSHEADER32"
  91. '
  92. ##--BEGIN-- ControlType == "MSCTLS_HOTKEY32"
  93. ##:     \\"THotKey* [[DataName]];" ClassDefLine
  94. ##:     \\"[[DataName]] = new THotKey(this, [[Constant]]);" ConstructorLine
  95. ##:     "" StructDefLine
  96. ##:     "#include <owl/hotkey.h>" IncludeFile
  97. ##*
  98. ##--END-- ControlType == "MSCTLS_HOTKEY32"
  99. '
  100. ##--BEGIN-- ControlType == "SYSLISTVIEW32"
  101. ##:     \\"TListWindow* [[DataName]];" ClassDefLine
  102. ##:     \\"[[DataName]] = new TListWindow(this, [[Constant]]);" ConstructorLine
  103. ##:     "" StructDefLine
  104. ##:     "#include <owl/listwind.h>" IncludeFile
  105. ##*
  106. ##--END-- ControlType == "SYSLISTVIEW32"
  107. '
  108. ##--BEGIN-- ControlType == "MSCTLS_PROGRESS32"
  109. ##:     \\"TGauge* [[DataName]];" ClassDefLine
  110. ##:     \\"[[DataName]] = new TGauge(this, [[Constant]]);" ConstructorLine
  111. ##:     "" StructDefLine
  112. ##:     "#include <owl/gauge.h>" IncludeFile
  113. ##*
  114. ##--END-- ControlType == "MSCTLS_PROGRESS32"
  115. '
  116. ##--BEGIN-- ControlType == "RICHEDIT"
  117. ##:     \\"TRichEdit* [[DataName]];" ClassDefLine
  118. ##:     \\"[[DataName]] = new TRichEdit(this, [[Constant]]);" ConstructorLine
  119. ##:     "" StructDefLine
  120. ##:     "#include <owl/richedit.h>" IncludeFile
  121. ##*
  122. ##--END-- ControlType == "RICHEDIT"
  123. '
  124. ##--BEGIN-- ControlType == "SYSTABCONTROL32"
  125. ##:     \\"TTabControl* [[DataName]];" ClassDefLine
  126. ##:     \\"[[DataName]] = new TTabControl(this, [[Constant]]);" ConstructorLine
  127. ##:     "" StructDefLine
  128. ##:     "#include <owl/tabctrl.h>" IncludeFile
  129. ##*
  130. ##--END-- ControlType == "SYSTABCONTROL32"
  131. '
  132. ##--BEGIN-- ControlType == "MSCTLS_TRACKBAR32"
  133. ##:     \\"THSlider* [[DataName]];" ClassDefLine
  134. ##:     \\"[[DataName]] = new THSlider(this, [[Constant]], IDB_HSLIDERTHUMB);" ConstructorLine
  135. ##:     "" StructDefLine
  136. ##:     "#include <owl/slider.h>" IncludeFile
  137. ##*
  138. ##--END-- ControlType == "MSCTLS_TRACKBAR32"
  139. '
  140. ##--BEGIN-- ControlType == "SYSTREEVIEW32"
  141. ##:     \\"TTreeWindow* [[DataName]];" ClassDefLine
  142. ##:     \\"[[DataName]] = new TTreeWindow(this, [[Constant]]);" ConstructorLine
  143. ##:     "" StructDefLine
  144. ##:     "#include <owl/treewind.h>" IncludeFile
  145. ##*
  146. ##--END-- ControlType == "SYSTREEVIEW32"
  147. '
  148. ##--BEGIN-- ControlType == "MSCTLS_UPDOWN32"
  149. ##:     \\"TUpDown* [[DataName]];" ClassDefLine
  150. ##:     \\"[[DataName]] = new TUpDown(this, [[Constant]]);" ConstructorLine
  151. ##:     "" StructDefLine
  152. ##:     "#include <owl/updown.h>" IncludeFile
  153. ##*
  154. ##--END-- ControlType == "MSCTLS_UPDOWN32"
  155. '
  156. ' Win32 Common Controls (END)
  157. '
  158. '
  159. ' VDBT Controls
  160. '
  161. ##--BEGIN-- ControlType == "VBCONTROL"
  162. '
  163. ' Data aware controls
  164. '
  165. ## (ControlSubType == "TDBCheckBox")
  166. ##:     \\"TDBCheckBox* [[DataName]];" ClassDefLine
  167. ##:     \\"[[DataName]] = new TDBCheckBox(this, [[Constant]]);" ConstructorLine
  168. ##:     "" StructDefLine
  169. ##:     "#include <vdbt/dbchkbx.h>" IncludeFile
  170. ##*
  171. '
  172. ## (ControlSubType == "TDBComboBox")
  173. ##:     \\"TDBComboBox* [[DataName]];" ClassDefLine
  174. ##:     \\"[[DataName]] = new TDBComboBox(this, [[Constant]]);" ConstructorLine
  175. ##:     "" StructDefLine
  176. ##:     "#include <vdbt/dbcombo.h>" IncludeFile
  177. ##*
  178. '
  179. ## (ControlSubType == "TDBEdit")
  180. ##:     \\"TDBEdit* [[DataName]];" ClassDefLine
  181. ##:     \\"[[DataName]] = new TDBEdit(this, [[Constant]]);" ConstructorLine
  182. ##:     "" StructDefLine
  183. ##:     "#include <vdbt/dbedit.h>" IncludeFile
  184. ##*
  185. '
  186. ## (ControlSubType == "SSView")
  187. ##:     \\"TDBGrid* [[DataName]];" ClassDefLine
  188. ##:     \\"[[DataName]] = new TDBGrid(this, [[Constant]]);" ConstructorLine
  189. ##:     "" StructDefLine
  190. ##:     "#include <vdbt/dbgrid.h>" IncludeFile
  191. ##*
  192. '
  193. ## (ControlSubType == "TDBImage")
  194. ##:     \\"TDBImage* [[DataName]];" ClassDefLine
  195. ##:     \\"[[DataName]] = new TDBImage(this, [[Constant]]);" ConstructorLine
  196. ##:     "" StructDefLine
  197. ##:     "#include <vdbt/dbimage.h>" IncludeFile
  198. ##*
  199. '
  200. ## (ControlSubType == "TDBListBox")
  201. ##:     \\"TDBListBox* [[DataName]];" ClassDefLine
  202. ##:     \\"[[DataName]] = new TDBListBox(this, [[Constant]]);" ConstructorLine
  203. ##:     "" StructDefLine
  204. ##:     "#include <vdbt/dblist.h>" IncludeFile
  205. ##*
  206. '
  207. ## (ControlSubType == "TDBLookupCombo")
  208. ##:     \\"TDBLookupCombo* [[DataName]];" ClassDefLine
  209. ##:     \\"[[DataName]] = new TDBLookupCombo(this, [[Constant]]);" ConstructorLine
  210. ##:     "" StructDefLine
  211. ##:     "#include <vdbt/dblkupcb.h>" IncludeFile
  212. ##*
  213. '
  214. ## (ControlSubType == "TDBLookupList")
  215. ##:     \\"TDBLookupList* [[DataName]];" ClassDefLine
  216. ##:     \\"[[DataName]] = new TDBLookupList(this, [[Constant]]);" ConstructorLine
  217. ##:     "" StructDefLine
  218. ##:     "#include <vdbt/dblkuplb.h>" IncludeFile
  219. ##*
  220. '
  221. ## (ControlSubType == "TDBMemo")
  222. ##:     \\"TDBMemo* [[DataName]];" ClassDefLine
  223. ##:     \\"[[DataName]] = new TDBMemo(this, [[Constant]]);" ConstructorLine
  224. ##:     "" StructDefLine
  225. ##:     "#include <vdbt/dbmemo.h>" IncludeFile
  226. ##*
  227. '
  228. ## (ControlSubType == "TDBNavigator")
  229. ##:     \\"TDBNavigator* [[DataName]];" ClassDefLine
  230. ##:     \\"[[DataName]] = new TDBNavigator(this, [[Constant]]);" ConstructorLine
  231. ##:     "" StructDefLine
  232. ##:     "#include <vdbt/dbnvgtr.h>" IncludeFile
  233. ##*
  234. '
  235. ## (ControlSubType == "TDBRadioGroup")
  236. ##:     \\"TDBRadioGroup* [[DataName]];" ClassDefLine
  237. ##:     \\"[[DataName]] = new TDBRadioGroup(this, [[Constant]]);" ConstructorLine
  238. ##:     "" StructDefLine
  239. ##:     "#include <vdbt/dbradio.h>" IncludeFile
  240. ##*
  241. '
  242. ## (ControlSubType == "TDBText")
  243. ##:     \\"TDBText* [[DataName]];" ClassDefLine
  244. ##:     \\"[[DataName]] = new TDBText(this, [[Constant]]);" ConstructorLine
  245. ##:     "" StructDefLine
  246. ##:     "#include <vdbt/dbtext.h>" IncludeFile
  247. ##*
  248. '
  249. ' Data access controls
  250. '
  251. ## (ControlSubType == "TBatchMove")
  252. ##:     \\"TDBBatchMove* [[DataName]];" ClassDefLine
  253. ##:     \\"[[DataName]] = new TDBBatchMove(this, [[Constant]]);" ConstructorLine
  254. ##:     "" StructDefLine
  255. ##:     "#include <vdbt/dbacc.h>" IncludeFile
  256. ##*
  257. '
  258. ## (ControlSubType == "TDatabase")
  259. ##:     \\"TDBDatabase* [[DataName]];" ClassDefLine
  260. ##:     \\"[[DataName]] = new TDBDatabase(this, [[Constant]]);" ConstructorLine
  261. ##:     "" StructDefLine
  262. ##:     "#include <vdbt/dbacc.h>" IncludeFile
  263. ##*
  264. '
  265. ## (ControlSubType == "TDataSource")
  266. ##:     \\"TDBDataSource* [[DataName]];" ClassDefLine
  267. ##:     \\"[[DataName]] = new TDBDataSource(this, [[Constant]]);" ConstructorLine
  268. ##:     "" StructDefLine
  269. ##:     "#include <vdbt/dbacc.h>" IncludeFile
  270. ##*
  271. '
  272. ## (ControlSubType == "TQuery")
  273. ##:     \\"TDBQuery* [[DataName]];" ClassDefLine
  274. ##:     \\"[[DataName]] = new TDBQuery(this, [[Constant]]);" ConstructorLine
  275. ##:     "" StructDefLine
  276. ##:     "#include <vdbt/dbacc.h>" IncludeFile
  277. ##*
  278. '
  279. ## (ControlSubType == "TStoredProc")
  280. ##:     \\"TDBStoredProc* [[DataName]];" ClassDefLine
  281. ##:     \\"[[DataName]] = new TDBStoredProc(this, [[Constant]]);" ConstructorLine
  282. ##:     "" StructDefLine
  283. ##:     "#include <vdbt/dbacc.h>" IncludeFile
  284. ##*
  285. '
  286. ## (ControlSubType == "TTable")
  287. ##:     \\"TDBTable* [[DataName]];" ClassDefLine
  288. ##:     \\"[[DataName]] = new TDBTable(this, [[Constant]]);" ConstructorLine
  289. ##:     "" StructDefLine
  290. ##:     "#include <vdbt/dbacc.h>" IncludeFile
  291. ##*
  292. ##--END-- ControlType == "VBCONTROL"
  293. '
  294. ' VDBT Controls (END)
  295. '
  296. ## (ClassDefLine == "") && (ConstructorLine == "") && (StructDefLine == "")
  297. ##:     %\\"Unknown Control Type [[ControlType]].  "
  298. ##*
  299. ##--END-- TRUE
  300.