home *** CD-ROM | disk | FTP | other *** search
/ Asymetrix Demo / Asymetrix.iso / prg / mtb30 / samples / dialog.tbk (.txt) < prev    next >
Encoding:
Asymetrix ToolBook File  |  1994-07-11  |  186.5 KB  |  3,770 lines

  1. ctrlID
  2. ToolBar
  3. ToolPalette
  4. Dialog
  5. Dialog
  6. To save your dialog box template:
  7.     choose save... or save as ... from the file menu
  8. To use your dialog box in a book:
  9.     choose Assign Template to book... from the file menu
  10. To edit a dialog you have assigned to a book:
  11.     choose open... from the file menu
  12.     choose the book from the dialog
  13.     choose the dialog box from the listbox
  14. To edit a saved dialog box template:
  15.     choose open... from the file menu
  16.     change the filter to .dia and choose the file
  17. To edit a dialog box from a converted 1.5 book:
  18.     copy the button with the DLGBOX and DLGINIT user 
  19.     properties onto the clipboard
  20.     paste the button into the editor
  21. To resize the dialog box:
  22.     hold down the CONTROL key and resize the editor window
  23. true,false,false,false,true,true,true
  24. oldState
  25. ToolBar
  26. toolbar
  27. openDialog
  28. ctrlID
  29. wsgroup
  30. Open a dialog Template
  31. helpText
  32. saveDialog
  33. yhelpText
  34. saveDialogAs
  35. dlg_saveDialogAs
  36. saveDialog
  37. dlg_saveDialog
  38. Save the dialog under a new name
  39. Save the dialog
  40. toggleState
  41. notifyBefore toggleState isControl
  42. "saveDialogAs"
  43. onormalGraphic 
  44. bitmap "dlg_saveDialogAs"
  45. ohelpText 
  46. "Save the dialog under a 
  47. ctrlID
  48. Save the dialog
  49. helpText
  50. properties
  51. ctrlID
  52. Edit the properties of the selected control
  53. helpText
  54. character
  55. ctrlID
  56. Set the font for the dialog box
  57. helpText
  58. ctrlID
  59. Undo/Redo last action
  60. helpText
  61. ItemSelected
  62. duplicate
  63. buttonDoubleClick
  64. buttonClick
  65. ctrlID
  66. Duplicate the selected control
  67. helpText
  68. bringToFront
  69. yhelpText
  70. dlg_BringToFront
  71. dlg_disableBringToFront
  72. bringCloser
  73. dlg_bringCloser
  74. Bring the selection closer
  75. dlg_disablebringCloser
  76. Bring the selection to the front
  77. bringToFront
  78. toggleState
  79. notifyBefore toggleState isControl
  80. onormalGraphic 
  81. bitmap "dlg_bringCloser"
  82. odisabledGraphic 
  83. ,disablebringCloser"
  84. ohelpText 
  85. "Bring the 
  86. closer"
  87. BringToFront"
  88. disableBringToFront"
  89. afront"
  90. ctrlID
  91. Bring the selection to the front
  92. helpText
  93. sendToBack
  94. dlg_sendFarther
  95. dlg_disableSendFarther
  96. yhelpText
  97. sendToBack
  98. dlg_sendToBack
  99. dlg_disableSendToBack
  100. Send the selection farther
  101. Send the selection to the back
  102. sendFarther
  103. toggleState
  104. notifyBefore toggleState isControl
  105. onormalGraphic 
  106. bitmap "dlg_sendFarther"
  107. odisabledGraphic 
  108. ,disableSendFarther"
  109. ohelpText 
  110. farther"
  111. |ToBack"
  112. disableSendToBack"
  113. ctrlID
  114. Send the selection to the back
  115. helpText
  116. showDialog
  117. ctrlID
  118. Preview the dialog
  119. helpText
  120. Position
  121. controlPosition
  122. controlPosition 
  123. value
  124. Position of selected control in sialog units
  125. helpText
  126. 25,2523380952381,115.2
  127. TBKDialogCommand
  128. TBKDialogInit
  129. oldBar
  130. ,msgTxt
  131. ToolBar
  132. statusBar
  133. friend
  134. TBKDialogCommand
  135. TBKDialogDestroy
  136. TBKDialogInit hDlg, hWndFocus
  137.     translateWindowMessage 
  138.         on 0x0203 
  139. TBKDialogCommand 
  140. bCtrlID, hWndCtrl, msgNumber, ControlName
  141. ( = 0
  142. + bitAND 2) <> 0
  143. "ToolBar"
  144. StatusBar
  145.             oldBar = 
  146. statusBar
  147. msgTxt 
  148. ofriend)
  149. TBKDialogDestroy 
  150. field id 53
  151. friend
  152. Position:
  153. controlSize
  154. controlSize 
  155. value
  156. Size of selected control in sialog units
  157. helpText
  158. 237 x 17846153846153858.4615384615385
  159.                                         * * * Dialog Editor version 3.0 enhancements by Jeffrey Ayars * * *
  160. msgTxt
  161. Size:::::
  162. toggleState
  163. ToolPalette
  164. button
  165. ToolPalette
  166. selectedTool
  167. buttonClick
  168. select
  169. ToolPalette
  170. enterPage
  171. --This handler sets the selected 
  172. ToolPalette 
  173. Bthat
  174. --was clicked on
  175. buttonClick
  176. selectedTool 
  177. initializes 
  178. 35,48
  179. selectChars
  180. ToolPalette
  181. Button id 37 of Page id 1
  182. buttonPressed
  183. groupbox
  184. recTool
  185. Button id 40 of Page id 1
  186. invertedButton
  187. Button id 37 of Page id 1
  188. oldInvertedButton
  189. custom
  190. ctrlID
  191. checkbox
  192. ctrlID
  193. radiobutton
  194. ctrlID
  195. field
  196. ctrlID
  197. borderlessField
  198. ctrlID
  199. bitmap
  200. ctrlID
  201. singleSelectListbox
  202. ctrlID
  203. combobox
  204. ctrlID
  205. ctrlID
  206. select
  207. ctrlID
  208. groupbox
  209. ctrlID
  210. button
  211. ctrlID
  212. Button id 37 of Page id 1
  213. ToolPalette
  214. ge id 2
  215. groupboxScript
  216. to handle sized
  217.     set syssuspendmessages to true
  218.     set item 4 of bounds of item 2 of my objects to item 2 of my bounds + 255
  219.     set item 2 of bounds of item 1 of my objects to item 2 of my bounds + 60
  220.     set sysSuspendMessages to false
  221. selectedTool
  222. select
  223. lastRecTool
  224. ToolBar
  225. ToolBook Dialog Editor - <Untitled>
  226. ge id 3
  227. Dialog
  228. Page "Dialog"
  229. controlProperties
  230. Dialog
  231. ialog
  232. Page "ToolPalette"
  233. Page "ToolBar"
  234. Page "Help"
  235. ttonIDs
  236. System
  237. System
  238. Fo@_}
  239. MS Sans Serif
  240. Arial
  241. staticpropertiesinit
  242. aboutinit
  243. comboboxpropertiesinit
  244. icon id 100
  245. about
  246. ,G2687,Options
  247. EDIT Name,E235,
  248. iedit Layer,i245,
  249. iedit DropDownLength,i248,
  250. EDIT Items,E250,
  251. BUTTON sort,B270,TRUE
  252. BUTTON scroll,B18,FALSE
  253. BUTTON editable,B119,FALSE
  254. ,B1,TRUE
  255. ,B2,FALSE
  256. ,S252,Layer
  257. ,S254,Control ID:
  258. ,S251,Name
  259. ,S255,Combobox Items
  260. ,S253,Dropdown Length
  261. STATIC ID,S240,ID
  262. ,G2667,Style
  263. ,S253,Layer
  264. ,S254,Control ID:
  265. ,S252,Name
  266. ,S251,Listbox Items
  267. STATIC ID,S240,ID
  268. EDIT Name,E235,
  269. iedit Layer,i245,
  270. EDIT Items,E250,
  271. BUTTON single,B3392,FALSE
  272. ,B275,FALSE
  273. ,B280,FALSE
  274. ,B270,FALSE
  275. ,B1,TRUE
  276. ,B2,FALSE
  277. listboxpropertiesinit
  278. ,G4848,Justification
  279. ,S253,Layer
  280. ,S254,Control ID:
  281. ,S252,Name
  282. ,S6115,Initial Text
  283. ,S240,ID
  284. ,E235,
  285. ,i245,
  286. ,B255,FALSE
  287. ,B265,FALSE
  288. ,B260,FALSE
  289. ,E250,
  290. ,B205,FALSE
  291. ,B210,FALSE
  292. ,B215,FALSE
  293. BUTTON password,B2814,FALSE
  294. ,B220,FALSE
  295. ,B225,FALSE
  296. ,B200,FALSE
  297. ,B1,TRUE
  298. ,B2,FALSE
  299. editpropertiesinit
  300. ,G4828,Justification
  301. ,S252,Layer
  302. ,S253,Control ID
  303. ,S251,Name
  304. ,S254,Static Text
  305. ,S240,ID
  306. ,E235,
  307. ,i245,
  308. ,B255,FALSE
  309. ,B260,FALSE
  310. ,B265,FALSE
  311. ,E250,
  312. ,B270,FALSE
  313. ,B1,TRUE
  314. ,B2,FALSE
  315. iconpropertiesinit
  316. bitmapPropertiesInit
  317. LoadTemplateBOX
  318. ,S3151,Name
  319. ,S3154,Y Position
  320. ,S3155,X Position
  321. ,S2987,Caption
  322. EDIT Name,E3152,
  323. EDIT caption,E2988,
  324. iedit xpos,i3156,
  325. iedit ypos,i3157,
  326. ,B1,TRUE
  327. ,B2,FALSE
  328. dialogpropertiesinit
  329. falseCancelScript
  330. integerScript
  331.     N.r-"
  332. edit name,e235,
  333. edit caption,e240,
  334. iedit layer,i250,
  335. ,b1,TRUE
  336. ,b2,FALSE
  337. ,s253,Layer
  338. ,s252,Control ID:
  339. ,s254,Caption
  340. static ID,s245,ID 
  341. ,s255,Name
  342. groupboxpropertiesinit
  343. ,G2544,Icon
  344. ,S2532,Name 
  345. ,S2533,Control ID
  346. ,S2534,Layer
  347. STATIC ID,S2542,
  348. ICON Current Icon,h2547,icon "default"
  349. ,S2949,Icon Name 
  350. EDIT Name,E2540,
  351. iedit Layer,i2541,
  352. EDIT resourceName,E2950,
  353. ,B1,TRUE
  354. ,B2,FALSE
  355. BUTTON Choose Icon,B2543,FALSE
  356. PushButtonPropertiesINIT
  357. CheckRadioPropertiesBOX
  358. CheckRadioPropertiesINIT
  359. ,G2544,Bitmap
  360. ,S2532,Name 
  361. ,S2533,Control ID
  362. ,S2534,Layer
  363. STATIC ID,S2542,
  364. BITMAP Current Bitmap,p2553,
  365. EDIT Name,E2540,
  366. iedit Layer,i2541,
  367. ,S2964,Bitmap Name 
  368. EDIT resourceName,E2965,
  369. ,B1,TRUE
  370. ,B2,FALSE
  371. BUTTON Choose Bitmap,B2543,FALSE
  372. ,S2240,Name
  373. ,S2241,Layer
  374. ,S2242,Control ID
  375. STATIC ID,S2246,32789
  376. ,S2247,Control Class
  377. ,S2249,Control Text
  378. ,S2278,Control Style
  379. EDIT Name,E2243,
  380. iedit Layer,i2636,
  381. EDIT ClassName,E2248,
  382. iedit Style,i2279,
  383. EDIT Text,E2250,
  384. BUTTON OK,B1,TRUE
  385. BUTTON Cancel,B2,FALSE
  386. customPropertiesInit
  387. 524480,14,25,25,230,131,,,Pushbutton Properties,8,MS Sans Serif,,6,43,28,12,253,1342177280,130,Layer,0,,63,43,39,12,252,1342177280,130,Control ID:,0,,6,25,33,12,254,1342177280,130,Caption,0,,6,10,33,12,255,1342177280,130,Name,0,name,37,6,125,13,235,1350631552,129,,0,caption,37,24,125,13,240,1350631552,129,,0,layer,37,43,20,12,250,1350631552,129,,0,,6,57,129,43,4782,1342177287,128,Button Action,0,ControlID,103,43,60,44,3253,1350631746,133,,0,Accept,20,72,78,9,200,1342177289,128,&Accept changes,0,Discard,20,84,80,9,205,1342177289,128,Cance&l the changes,0,Default,6,103,74,12,230,1342242819,128,&Default Pushbutton,0,,176,6,50,14,1,1342242817,128,&OK,0,,176,23,50,14,2,1342242816,128,&Cancel,0
  388. PushButtonPropertiesBOX
  389. ,S253,Layer
  390. ,S252,Control ID:
  391. ,S254,Caption
  392. ,S255,Name
  393. EDIT name,E235,
  394. EDIT caption,E240,
  395. iedit layer,i250,
  396. ,G4782,Button Action
  397. COMBOBOX ControlID,C3253,
  398. BUTTON Accept,B200,FALSE
  399. BUTTON Discard,B205,FALSE
  400. BUTTON Default,B230,FALSE
  401. ,B1,TRUE
  402. ,B2,FALSE
  403. LoadTemplateINIT
  404. comboboxpropertiesBOX
  405. listboxpropertiesBOX
  406. editpropertiesBOX
  407. 524480,16,25,25,209,113,,,Checkbox/Radio button Properties,8,MS Sans Serif,,6,60,63,37,4786,1342177287,128,Button Style,0,,7,45,28,12,253,1342177280,130,Layer,0,,75,45,39,12,252,1342177280,130,Control ID:,0,,7,25,33,12,254,1342177280,130,Caption,0,ID,114,45,25,8,245,1342177280,130,ID ,0,,7,10,33,12,255,1342177280,130,Name,0,name,37,6,99,13,235,1350631552,129,,0,caption,37,24,99,13,240,1350631552,129,,0,layer,37,41,20,12,250,1350631552,129,,0,checkbox,13,72,49,9,180,1342308361,128,Check&box,0,radio,13,85,53,9,185,1342177289,128,&Radio button,0,,73,60,64,37,4782,1342308359,128,Default Value,0,true,78,72,41,9,200,1342308361,128,&True,0,false,78,85,40,9,205,1342177289,128,&False,0,,151,7,51,15,1,1342373889,128,&OK,0,,151,26,51,15,2,1342242816,128,&Cancel,0
  408. ,G4786,Button Style
  409. ,S253,Layer
  410. ,S252,Control ID:
  411. ,S254,Caption
  412. STATIC ID,S245,ID 
  413. ,S255,Name
  414. EDIT name,E235,
  415. EDIT caption,E240,
  416. iedit layer,i250,
  417. BUTTON checkbox,B180,FALSE
  418. BUTTON radio,B185,FALSE
  419. ,G4782,Default Value
  420. BUTTON true,B200,FALSE
  421. BUTTON false,B205,FALSE
  422. ,B1,TRUE
  423. ,B2,FALSE
  424. 524480,4,25,25,164,148,,,Load Dialog Template,8,MS Sans Serif,,6,6,91,9,3169,1342177280,130,Text,0,templates,6,17,92,110,3170,1352728579,131,,0,OK,108,6,50,14,1,1342242817,128,&Open,0,Cancel,108,22,50,14,2,1342242816,128,&Cancel,0
  425. ,S3169,Dialogs in book
  426. LISTBOX templates,L3170,
  427. BUTTON OK,B1,TRUE
  428. BUTTON Cancel,B2,FALSE
  429. staticpropertiesBOX
  430. dialogpropertiesBOX
  431. groupboxpropertiesBOX
  432. iconpropertiesBOX
  433. ID_OK
  434.     alogName
  435. about
  436. ID_OK
  437. 524480,16,25,25,241,153,,,Combobox Properties,8,Helv,,90,63,75,74,2687,1342177287,128,Options,0,Name,37,7,127,12,235,1350631552,129,,0,Layer,37,23,20,12,245,1350631552,129,,0,DropDownLength,71,42,27,12,248,1350631552,129,,0,Items,6,72,75,66,250,1352728708,129,,0,sort,103,82,53,12,270,1342242819,128,So&rt Items,0,scroll,103,99,53,12,18,1342242819,128,Scroll &Bar,0,editable,103,115,53,12,119,1342242819,128,&Editable,0,,183,6,52,15,1,1342242817,128,&OK,0,,183,24,52,15,2,1342242816,128,&Cancel,0,,5,26,27,12,252,1342177280,130,Layer,0,,70,26,42,12,254,1342177280,130,Control ID:,0,,5,9,24,12,251,1342177280,130,Name,0,,5,59,56,9,255,1342177280,130,Combobox Items,0,,5,45,62,12,253,1342177280,130,Dropdown Length,0,ID,112,26,36,8,240,1342177280,130,ID,0
  438. 524480,15,25,25,241,153,,,Listbox Properties,8,Helv,,92.00,46.00,78.00,59.00,2667,1342177287,128,Style,0,,6.00,25.00,34.00,12.00,253,1342177280,130,Layer,0,,94.00,26.00,39.00,12.00,254,1342177280,130,Control ID:,0,,6.00,8.00,24.00,10.00,252,1342177280,130,Name,0,,6.00,41.00,45.00,9.00,251,1342177280,130,Listbox Items,0,ID,137.00,26.00,28.00,10.00,240,1342177280,130,ID,0,Name,45.00,6.00,125.00,13.00,235,1350631552,129,,0,Layer,45.00,23.00,27.00,13.00,245,1350631552,129,,0,Items,6.00,53.00,80.00,74.00,250,1352728708,129,,0,single,96.00,62.00,70.00,10.00,3392,1342177289,128,&Single Selection,0,,96.00,76.00,70.00,12.00,275,1342177289,128,&Multiple Selection,0,,96.00,90.00,70.00,12.00,280,1342177289,128,&Extend Selection,0,,106.00,116.00,51.00,12.00,270,1342242819,128,So&rt Items,0,,182.00,5.00,51.00,15.00,1,1342242817,128,OK,0,,182.00,22.00,51.00,15.00,2,1342242816,128,Cancel,0
  439. 524480,15,25,25,198,142,,,Static Properties,8,Helv,,75.00,21.00,51.00,50.00,4828,1342177287,128,Justification,0,,7.00,30.00,34.00,12.00,252,1342177280,130,Layer,0,,7.00,49.00,36.00,10.00,253,1342177280,130,Control ID,0,,7.00,9.00,24.00,12.00,251,1342177280,130,Name,0,,7.00,65.00,55.00,9.00,254,1342177280,130,Static Text,0,,47.00,49.00,25.00,8.00,240,1342177280,130,ID,0,,45.00,8.00,82.00,12.00,235,1350631552,129,,0,,45.00,28.00,20.00,12.00,245,1350631552,129,,0,,83.00,30.00,34.00,12.00,255,1342308361,128,&Left,0,,83.00,42.00,34.00,12.00,260,1342177289,128,&Right,0,,83.00,54.00,34.00,12.00,265,1342177289,128,&Center,0,,7.00,76.00,119.00,29.00,250,1352859780,129,,0,,7.00,110.00,51.00,12.00,270,1342242819,128,&Border,0,,141.00,8.00,51.00,15.00,1,1342242817,128,OK,0,,141.00,25.00,51.00,15.00,2,1342242816,128,Cancel,0
  440. bitmapPropertiesBOX
  441. customPropertiesBOX
  442. ID_OK
  443. ID_OK
  444. ID_OK
  445. ID_OK
  446. ID_OK
  447. ID_OK
  448. aboutBox
  449. 524480,10,25,25,209,82,,,Dialog Frame,8,Helv,,9.00,8.00,36.00,8.00,3151,1342177280,130,Caption,0,,82.00,49.00,36.00,8.00,3154,1342177280,130,Y Position,0,,8.00,49.00,36.00,8.00,3155,1342177280,130,X Position,0,,9.00,26.00,36.00,8.00,2987,1342177280,130,Caption,0,Name,53.00,7.00,94.00,12.00,3152,1350631552,129,,0,caption,53.00,25.00,94.00,12.00,2988,1350631552,129,,0,xpos,52.00,47.00,18.00,12.00,3156,1350631424,129,,0,ypos,126.00,47.00,18.00,12.00,3157,1350631424,129,,0,,154.00,6.00,51.00,14.00,1,1342242817,128,&OK,0,,154.00,22.00,51.00,14.00,2,1342242816,128,&Cancel,0
  450. 524480,10,25,25,124,114,,,Groupbox Control,8,Helv,name,46,6,74,12,235,1350631424,129,,0,caption,46,21,74,12,240,1350631552,129,,0,layer,46,36,20,12,250,1350631424,129,,0,,69,66,51,15,1,1342242816,128,OK,0,,69,84,51,15,2,1342242816,128,Cancel,0,,5,39,34,12,253,1342177280,130,Layer,0,,5,55,39,12,252,1342177280,130,Control ID:,0,,5,23,33,12,254,1342177280,130,Caption,0,ID,46,55,36,8,245,1342177280,130,ID ,0,,5,8,33,12,255,1342177280,130,Name,0
  451. 524480,13,25,25,209,124,,,Icon Properties,8,MS Sans Serif,,59.00,57.00,45.00,48.00,2544,1342177287,128,Icon,0,,6.00,12.00,22.00,10.00,2532,1342177280,130,Layer,0,,73.00,29.00,37.00,9.00,2533,1342177280,130,Control ID:,0,,5.00,28.00,26.00,10.00,2534,1342177280,130,Layer,0,ID,111.00,28.00,22.00,10.00,2542,1342177280,130,Text,0,Current Icon,72.00,74.00,19.00,20.00,2547,1342177283,130, ,0,,5.00,45.00,38.00,10.00,2949,1342177280,130,Layer,0,Name,43.00,10.00,95.00,12.00,2540,1350631552,129,,0,Layer,43.00,26.00,22.00,12.00,2541,1350631552,129,,0,resourceName,43.00,42.00,95.00,12.00,2950,1350631552,129,,0,,151.00,7.00,51.00,15.00,1,1342242817,128,OK,0,,151.00,26.00,51.00,15.00,2,1342242816,128,Cancel,0,Choose Icon,151.00,53.00,51.00,15.00,2543,1342242816,128,Choose &Icon,0
  452. 524480,13,25,25,209,142,,,Bitmap Properties,8,MS Sans Serif,,7.00,58.00,133.00,68.00,2544,1342177287,128,Bitmap,0,,7.00,12.00,22.00,10.00,2532,1342177280,130,Layer,0,,79.00,32.00,37.00,9.00,2533,1342177280,130,Control ID:,0,,7.00,32.00,26.00,10.00,2534,1342177280,130,Layer,0,ID,117.00,32.00,23.00,10.00,2542,1342177280,130,Text,0,Current Bitmap,28.00,72.00,96.00,50.00,2553,1342177280,TBKDLGBitmap,,0,Name,42.00,10.00,98.00,12.00,2540,1350631552,129,,0,Layer,42.00,30.00,23.00,12.00,2541,1350631552,129,,0,,6.00,49.00,46.00,10.00,2964,1342177280,130,Layer,0,resourceName,53.00,47.00,87.00,12.00,2965,1350631552,129,,0,,151.00,7.00,54.00,15.00,1,1342242817,128,OK,0,,151.00,26.00,54.00,15.00,2,1342242816,128,Cancel,0,Choose Bitmap,151.00,53.00,54.00,15.00,2543,1342242816,128,Choose &Bitmap,0
  453. ID_OK
  454. ID_OK
  455. normalScript
  456. viewerScript
  457. to handle buttonClick
  458.     hide this window
  459. trueAcceptScript
  460. to handle buttonClick
  461.     close this window
  462. 524480,14,25,25,241,153,,,Custom Control Properties,8,MS Sans Serif,,7.00,10.00,25.00,12.00,2240,1342177280,130,Text,0,,7.00,31.00,22.00,12.00,2241,1342177280,130,Text,0,,81.00,31.00,37.00,10.00,2242,1342177280,130,Text,0,ID,124.00,30.00,27.00,10.00,2246,1342177280,130,Text,0,,6.00,49.00,45.00,12.00,2247,1342177280,130,Text,0,,5.00,87.00,42.00,12.00,2249,1342177280,130,Text,0,,6.00,68.00,45.00,12.00,2278,1342177280,130,Text,0,Name,40.00,10.00,123.00,12.00,2243,1350631552,129,,0,Layer,40.00,29.00,29.00,12.00,2636,1350631552,129,,0,ClassName,55.00,47.00,107.00,14.00,2248,1350631552,129,,0,Style,55.00,66.00,107.00,14.00,2279,1350631552,129,,0,Text,55.00,86.00,107.00,50.00,2250,1352728580,129,,0,OK,179.00,10.00,54.00,14.00,1,1342242817,128,&OK,0,Cancel,179.00,28.00,54.00,14.00,2,1342242816,128,&Cancel,0
  463. 524480,6,50,25,137,146,,,About Dialog,8,MS Sans Serif,,6,50,127,50,12,1342177287,128,,0,OK,49,115,40,14,1,1342242817,128,&OK,0,,7,9,18,20,6,1342177283,130, ,0,,9,60,120,34,8,1342177281,130,Text,0,,5,32,126,18,9,1342177281,130,Text,0,,33,14,100,12,10,1342177281,130,Text,0
  464. ,G12,
  465. BUTTON OK,B1,TRUE
  466. ,h6,icon "Dlg_MyAppIcon"
  467. ,S8,All of the dialogs used in this application were created with this application and use the TB30DLG.DLL.
  468. ,S9,Copyright 
  469.  1991-1994 Asymetrix Corporation.
  470. ,S10,ToolBook Dialog Editor v 3.0
  471. ID_OK
  472. ID_OK
  473. ID_OK
  474. ID_OK
  475. ID_OK
  476. ID_OK
  477. ID_OK
  478. ID_OK
  479. ID_OK
  480. ID_OK
  481. ID_OK
  482. ID_OK
  483. ID_OK
  484. buttonIDs
  485. ID_OK
  486. ID_CANCEL
  487. 5alogName
  488. foobar
  489. 5    set retValue to dialog(_DLGNAME_BOX of this book, init)
  490.     --get getValue(retValue, "")  --DLL function
  491.     unlinkDLL "TB30DLG.DLL"
  492. to handle show_DLGNAME_
  493.     open viewer _DLGNAME_
  494.     --uncomment the following lines to do initialization
  495.     --in viewer _DLGNAME_
  496.     --    initialize objects before showing the viewer
  497.     --end
  498.     show viewer _DLGNAME_ as modal
  499.     --if the viewer is still open then a true/Accept
  500.     --button was pressed
  501.     if isOpen of viewer _DLGNAME_
  502.         --uncomment the following lines to retrieve
  503.         --information from the dialog
  504.         --in viewer _DLGNAME_
  505.         --    get the data from the objects here
  506.         --end
  507.     --otherwise the dialog was canceled
  508.     else
  509.         --do anything here to clean up after a cancel
  510. to handle keyChar key
  511.     if ANSIToChar(key) is in "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890@_"
  512.         set character (item 2 of caretLocation + 1) of my password to ANSIToChar(key)
  513.         set character (item 2 of caretLocation + 1) of my text to "*"
  514.         increment item 2 of caretLocation
  515.     else
  516.         forward
  517. to handle show_DLGNAME_
  518.     --Move linkDLL statement to enterApplication handler
  519.     linkDLL "tb30dlg.dll"
  520.         string dialog(string, string)
  521.         string setValue(string, string, string)
  522.         string getValue(string, string)
  523.     set init to _DLGNAME_Init of this book
  524.     --set init to setValue(init,"","")  --DLL function
  525.     set retValue to dialog(_DLGNAME_BOX of this book, init)
  526.     --get getValue(retValue, "")  --DLL function
  527.     unlinkDLL "TB30DLG.DLL"
  528. --This handler sets the buttons 
  529. ToolBar 
  530. correct toggle state
  531. translates 
  532. emessages 
  533. WM_SETCURSOR 
  534. WM_NCRIGHTBUTTONDOWN
  535. initViewer
  536. toggleState (
  537. ) = down) 
  538.     translateWindowMessage 
  539. oclienthandle
  540.         on 0x00A4 
  541.         on 0x0020 
  542. setCursor 
  543. owindowhandle
  544.         on 0
  545.         on 0x0204 
  546. closes 
  547. editor 
  548. closeWindow
  549. he cursor 
  550. arrow 
  551. ever 
  552. hWnd, msg, hWndmsg, hitTest, mouseMessage
  553. 4s_CurrentCursor
  554.   = 0x0200 
  555.  <> 4
  556. keeps 
  557. sync 
  558. control key.
  559. controlState isControl
  560. 4LOGICAL s_controlState
  561. enables/disables 
  562. menuItems 
  563. cdepending on the
  564. much 
  565. taken 
  566. cstates 
  567. rest 
  568. --toolbar 
  569. enterMenu menuName, menuAlias
  570. 4OBJECT s_dialogWindow
  571. 4undoFlag
  572. 4logical s_Browse    
  573. R = "
  574. isOpen 
  575. --Keep 
  576. menuItemEnabled("
  577. "dlgUndo"
  578.  = "Redo"
  579. setMenuItemName("
  580. ,, "Re&
  581. z"&TAB&"Ctrl+Z")
  582. S, "&
  583.  = "Cannot 
  584. "CutControl"
  585. Copy")
  586. "CopyControl"
  587. Paste")
  588. "PasteControl"
  589. "DeleteControl"
  590. clearDialog")
  591. "deleteControl"
  592. ) = 1 
  593. controlProperties 
  594. ) > 1 
  595. "ControlProperties"
  596. ) > 1 
  597. GroupControls", "&
  598. ) = 1 
  599. ) > 1
  600. c"AlignControls" 
  601.  = "File"
  602. enabled 
  603. B"ShowDialog"
  604. "saveDialog"
  605. "saveDialogAs"
  606. "build"
  607. "BuildViewer"
  608. "buildViewer"
  609.  = "view"
  610. "PreviewDialog"
  611.  = "help"
  612. , "Edit Editor"&
  613. Q, "Return 
  614. appripriate 
  615. cselections
  616. menuItemSelected 
  617.         focusWindow = 
  618.  = "DlgUndo"
  619.             --
  620.  = "AlignLeft"
  621. '     = "AlignTop"
  622. Q     = "AlignRight"
  623. }     = "Alignbottom"
  624.      = "Preview3D"
  625. xmenuItemChecked("
  626. browse 
  627. --This handler sets the 
  628. ToolPalette 
  629. editor 
  630. --sizes 
  631. translates 
  632. IWM_SETCURSOR
  633. emessage
  634. openWindow
  635. 4OBJECT s_dialogWindow
  636. oparenthandle 
  637. windowhandle 
  638. oclientSize 
  639. Z) - (
  640. + 10), \
  641. oselectedTool 
  642.     translateWindowMessage 
  643. oclienthandle
  644.         on 0x0020 
  645. setCursor 
  646. he cursor 
  647. arrow 
  648. over 
  649. NhWnd, msg, hWndmsg, hitTest, mouseMessage
  650. 4s_CurrentCursor
  651.  = 0x0200 
  652.  <> 4
  653. sysTool 
  654. value, 
  655. --non-ToolBook 
  656. Fsends 
  657. correct 
  658. depressed.
  659. gives 
  660. spacebar
  661. --toggle between 
  662. Jbehavior 
  663. "bitmap"
  664. "icon"
  665. "groupbox"
  666. "custom"
  667. olastRecTool 
  668. returns 
  669. Toolpalette.
  670. invertedButton 
  671. --This handler gets the 
  672. {that 
  673. Bwas let up over, checks 
  674. --see 
  675. a member 
  676. , inverts 
  677. uninverts 
  678. --other inverted 
  679. sends 
  680. a click.
  681. objectFromPoint(
  682. isChild(
  683. toggleInvert 
  684. obuttonPressed
  685. buttonClick 
  686. saves 
  687. clicked down on 
  688. FALSE
  689. toggleObject 
  690.         LockScreen 
  691. "ToolPalette" = TRUE
  692. oinvertedButton 
  693. ooldInvertedButton 
  694. determins 
  695. objectInQuestion a child (
  696. --subgroup) specified 
  697. parentInQuestion
  698. --These handlers 
  699. status bar help 
  700. isOpen 
  701. "ToolBar"
  702. "Toolbar"
  703. statusbar 
  704. "Draws a"&&
  705. saved states 
  706. oldState userProperty
  707. ZSTACK 
  708. ToolBar 
  709. ToolPalette 
  710. OldState
  711. lineEndsPalette 
  712. Oldstate
  713. buttonClick
  714. 4OBJECT s_dialogWindow
  715. isOpen 
  716. focusWindow 
  717. >= "Button"
  718. toggleState (
  719. ) = down)
  720. menuItemSelected "
  721. U", "dlgUndo" 
  722. "Toolbar"
  723. enabled 
  724. B"showDialog" 
  725. "ToolBar") 
  726. ) > 0)
  727. WMKeyDown 0, 0, 
  728. WMKeyUp 0, 0, 
  729. statusBar 
  730. helpText 
  731. 4OBJECT s_dialogWindow
  732. lockScreen 
  733.     sysSuspendMessages = 
  734.         "dlgBox" 
  735.         "dlgInit" 
  736. buildFrame 
  737. buildItems 
  738. FALSE
  739. --This handler builds the part 
  740. s_DialogTemplate 
  741. ^that has 
  742.  box frame 
  743. style.
  744. buildDialogHeader
  745.     --calculate 
  746. , convertint 
  747. clientSize 
  748. pixels, 
  749. Fcaluclating 
  750. width 
  751.     --because 
  752.  includes 
  753. Kbut 
  754. sysPageUnitsPerPixel)
  755.     frameWidth = 
  756. pixelsToDlgUnits(
  757.     cx = 
  758.     cy = 
  759. fontName 
  760. ptSize are already 
  761. they 
  762. used elsewhere
  763.     fontPtSize = 
  764. = 524480 --DS_MODALFRAME + DS_SETFONT + WS_SYSMENU 
  765. "," & 0 
  766. "," & xPos 
  767. "," & yPos 
  768. "," & cx 
  769. "," & cy 
  770. "," & 
  771. "," & 
  772. "," & 
  773. controls 
  774. sets up 
  775. initialValues
  776. each 
  777. , too.
  778. buildDialogItems
  779. , s_InitialValues
  780. ZSTACK objectList, tempControls, 
  781. ZARRAY STRING CtrlProperties[5]
  782.     WS_VISIBLECHILD = 1342177280
  783.     WS_TABSTOP = 65536
  784.     WS_GROUP = 131072
  785.     WS_BORDER =
  786. 8388608
  787.     ObjectList = 
  788. currentPage 
  789. )least one CurrentControl 
  790. been defined, 
  791. property
  792. wsgroup 
  793.     --Step through 
  794. we find a 
  795.  outside 
  796. . Use 
  797. hold 
  798. without 
  799. ToolBook
  800. "controlProperties" 
  801.             groupObjects = 
  802. "," & 
  803. preControl 
  804. "," & 
  805.     nitems = 
  806.     --Maximum 
  807. allowable
  808. 1> 100
  809. "Only 100 
  810. lowed.
  811. If you proceed,"&&\
  812. above 
  813. K101 will be ignored." 
  814. f"&Continue" 
  815. "Cancel"
  816.     --Walk 
  817. setup 
  818.  strings.
  819. currentControl
  820.             ctrlProperties = 
  821. pageUnitsToDlgUnits(
  822.             xSize = 
  823.             ySize = 
  824. "BUTTON"
  825. --Text 
  826.  Caption
  827. ctrlText = 
  828. class = 128
  829. ctrlStyle = 
  830. begins 
  831. ends a 
  832. Fgive 
  833. -- 9 
  834. BS_RADIOBUTTON
  835. -- 3 
  836. BS_CHECKBOX
  837. "pushbutton" 
  838. -- 1 
  839. WS_DEFPUSBUTTON
  840. initValue = 
  841. -- 0 
  842. ES_LEFT
  843. -- 1 
  844. ES_CENTER
  845. -- 2 
  846. ES_RIGHT
  847. fieldType 
  848. WordWrap
  849. -- 4 
  850. ES_MULTILINE
  851. -- 2097152 
  852. WS_VSCROLL
  853. H2097152
  854. -- 1048576 
  855. WS_HSCROLL
  856. H1048576
  857. -- 64 
  858. ES_AUTOHSCROLL
  859. -- 128 
  860. ES_AUTOVSCROLL
  861. -- 32 
  862. ES_PASSWORD
  863. [1] = "iedit"
  864. "static"
  865. "LISTBOX"
  866. --LBS_notify
  867. H2097152
  868. [4] = 
  869. --LBS_SORT
  870. [4] = 
  871. --LBS_MULTIPLESEL
  872. [4] = 
  873. --LBS_EXTENDSEL
  874. H2048
  875. "COMBOBOX"
  876. + 64 + 2    -- 64 
  877. CBS_AUTOHSCROLL
  878. -- 2 
  879. CBS_DROPDOWN
  880. scrollable 
  881. H2097152
  882. sortItems 
  883. --CBS_SORT
  884. Editable 
  885. * lineCount 
  886. dropDownItems 
  887. "GROUPBOX"
  888.     [1] 
  889. c"ICON"
  890. H3 --Icon
  891. normalGraphic 
  892. c"BITMAP"
  893.     "TBKDLGBitmap"
  894. ) <> 0
  895. ) - 2 
  896. ) <> 0
  897. ) - 2 
  898. c"CUSTOM"
  899. isType(REAL, 
  900. bitOR 
  901. addDialogItem (
  902. [2], 
  903. , 0, 
  904. [1], 
  905. extra 
  906. ctrlName, ctrlID, 
  907. , extraBytes, ctrlType, 
  908. there 
  909. specified, don't 
  910. "," &
  911. "," &
  912. "," &
  913. "," &
  914. "," &
  915. "," &
  916. "," &
  917. "," &
  918. "," &
  919. "," &
  920.             --Bitmaps 
  921. f"p" 
  922. picture 
  923. "b" was taken 
  924.  & "," & "p" & 
  925.  & "," & 
  926. o(1) 
  927. "," & "p" & 
  928.  & "," & 
  929. o(1) 
  930.             --Icons 
  931. f"h" 
  932. always 
  933.  & "," & "h" & 
  934.  & "," & 
  935. o(1) 
  936. "," & "h" & 
  937.  & "," & 
  938. o(1) 
  939.             --Custom 
  940. f"u" 
  941. userDefined 
  942. Hcombobox
  943.  & "," & "u" & 
  944.  & "," & 
  945. o(1) 
  946. "," & "u" & 
  947.  & "," & 
  948. o(1) 
  949.  & "," & 
  950.  & "," & 
  951. o(1) 
  952. "," & 
  953.  & "," & 
  954. o(1) 
  955. handy 
  956. savvy users who want 
  957. their own values, 
  958. based on those 
  959. debugging purposes 
  960. being
  961. --written.)
  962. buildfromVar pdlgBox, pdlgInit
  963.  representation 
  964.  specifed 
  965. --dialogTemplate 
  966. (See 
  967. "main"
  968. see how 
  969. converted 
  970. called 
  971. following handlers:
  972. --    openDialog
  973.  frameHeight, 
  974. , xPosition, yPosition
  975. eshowing 
  976. xpos 
  977. ypos 
  978. dlgUnitsToPixels(
  979. sizeToViewer 
  980. 4groupItems, dontMakeGroup
  981. ctrlProps, 
  982. dx, dy, cx, cy, ctrlClass
  983. ZDWORD 
  984. controlDefStack
  985. C     = 2
  986. y = 5
  987.         makeLastGroup = 
  988.         inGroup = 
  989. [groupitems
  990. [off 
  991. description 
  992. leave just 
  993.  information.
  994.             --reset 
  995.  array 
  996.             fill 
  997. bytes 
  998. editor
  999. ] = "
  1000. have 7 
  1001. ,!ctrlstyle
  1002. bitAnd 0x0000000F ) = 7
  1003. newObj = drawControl("
  1004. , dx, dy,cx,cy)
  1005. ] = "
  1006. --It 
  1007.  types
  1008. ~ol("
  1009. , dx, dy, cx, cy)
  1010. ] = "
  1011. ="ctrlsytle
  1012. ) = 9
  1013. ) = 3
  1014. a PUSHBUTTON
  1015. "DEFPUSHBUTTON
  1016. ) = 1)
  1017. ] = 1
  1018. removeButtonID("ID_OK")
  1019. ] = 2
  1020. +_CANCEL")
  1021. getValue(
  1022. K , "b" & 
  1023. ] = 129 
  1024. c"EDIT"
  1025. , dx, dy, cx, cy)
  1026. ] = "
  1027. --Has Vertical ScrollBar
  1028. ) >= 1 )
  1029. EHorizontal 
  1030. ) >= 1 )
  1031. --AutoHorizontal 
  1032. 80) >= 1 )
  1033. --AutoVertical 
  1034. 40) >= 1 )
  1035. --Password
  1036. 20) >= 1 ) 
  1037. --MulitLine
  1038. 4) >= 1 ) 
  1039. SingleLineWrap
  1040. integer only 
  1041. ", "i" & 
  1042. P#,"e" & 
  1043. allignment
  1044. 2) >= 1
  1045. 1) >= 1
  1046. "STATIC"
  1047. 3) = 3
  1048. , dx, dy, cx, cy)
  1049. ] = "
  1050. j$, "h" & 
  1051. targetBook 
  1052. 8"&"E&
  1053. , dx, dy, cx, cy)
  1054. ] = "
  1055. ) >= 1
  1056. 2) >= 1
  1057. 1) >= 1
  1058. %,"s" & 
  1059. ] = 131 
  1060. ] = "
  1061. l("listbox", dx, dy, cx, cy) 
  1062. ] = "
  1063. --assume single 
  1064. --ExtendSelect
  1065. 800) >= 1
  1066. --MulitSelect
  1067. 8) >= 1
  1068. --Sort
  1069. T    2) >= 1 )
  1070. `',"l" & 
  1071. ] = 133 
  1072. ] = "
  1073. , dx, dy, cx, cy) 
  1074. ] = "
  1075. ) >= 1 ) 
  1076. 256) >= 1 )
  1077. editable 
  1078. 1) >= 1 )
  1079. M(,"c" & 
  1080. ] = "
  1081. , dx, dy, cx, cy)
  1082. ] = "
  1083. (, "p" & 
  1084. ] = "
  1085. , dx, dy, cx, cy)
  1086. ] = "
  1087. p), "h" & 
  1088. , dx, dy, cx, cy)
  1089. ] = "
  1090.             toggle = 
  1091.             --Check 
  1092. beginning 
  1093. ) >= 1
  1094. !.         
  1095. makeGroup 
  1096.             -- If 
  1097. $.signifies 
  1098.             -- 
  1099. another 
  1100. &made 
  1101. i = 1 
  1102. frequently 
  1103. signify 
  1104. --so 
  1105. denoted 
  1106. unless 
  1107. x, y, 
  1108. )/, height
  1109. ZPOINT upperLeft, lowerRight
  1110.  = dlgUnitsToPageUnits(x, y)
  1111. s(x + 
  1112. /, y + 
  1113. "TEMP"
  1114. + 100, 
  1115. - 60 
  1116. - 150, 
  1117. + 195
  1118. label
  1119. groupboxScript 
  1120. "ToolPalette"
  1121. "singleSelect"
  1122. useWindowsColors 
  1123. .Place Holder"
  1124. RECTANGLE
  1125. WHITE
  1126. icon 
  1127. holder"
  1128. = NULL
  1129. "DrawItem"&&
  1130. &&"failed"
  1131. manage 
  1132. !4grouping 
  1133. tempSel 
  1134. ) < 2
  1135. --This handler keeps the status fields 
  1136. ToolBar 
  1137. -buttons on 
  1138.  enabled state current 
  1139. --sets 
  1140. Xbar 
  1141. _currently selected 
  1142. selectionChanged
  1143. 4OBJECT s_dialogWindow
  1144. ZARRAY STRING ctrlProperties[5]
  1145. 9electedControl
  1146. -ControlName
  1147. isOpen 
  1148. duplicate, bring 
  1149. front, 
  1150. toolbar
  1151. "ItemSelected" 
  1152. a multiple 
  1153. selectedControl = 
  1154. will have a controlProperties userProperty 
  1155. pageUnitsToDlgUnits(
  1156. controlPosition 
  1157. controlSize 
  1158.  = "<Untitled>"
  1159. statusBar 
  1160. 1] && 
  1161. --disable 
  1162. FALSE
  1163. xPos 
  1164. , yPos 
  1165. --calculate 
  1166. Dialog 
  1167. --includes 
  1168. Kbut 
  1169. frame width.
  1170. clientSize 
  1171.  DIV 
  1172. sysPageUnitsPerPixel
  1173. frameWidth 
  1174. pixelsToDlgUnits(
  1175. dialogName 
  1176.  = "<
  1177. "DIALOG" && 
  1178. B"showDialog" 
  1179. ) > 0)
  1180. --controls 
  1181. %well 
  1182. %converts 
  1183. drawn 
  1184. custom, groupbox, bitmap,
  1185. icon 
  1186. correct 
  1187. array tells
  1188. editor functions 
  1189. create 
  1190.  templates.
  1191. Celements are:
  1192. [1] = 
  1193. Type        - internal 
  1194. [2] = 
  1195. ID            - 
  1196. {ID except 
  1197. pushButtons
  1198. [3] = 
  1199. Text        - 
  1200. [4] = 
  1201. Style bits    - values depend on 
  1202.  class
  1203. [5] = 
  1204. Class        - actual 
  1205. 4LOGICAL s_dirty
  1206. 4s_undoFlag
  1207.     --don't want 
  1208. zanything 
  1209. copying 
  1210.     --suspend 
  1211. 4messages so creating 
  1212. doesn't
  1213. more makes
  1214.     sysSuspendMessages = 
  1215. , we 
  1216. ><> "
  1217. useWindowsColors 
  1218. drawDirect 
  1219.             --If a 
  1220. gets 
  1221.  type
  1222. lockScreen 
  1223. so we can find 
  1224. "TEMP"
  1225.  place holder
  1226. selectedTool 
  1227. "ToolPalette" 
  1228. "Bitmap 
  1229. Place Holder"
  1230. excludeTab 
  1231.     1] = "BITMAP"
  1232. 2] = 
  1233.  = "TBKDLGBitmap"
  1234. newObj = 
  1235. "             
  1236. normalGraphic 
  1237. (32 * 
  1238. l),(32 * 
  1239. 1] = "ICON"
  1240. 2] = 
  1241. 3] = "comment"
  1242.  = "130"
  1243. a groupBox    
  1244. + 70, 
  1245. - 70 
  1246. - 150, 
  1247. + 195
  1248. label
  1249. "GROUP BOX"
  1250. groupboxScript 
  1251. 1] = "GROUPBOX"
  1252. 2] = 
  1253. 3] = 
  1254.  = "128"
  1255. "Custom 
  1256. 1] = "
  1257. ctrlproperties[2] = 
  1258. "radioButton"
  1259. 1] = "BUTTON"
  1260. 2] = 
  1261. 3] = 
  1262. --style 
  1263.  defPushButton, 
  1264. 4] = "
  1265.  = "128"
  1266. 1] = "
  1267. 2] = 
  1268. 3] = 
  1269. 4] = "
  1270.  = "128"
  1271. 1] = "
  1272. 2] = 
  1273. 3] = 
  1274. 4] = "
  1275.  = "128"
  1276. fieldType 
  1277. x"singleSelect"
  1278. 1] = "EDIT"
  1279. 2] = 
  1280. 3] = 
  1281.  vScroll, hScroll, auto 
  1282. Password, integerOnly
  1283. 4] = "
  1284.  = "129"
  1285. singleLineWrap
  1286. 1] = "STATIC"
  1287. 2] = 
  1288. 3] = 
  1289.  = "130"
  1290. 1] = "LISTBOX"
  1291. 2] = 
  1292. 3] = 
  1293. , extendSelect, multiselect, 
  1294. 4] = "
  1295.  = "131"
  1296. >= "combobox"
  1297. 1] = "COMBOBOX"
  1298. 2] = 
  1299. 3] = 
  1300.  = "133"
  1301.         --If 
  1302. >already has 
  1303. duplicated 
  1304. pasted 
  1305.         --we need 
  1306. update its ID 
  1307. 2] = 
  1308. ^that 
  1309. used 
  1310.     --on 
  1311. toolBar 
  1312. menuItemEnabled("
  1313. "Toolbar") 
  1314.  = "Undo"
  1315.  = "Cannot 
  1316. preview 
  1317. ) > 0)
  1318.  sure 
  1319. each 
  1320. even 
  1321.  unit
  1322. moved
  1323. ystem 
  1324. moving 
  1325. another 
  1326.  per DialogUnit 
  1327. down 
  1328. nearest
  1329. DlgUnitsToPageUnits(1, 1)
  1330.     dx = 
  1331.     dy = 
  1332.     x = 
  1333.     y = 
  1334. (x / dx) * dx, 
  1335. (y / dy) * dy
  1336.     --on 
  1337. sized
  1338. hight, 
  1339. itself
  1340. (1, 1)
  1341.     dx = 
  1342.     dy = 
  1343.     x = 
  1344.     y = 
  1345. (x / dx) * dx
  1346. (x / dx) * dx, 
  1347. (y / dy) * dy
  1348.     --on 
  1349. updates 
  1350. delete 
  1351.     --Put 
  1352. was ID_OK 
  1353. ID_CANCEL
  1354. PUSHBUTTON
  1355. 2] = 1
  1356. addButtonID("
  1357. 2] = 2
  1358. removed 
  1359. Xthings
  1360.     --on 
  1361. --KLUDGE
  1362. --If 
  1363. shut 
  1364. gone so checking
  1365. cause 
  1366. Turn 
  1367. ES off 
  1368. --End 
  1369. ) > 0)
  1370. --This handler sets the 
  1371. editor 
  1372. another
  1373. translate 
  1374. *windows messages I want 
  1375. openWindow
  1376. 4OBJECT s_dialogWindow
  1377. ZLOGICAL sls
  1378. = TRUE
  1379. parentHandle 
  1380. windowHandle 
  1381. "ToolBar"
  1382. "ToolPalette"
  1383. initViewer
  1384. ocurrentPage 
  1385. oclientSize
  1386. updates 
  1387. q buttons on entering 
  1388. enterWindow
  1389. "Toolbar"
  1390. enabled 
  1391. menuItemEnabled("
  1392. B"showDialog" 
  1393. ) > 0
  1394. selectionChanged 
  1395. makes sure 
  1396. user about saving 
  1397. --closing 
  1398. closeWindow
  1399. checkSave
  1400. clearDialog FALSE
  1401. translates 
  1402. 4s_frameWidth
  1403.  DIV 
  1404. sysPageUnitsPerPixel
  1405.     translateWindowMessage 
  1406. oclienthandle
  1407.         on 0x0020 
  1408. setCursor 
  1409.         on 0x00A4 
  1410.         on 0x0204 
  1411.         on 0x0203 
  1412.         on 0x0100 
  1413. WMkeyDown 
  1414.         on 0x0101 
  1415. WMkeyUp 
  1416.         on 0x0104 
  1417. WMKeyDown 
  1418. owindowhandle
  1419.         on 0
  1420. he cursor 
  1421. either 
  1422. ,mode arrow 
  1423. cross hairs
  1424. --depending on 
  1425. value 
  1426. sysTool.
  1427. It also 
  1428. has been toggled 
  1429. hWnd, msg, hWndmsg, hitTest, mouseMessage
  1430. 4s_CurrentCursor
  1431.   = 0x0200 
  1432.             --
  1433. correct custom 
  1434. B(LastRecTool 
  1435.             --
  1436. ToolBook tools, 
  1437. corrisponding 
  1438. B, radioButton, 
  1439. Y, borderlessField, 
  1440. , singleSelectListbox, combobox"
  1441. enables/disables 
  1442. menuItems 
  1443. --state 
  1444. much 
  1445. taken 
  1446. cstates 
  1447. rest 
  1448. --toolbar 
  1449. menuItemSelected menuName, menuAlias
  1450. _Browse
  1451. browse 
  1452. xs_Browse
  1453. sized
  1454. isOpen 
  1455.  = "dialogFrame" 
  1456. sizeToViewer 
  1457. --This handler initializes the editor.
  1458. It links 
  1459. DLLs used 
  1460. +ToolBar, Dialog, 
  1461. ToolPalette viewers, 
  1462. Ftranslates 
  1463. emessages 
  1464. enterApplication
  1465. 4OBJECT s_dialogWindow
  1466. 4WORD s_CurrentCursor
  1467. sysRuntime
  1468.  requires 
  1469. authoring version 
  1470. ToolBook."
  1471. = TRUE
  1472. p = 1
  1473. initDLLs
  1474. initEditor
  1475. following 
  1476. use a 
  1477. ,mode extension 
  1478. within 
  1479.     --For now, I don't want 
  1480. kloaded 
  1481. instance.
  1482. newDialog
  1483. focusWindow 
  1484. = FALSE
  1485. --Prevent nested 
  1486. , they have no meaning 
  1487.  templates
  1488. ) > 1 
  1489.             --
  1490. xallow 
  1491. --Only 
  1492. be shown 
  1493. s_Browse 
  1494. 4LOGICAL 
  1495. --only 
  1496. rightClick access 
  1497. rightbuttonDown
  1498. --Display 
  1499. user 
  1500. choose 
  1501. font 
  1502. 4s_DialogTemplate
  1503.     oldSelection = 
  1504. currentPage 
  1505. --KLUDGE
  1506. enabled 
  1507. sysOpenWindows 
  1508.     newFont = ChooseFontDlg(
  1509. &", 0,0,0,
  1510. 7", "forceExists,noGDI,noVector,screen")
  1511. --END 
  1512. contents
  1513. dlg_WinHelp(windowHandle 
  1514. .hlp",257,"
  1515.  INITIALIZTION/RESOTRATION HANDLERS 
  1516. states 
  1517. turn off sys3DInterface
  1518. 4STRING 
  1519. , s_dlgBaseUnits
  1520. t= "MS Sans Serif"
  1521. v= BOLD
  1522.     sysTransparent = 
  1523.     sysDrawDirect = 
  1524.     sysReaderRightClick = 
  1525.     sysUseWindowsColors = 
  1526.     sysShowMRUFiles = 
  1527.     objList = 
  1528. ) > 0
  1529. resName = "
  1530. normalGraphic 
  1531. invertGraphic 
  1532. bitmap 
  1533. ) > 0
  1534. disabledGraphic 
  1535. dlg_disable"&
  1536. --Link 
  1537. dll functions 
  1538.     --The DLL 
  1539. display dialogs created 
  1540.     linkDLL "tb30dlg.
  1541. getValue(
  1542. SetValue(
  1543. dialogCallback(
  1544. OpenFileDlg(
  1545. , INT)
  1546. SaveAsDlg(
  1547. chooseFontDlg(
  1548. T    etBitmapData(
  1549. s    etIconData(
  1550. } enableControl(
  1551.  setControlText(
  1552. getControlText(
  1553.     --See 
  1554. Microsoft 
  1555. SDK documentation 
  1556. more information.
  1557. dlg_CreateFontIndirect = 
  1558. (POINTER)
  1559. dlg_SelectObject = 
  1560.         DWORD dlg_getTextExtent = 
  1561. U dlg_DeleteObject = 
  1562. kernel
  1563. WGlobalHandle = 
  1564. pGlobalAlloc = 
  1565.  dlg_GlobalLock = 
  1566. GlobalUnlock = 
  1567. GlobalFree = 
  1568. DC = getDC(
  1569. ReleaseDC = 
  1570.         INT dlg_DestroyIcon = 
  1571. SendMessage = 
  1572.  handlers 
  1573. --sent 
  1574. closing down 
  1575. tell 
  1576. shut 
  1577. s_dirty 
  1578. been made 
  1579. xsaved
  1580. checkSave
  1581. s_Dirty
  1582. defaultPage 
  1583. f"&Yes" 
  1584. "&No"
  1585. saveDialog
  1586. --Alias 
  1587. help 
  1588. --Toggles 
  1589. translated 
  1590. --are 
  1591. has no 
  1592. scripts 
  1593. , untranslating 
  1594. re-activates 
  1595. click 
  1596. explore 
  1597. architecture.
  1598. browse Browsestate
  1599.         untranslateAllWindowMessages 
  1600. clientHandle 
  1601. "Toolbar"
  1602. initViewer 
  1603. )     = 
  1604. --Shows 
  1605. necessary 
  1606. clears 
  1607. controls 
  1608. xisOpen 
  1609. clearDialog 
  1610. prompts 
  1611. a .DIA file that should be opened
  1612. "tbkdlg.dll".
  1613. decides 
  1614. operation, 
  1615. provides 
  1616. error checking.
  1617. Ctrl-A (ANSI 1) 
  1618. vvalue
  1619. specified .
  1620. ^s_InitialValues 
  1621. --remaining portion 
  1622. Fsends buildFrame 
  1623. --buildItem 
  1624. , whose corresponding 
  1625. rebuild 
  1626. OpenDialog
  1627. s_currentFile
  1628. tempList, templateName, 
  1629. , retVal
  1630. Z (*.DIA),*.
  1631.  (*.TBK),*.
  1632. ,SysBook (*.SBK),*.
  1633. ", 2)
  1634. upperCase(
  1635.     --If a 
  1636. 8was selected 
  1637. Flook 
  1638. there 
  1639. property 
  1640. isObject("BOOK" && QUOTE & 
  1641.         propList = 
  1642. currProp
  1643.             len = 
  1644. % = "box"
  1645. initProp = 
  1646. r) & CRLF 
  1647.         --If 
  1648. some 
  1649.             --
  1650.  = LoadTemplateInit 
  1651.  = setValue(
  1652. , "listbox 
  1653. (LoadTemplateBOX 
  1654. dialogName 
  1655. len-3 
  1656. targetBook 
  1657. newCaption = "
  1658.  - " & 
  1659.  && "
  1660. " && 
  1661. dialogTemplate = 
  1662. 8" && 
  1663. initialValues = 
  1664.  && "
  1665. 8" && 
  1666.  were found 
  1667.         --If 
  1668. -- I 
  1669. separate 
  1670. empty."
  1671.         sysErrorNumber = 0
  1672.  - " & 
  1673. [them 
  1674. wants 
  1675. be cleared
  1676. checkClear 
  1677.     --Build 
  1678.  values
  1679. buildItems 
  1680. B"showDialog" 
  1681. ) > 0)
  1682. ...".
  1683. --specifies a valid 
  1684. writen.
  1685.  = saveAsDlg("
  1686.              "", "
  1687.  *.DIA", 1)
  1688. SaveDIA
  1689. %...".
  1690. saveDialogAs
  1691.              "", "
  1692.      <> 
  1693. calls 
  1694. buildDialogXXX 
  1695.  "drawing".
  1696. These
  1697. Fwritten 
  1698.      <> 
  1699. buildDialogHeader 
  1700. buildDialogItems 
  1701. o(1) 
  1702.  strings
  1703.  - " & 
  1704. s invoked each 
  1705. }-clicks on a 
  1706. selects 
  1707. "Properties..." 
  1708. It will
  1709. appropriate 
  1710. %determined 
  1711. currently
  1712. }clicked on.
  1713. x hWnd, Msg, wKeyFlags, xClientPos, yClientPos
  1714. ZARRAY 
  1715. ctrlProperties[5]
  1716. ,targetObj
  1717. y --Menu 
  1718.  --Double 
  1719.         -- 
  1720.  key 
  1721. pressed 
  1722. doubleclick 
  1723.  > 1 
  1724.  = 0 
  1725.  = 0 ) 
  1726. objectFromPoint(ClientToPageUnits(
  1727. controlProperties 
  1728.     --Check 
  1729.  type 
  1730. 1] = "BUTTON"
  1731.             --PushButtons 
  1732. different than Checkboxes 
  1733. RadioButtons
  1734.             --because you can 
  1735. ID_OK, ID_CANCEL, 
  1736.             --IdNumber 
  1737. "pushbutton"
  1738. = pushbuttonPropertiesBox 
  1739. #esInit 
  1740. --Translate 
  1741. /!controlID 
  1742. ctrlID = "&
  1743. oldID = "
  1744. ^" & 
  1745. !,"combobox 
  1746. & ButtonIDs 
  1747. 4] = 
  1748. c" = 
  1749. Baccept", 
  1750. Bdiscard", 
  1751. 7#same 
  1752. " so 
  1753. done together
  1754. = checkRadioPropertiesBox 
  1755. #,"static ID", 
  1756. Bradio",
  1757. 3$ = 
  1758. R$ = 
  1759. v$ = 
  1760. 4]) )
  1761. $,"iedit 
  1762.  % = 
  1763.             --
  1764. $ box.
  1765. retValue 
  1766.             --
  1767. 5&specific 
  1768. 2] = 1
  1769. removeButtonID("
  1770. 2] = 2
  1771. 2] = 
  1772. xisType(REAL, 
  1773. addButtonID(
  1774. O    4] = 
  1775.     4] = "
  1776.     4] = "
  1777.     4] =
  1778. 4] = 
  1779. 1] = "GROUPBOX"
  1780. ( = groupboxPropertiesInit 
  1781. (,"e235",
  1782. ),"e240",
  1783. () = 
  1784. 1),"s245",
  1785. X) = 
  1786. a),"i250",
  1787.             --
  1788. ((groupBoxPropertiesBOX 
  1789. 1] = "EDIT"
  1790. * = editPropertiesInit 
  1791. *,"s240",
  1792.  + = 
  1793. )+,"i245",
  1794. H+ = 
  1795. h+ = 
  1796. q+,"e250",
  1797. +,"b200",(fieldType 
  1798.  = WordWrap))
  1799. +,"b205",
  1800. +,"b210",
  1801.     ,,"b220",
  1802. #, = 
  1803. ,,,"b215",
  1804. F, = 
  1805. BPassword", 
  1806. p, = 
  1807. y,,"b225",
  1808. ,,"b255",
  1809. ,,"b260",
  1810. ,,"b265",
  1811. '- = 
  1812. P- = 
  1813. ,(editPropertiesBOX 
  1814. SingleLineWrap
  1815. 4] = 
  1816. K    , "
  1817. 4] = 
  1818. i    , "
  1819. 4] = 
  1820. 4] = 
  1821. 4] = 
  1822. 4] = 
  1823. 1] = "STATIC"
  1824. / = staticPropertiesInit 
  1825. ;0 = 
  1826. h0 = 
  1827. +1 = 
  1828. U1 = 
  1829. 1,"b270",
  1830. B1(staticPropertiesBOX 
  1831. 1] = "LISTBOX"
  1832. 3 = listboxPropertiesInit 
  1833. C4 = 
  1834. d4 = 
  1835. Bsingle",
  1836. 4,"b280",
  1837. 4,"b275",
  1838. \4(listboxPropertiesBOX 
  1839. 4] = 
  1840. 4] = 
  1841. 4] = 
  1842. 4] = 
  1843. 1] = "COMBOBOX"
  1844. v6 = comboboxPropertiesInit 
  1845. 67 = 
  1846. dropDownLength",lineCount 
  1847. j7 = 
  1848. ",DropDownItems 
  1849. ",sortItems 
  1850. ",scrollable 
  1851. Beditable",Editable 
  1852. _7(comboboxPropertiesBOX 
  1853. dropDownItems 
  1854. 1] = "ICON"
  1855. 9 = iconPropertiesInit 
  1856. 82", 
  1857. Layer",
  1858. ': = 
  1859. q: = 
  1860. z:, "
  1861. resourceName", 
  1862.             --uses 
  1863. ;chooseResource 
  1864. :, iconPropertiesBOX 
  1865. newIcon 
  1866. 1] = "BITMAP"
  1867. < = BitmapPropertiesInit 
  1868. == = 
  1869. |= = 
  1870. 5" && 
  1871.             --
  1872. V=, BitmapPropertiesBOX 
  1873. newBmp 
  1874. newBMP 
  1875. 5 Place Holder"
  1876. !1] = "CUSTOM"
  1877. ? = CustomPropertiesInit 
  1878. )@ = 
  1879. R@ = 
  1880. w@ = 
  1881. i"3])
  1882. className", 
  1883. style", 
  1884. "4])    
  1885. -@(CustomPropertiesBOX 
  1886. #3] = 
  1887. #4] = 
  1888.         --If 
  1889. = NULL
  1890. 3B = dialogPropertiesInit 
  1891. VB = 
  1892. vB = 
  1893. xpos",
  1894. ypos",
  1895. (dialogPropertiesBOX 
  1896.     --If 
  1897. {wasn't 
  1898. {$array
  1899. % <> 
  1900. selectionChanged 
  1901. GC = 1
  1902. 5Dremoves 
  1903. 2IDString 
  1904. available 
  1905. --IDs.
  1906. cover 
  1907. s; makes 
  1908. easier 
  1909. read.
  1910. obuttonIDs
  1911. Eadds 
  1912. textlineCount(
  1913. 'strokes 
  1914. also called 
  1915. It just resets 
  1916. EDialogFrame 
  1917. WMkeyUp a, b, 
  1918. controlState(
  1919. b <> 0
  1920. It handles 
  1921. F'nudge' behavior 
  1922. --arrow 
  1923. gF unit 
  1924. Iinstead 
  1925. --pixel 
  1926. hanges 
  1927. LGboarder 
  1928. resizing 
  1929. TG buttons.
  1930. WMkeyDown a, b, 
  1931. , c, d
  1932. "ThickFrame"
  1933. `)>= 
  1934. j)<= keyDownArrow
  1935. lockScreen 
  1936. DlgUnitsToPageUnits(1,1)
  1937. dx = 
  1938. dy = 
  1939. H-dx, 0
  1940. H0, -dy
  1941. Hdx, 0
  1942. H0, dy
  1943.             --Make 
  1944.  Ialt 
  1945. dlg_sendMessage(
  1946. :I", b, key, c bitOR (d bitShiftLeft 16))
  1947. b <> 0
  1948. "Assign 
  1949. 8..."
  1950. GsetScript
  1951. DscriptMessage, templateScript, cmdString
  1952. I = 4
  1953.     --If I 
  1954. 8yet, 
  1955. (where 
  1956. openFileDlg("
  1957. 8G...", \
  1958.             "*.tbk", ".", "
  1959. +J (*.
  1960. 8 *.TBK, 
  1961. 8 *.SBK", 1) 
  1962. r<> -1
  1963. J = 1
  1964.  without changing 
  1965. k;would 
  1966. 8doesn't 
  1967.  yet.
  1968. 114", 
  1969.         bFound = 
  1970.         resList = resourceList(
  1971. )) > 0 
  1972. currentIcon
  1973.     --If 
  1974. p, I 
  1975.     --names 
  1976. ("You must give 
  1977. Please specify a 
  1978. pbelow."
  1979.     --strip 
  1980. spaces, 
  1981. cannot 
  1982. ~(" ", 
  1983. ~(" ", 
  1984. verifyDialogName(
  1985. N = 1
  1986.     --If I am going 
  1987.  = normalScript 
  1988. ~("_DLGNAME_", 
  1989. ) > 65535)
  1990.  = ".
  1991. There 
  1992. xenough room 
  1993. 8"&& 
  1994. append the"&&\
  1995. W:&&"
  1996. Bplaced on 
  1997. =Pclipboard"
  1998.  = " 
  1999. KCadded 
  2000. P,"&&\
  2001.     --Add 
  2002. ;M;"&\
  2003. initialization 
  2004. 8"&& \
  2005.  &"."
  2006. P = 1
  2007. ,, msg
  2008. NisTemplate, isViewer
  2009. i = 1 
  2010. "1234567890"
  2011. begin 
  2012. fa letter."
  2013. "!@#$%^&*()-,./?><;':[]{}\|=+`~"& SPACE & TAB & 
  2014. msg = "
  2015. I'"& 
  2016. @=& "' 
  2017. contain 
  2018. s&"!@#$%^&*()-,./?><;':[]{}\|=+`~"& 
  2019. ?&"a 
  2020. D.= "
  2021. "Unable 
  2022. already a 
  2023. 8" && 
  2024. y@&" <> 
  2025. 8"&& 
  2026. 8" &&\
  2027. targetbook 
  2028. & "."
  2029. 8" &&\
  2030. & "."
  2031. 8" &&\
  2032. & "."
  2033. 4ontinue 
  2034. cUxisting 
  2035. 8 be overwritten " 
  2036. K8 be 
  2037. 8 be deleted 
  2038. 8 be 
  2039. "but no 
  2040. 8 be 
  2041. f"&Continue" 
  2042. "&Rename" 
  2043. "&Abort"
  2044. = "rename"
  2045. ("Enter 
  2046. buildViewer
  2047. W = 4
  2048. ...", \
  2049.             "*.
  2050. "W (*.
  2051. r<> -1
  2052. W = 1
  2053. p, I 
  2054. ZX a 
  2055. eX = 1
  2056. ~(" ", 
  2057. ~(" ", 
  2058. Ycorrect 
  2059. userProperty
  2060. NY = 1
  2061.  could 
  2062. Wchanged 
  2063.  = ViewerScript 
  2064. ) > 65535)
  2065.  = ".
  2066. 8"&& 
  2067.  = " 
  2068. Q[,"&&\
  2069. NF&&"
  2070.     newDlgPage = copyObject(
  2071. clientSize 
  2072. newDlgpage
  2073. skipNavigation 
  2074. U) > 0
  2075. currentObject
  2076. 9?1] = "
  2077. O?4] = 
  2078. g?4] = 
  2079. integerOnlyScript 
  2080.  = "PUSHBUTTON"
  2081. ?4] = 
  2082. trueAcceptScript 
  2083. falseCancelScript 
  2084.     newDlgViewer = 
  2085. autosize 
  2086. defaultPosition 
  2087. alwaysReader 
  2088. " && 
  2089. DI&& "
  2090. 8" &&\
  2091.  & "."
  2092. ^ = 1
  2093. m_displays 
  2094. OAbout 
  2095. =_..."
  2096. picked.
  2097. aboutdialog
  2098. e, aboutBOX 
  2099.         aboutinit 
  2100. dialogHelp
  2101. %modal
  2102.         close 
  2103. K`preview 
  2104. ShowDialog
  2105. Z = menuItemChecked("Preview3D" 
  2106. ` = 4
  2107. Z` = 1
  2108. e[ = 
  2109. aasks 
  2110. --action occurs.
  2111. SIlogical openDialog
  2112. ia?" 
  2113. "&No" 
  2114. a = 4
  2115. a = 1
  2116. E on 
  2117. --(Other 
  2118. wTNOT 
  2119. %well.
  2120. xPos 
  2121. yPos 
  2122. 425, 300
  2123. b - <Untitled>"
  2124.  UTILITY FUNCTIONS 
  2125. H two 
  2126. forget 
  2127.  keeping 
  2128. global memory 
  2129. !Dallocate.
  2130. getWinPointer pBytes
  2131. dlg_GlobalAlloc(66, 
  2132. -- 66 = (moveable + zeroinit)
  2133. "Memory Allocation failed.
  2134. Operation Aborted."
  2135. freeWinPointer pPointerToGlobalMemory
  2136. dhMem
  2137. dlg_GlobalHandle(
  2138. bitAnd 0x0000FFFF
  2139. eselector.
  2140. dlg_GlobalUnLock(
  2141. 'Uoccured.
  2142. dlg_GlobalFree(
  2143. --Convert 
  2144. e units 
  2145. pixels
  2146. dlgUnitsToPixels x, y
  2147. ZnewX, newY
  2148.     baseUnits = 
  2149.     --width 
  2150. ] = ((x * 
  2151. _) / 4)
  2152.     --Height 
  2153. ?gheight 
  2154.  = ((y * 
  2155. ) / 8)
  2156. dlgUnitsToPageUnits x, y
  2157. pageUnits 
  2158. -per 
  2159. 0hx direction
  2160.  = ((x * 
  2161. sysPageUnitsPerPixel) / 4) 
  2162.  = ((y * 
  2163. xel) / 8)
  2164. PixelsToDlgUnits x, y
  2165. 4 times 
  2166.  = ((x / 
  2167. ) * 4)
  2168.  = ((y / 
  2169. ) * 8)
  2170. pageUnitsToDlgUnits x, y
  2171. divided 
  2172.  = ((x * 4) / (
  2173.  = ((y * 8) / (
  2174. --Acutally calucate 
  2175. 5ZfontName 
  2176. --point 
  2177. $depends on 
  2178. 410pt Bold, 
  2179. kAPI 
  2180. P getDialogBaseUnits() gives 
  2181. other fonts, 
  2182. be calculated.
  2183. component 
  2184. hbeing
  2185. widths, I 
  2186. lntire alphabet (
  2187. I cache 
  2188. d gets 
  2189. 'a lot (everytime 
  2190. ], a couple 
  2191. , etc..)
  2192. a comma seperated 
  2193. , fontPtSize
  2194. ZlExtent, baseWidth, baseHeight, pLogFont, hFont, hPreviousFont, hDC
  2195.     --If we 
  2196. p, recalculate 
  2197. , otherwise use
  2198. ocached 
  2199. h <> 
  2200. i <> 
  2201. kstructure
  2202.         --fill 
  2203. 1(18, 
  2204. .(8, 
  2205. negative 
  2206. pcell 
  2207.         --multiplying 
  2208. inch 
  2209. points 
  2210. physical 
  2211.         --1440 
  2212. .(0, 
  2213.  * ((1440/
  2214. l) / 72)) )
  2215.         --Now I 
  2216.         hDC = dlg_getDC(sysClientHandle)
  2217. caluclate 
  2218. mqavarage 
  2219. ,"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", 52)
  2220.         --0
  2221.  masks 
  2222. qhigh 
  2223.  = TRUNCATE((
  2224. ) / 52)
  2225.         --16 
  2226. bits 
  2227.  bitShiftRight 16)
  2228. clean Up
  2229. Ug(hDC, 
  2230. dlg_ReleaseDC(
  2231. rcallback 
  2232. TBKDialogInit hDlg, hWndFocus
  2233. TBKDialogCommand 
  2234. XCtrlID, hWndCtrl, msgNumber, ControlName 
  2235.  = 0 
  2236. 7 = 1
  2237.             --
  2238.  = 0 
  2239. controlName = "
  2240. 9...", \
  2241. s (*.
  2242. setBitmapData(
  2243. ", GDIHandle(
  2244.  = 0 
  2245. N;...", \
  2246. ~u (*.
  2247. setIconData(
  2248. 6>", 
  2249. s_CurrentCursor
  2250. This editor requires the authoring version of ToolBook.
  2251. s_dialogWindow
  2252. ToolBar
  2253. oinitDLLs
  2254. initEditor
  2255. Dialog
  2256. newDialog
  2257. enterApplication
  2258. group
  2259. group
  2260. s_Browse
  2261. command
  2262. s_Browse
  2263. rightbuttonDown
  2264. -$,    7
  2265. s_dialogWindow
  2266. , 0,0,0,bold
  2267. FChooseFontDlg
  2268. newFont
  2269. oldSelection
  2270. forceExists,noGDI,noVector,screen
  2271. s_DialogTemplate
  2272. character
  2273. reader
  2274. dialog.hlp
  2275. dlg_WinHelp
  2276. contents
  2277. contents
  2278. +    ,    /
  2279. -$,    7
  2280. +    ,    /
  2281. objList
  2282. button
  2283. group
  2284. s_dlgBaseUnits
  2285. rs_dlgBaseUnits
  2286. ToolPalette
  2287. ToolBar
  2288. MS Sans Serif
  2289. dlg_disable
  2290. s_DialogTemplate
  2291. resName
  2292. initEditor
  2293. dialog
  2294. getValue
  2295. SetValue
  2296. dialogCallback
  2297. OpenFileDlg
  2298. SaveAsDlg
  2299. chooseFontDlg
  2300. setBitmapData
  2301. setIconData
  2302. enableControl
  2303. setControlText
  2304. getControlText
  2305. tb30dlg.dll
  2306. GlobalHandle
  2307. dlg_GlobalHandle
  2308. GlobalAlloc
  2309. dlg_GlobalAlloc
  2310. GlobalLock
  2311. dlg_GlobalLock
  2312. GlobalUnlock
  2313. dlg_GlobalUnlock
  2314. GlobalFree
  2315. dlg_GlobalFree
  2316. CreateFontIndirect
  2317. dlg_CreateFontIndirect
  2318. SelectObject
  2319. dlg_SelectObject
  2320. getTextExtent
  2321. dlg_getTextExtent
  2322. DeleteObject
  2323. dlg_DeleteObject
  2324. kernel
  2325. getDC
  2326. dlg_getDC
  2327. ReleaseDC
  2328. dlg_ReleaseDC
  2329. DestroyIcon
  2330. dlg_DestroyIcon
  2331. SendMessage
  2332. dlg_SendMessage
  2333. WinHelp
  2334. dlg_WinHelp
  2335. initDLLs
  2336. s_dialogWindow
  2337. s_Dirty
  2338. Save current changes?
  2339. saveDialog
  2340. checkSave
  2341. s_dialogWindow
  2342. initViewer
  2343. s_Browse
  2344. Toolbar
  2345. browse
  2346. +*+U!8
  2347. s_dialogWindow
  2348. FALSE
  2349. clearDialog
  2350. checkSave
  2351. newDialog
  2352. +    ,    #>
  2353. +    ,    #
  2354. +    ,    #
  2355. ,%H.%
  2356. +    ,    #?
  2357. +    ,    #>
  2358. +    ,    #>
  2359. +    ,    #?
  2360. +    ,    !
  2361. +    ,    !
  2362. +    ,    !
  2363. +    ,    #>
  2364. +*+U!8
  2365. propList
  2366. kgetValue
  2367. No dialog templates were found in Book
  2368. s_CurrentCursor
  2369. initialValues
  2370. currProp
  2371. s_currentFile
  2372. Dialog template (*.DIA),*.DIA,ToolBook Book (*.TBK),*.TBK,SysBook (*.SBK),*.SBK
  2373. showDialog
  2374. of book
  2375. vsetValue
  2376. propList
  2377. s_dialogWindow
  2378. s_CurrentCursor
  2379. initialValues
  2380. currProp
  2381. s_currentFile
  2382. newCaption
  2383. dialogTemplate
  2384. retVal
  2385. initProp
  2386. templateName
  2387. tempList
  2388. buildFrame
  2389. checkClear
  2390. File is empty.
  2391. OpenFileDlg
  2392. LoadTemplateBOX
  2393. ToolBar
  2394. newCaption
  2395. dialogTemplate
  2396. dialogName
  2397. listbox templates
  2398. LoadTemplateInit
  2399. checkSave
  2400. initProp
  2401. buildItems
  2402. targetBook
  2403. ToolBook Dialog Editor - 
  2404. dialog
  2405. s_dialogWindow
  2406. OpenDialog
  2407. s_currentFile
  2408. -SaveDIA
  2409. saveAsDlg
  2410. Dialog Template (*.DIA), *.DIA
  2411. saveDialog
  2412. Save as
  2413. s_currentFile
  2414. -SaveDIA
  2415. saveAsDlg
  2416. Dialog Template (*.DIA), *.DIA
  2417. saveDialogAs
  2418. +    ,    !
  2419. +    ,    !;
  2420. +    ,    !;
  2421. +    ,    !;
  2422. +    ,    !
  2423. +    ,    #>
  2424. ToolBook Dialog Editor - 
  2425. s_dialogWindow
  2426. s_CurrentCursor
  2427. s_currentFile
  2428. buildDialogItems
  2429. buildDialogHeader
  2430. ToolBar
  2431. s_InitialValues
  2432. s_DialogTemplate
  2433. SaveDIA
  2434. .&,    #>
  2435. .&,    #>
  2436. w,    #>
  2437. +    ,    /
  2438. +    ,    /
  2439. +    ,    /
  2440. +    ,    /
  2441. +    ,    /
  2442. +    ,    /
  2443. +    ,    /
  2444. +    ,    /
  2445. +    ,    /
  2446. +    ,    /
  2447. +    ,    /
  2448. +    ,    /
  2449. +    ,    /
  2450. +    ,    /
  2451. +    ,    /
  2452. +    ,    /
  2453. +    ,    /
  2454. +    ,    /
  2455. +    ,    /
  2456. +    ,    /
  2457. +    ,    /
  2458. +    ,    /
  2459. +    ,    /
  2460. +    ,    /
  2461. +    ,    /
  2462. +    ,    /
  2463. +    ,    /
  2464. +    ,    /
  2465. +    ,    /
  2466. +    ,    /
  2467. .&,    #?
  2468. +    ,    /
  2469. +*+    t
  2470. |pushbuttonPropertiesInit
  2471. kgetValue
  2472. STATIC
  2473. s_CurrentCursor
  2474. button Password
  2475. Bitmap Control Place Holder
  2476. button true
  2477. ID_OK
  2478. newBMP
  2479. CustomPropertiesInit
  2480. .?newIcon
  2481. edit Name
  2482. Y%controlProperties
  2483. button radio
  2484. iedit ypos
  2485. dialogName
  2486. ID_CANCEL
  2487. BitmapPropertiesInit
  2488. BUTTON
  2489. button scroll
  2490. dialog
  2491. CustomPropertiesBOX
  2492. iedit xpos
  2493. BITMAP
  2494. oPpushbuttonPropertiesBox
  2495. reader
  2496. targetBook
  2497. Z%controlProperties
  2498. checkbox
  2499. ButtonIDs
  2500. comboboxPropertiesBOX
  2501. button TRUE
  2502. edit Caption
  2503. button checkbox
  2504. &ID_OK
  2505. static ID
  2506. bitmap
  2507. vAdialogCallback
  2508. iedit layer
  2509. icon id
  2510. staticPropertiesInit
  2511. groupboxPropertiesInit
  2512. checkRadioPropertiesBox
  2513. bitmap current Bitmap
  2514. button default
  2515. listboxPropertiesBOX
  2516. FALSE
  2517. Button Password
  2518. rectangle
  2519. comboboxPropertiesInit
  2520. edit caption
  2521. CUSTOM
  2522. center
  2523. iconPropertiesBOX
  2524. button discard
  2525. LISTBOX
  2526. edit name
  2527. GROUPBOX
  2528. addButtonID
  2529. edit text
  2530. edit items
  2531. /?newIcon
  2532. button single
  2533. newBmp
  2534. vsetValue
  2535. button sort
  2536. iedit dropDownLength
  2537. edit className
  2538. button accept
  2539. s_dialogWindow
  2540. fdialogPropertiesBOX
  2541. removeButtonID
  2542. Group
  2543. 9checkRadioPropertiesInit
  2544. EDIT Name
  2545. groupBoxPropertiesBOX
  2546. icon current icon
  2547. COMBOBOX
  2548. right
  2549. button editable
  2550. [EiconPropertiesInit
  2551. retValue
  2552. controlProperties
  2553. WordWrap
  2554. dialogPropertiesInit
  2555. button false
  2556. editPropertiesBOX
  2557. combobox controlID
  2558. &ID_CANCEL
  2559. newBmp
  2560. listboxPropertiesInit
  2561. oldID
  2562. edit resourceName
  2563. qBitmapPropertiesBOX
  2564. pushbutton
  2565. edit Items
  2566. dialogName
  2567. iedit style
  2568. &CeditPropertiesInit
  2569. iedit Layer
  2570. ctrlID
  2571. o{staticPropertiesBOX
  2572. Properties
  2573. ,%H.%
  2574. buttonIDs
  2575. buttonIDs
  2576. removeButtonID
  2577. ,%H.%
  2578. FALSE
  2579. buttonIDs
  2580. buttonIDs
  2581. addButtonID
  2582. s_dialogWindow
  2583. 4controlState
  2584. FALSE
  2585. ToolBar
  2586. YWMkeyUp
  2587. WMkeyUp
  2588. ,!J("
  2589. 4controlState
  2590. s_dialogWindow
  2591. WMkeyDown
  2592. ToolBar
  2593. yDlgUnitsToPageUnits
  2594. dlg_sendMessage
  2595. WMkeyDown
  2596. w,    #>
  2597. w,    #?
  2598. targetBook
  2599. dialogName
  2600. s_dialogWindow
  2601. s_CurrentCursor
  2602. s_DialogTemplate
  2603. FALSE
  2604. cmdString
  2605. templateScript
  2606. scriptMessage
  2607. bFound
  2608. setScript
  2609. currentIcon
  2610. resList
  2611. s_InitialValues
  2612. dialogName
  2613. as userProperties of the book
  2614. BOX of book targetBook of self to s_DialogTemplate;
  2615. ToolBook (*.TBK), *.TBK, SysBook (*.SBK), *.SBK
  2616. handler.  The handler has been placed on the clipboard
  2617. FALSE
  2618. has been added to the book script of that book.  To display the dialog,
  2619. dialogName
  2620. s_dialogWindow
  2621. bFound
  2622. message
  2623. information
  2624. *.tbk
  2625. buildDialogItems
  2626.  and a handler for the message show
  2627. You must give the dialog a name.  Please specify a name below.
  2628. verifyDialogName
  2629. ;0normalScript
  2630. buildDialogHeader
  2631. targetBook
  2632. openFileDlg
  2633. Choose target book for Dialog Template...
  2634. The specified file is not a book.
  2635. icon id 114
  2636. currentIcon
  2637. INIT of book targetBook of self to s_InitialValues
  2638. dialogName
  2639. to append the
  2640. send the show
  2641. .  There is not enough room in the book script of book
  2642. s_InitialValues
  2643. s_CurrentCursor
  2644. The dialog template and initialization values have been placed in book
  2645. resList
  2646. _DLGNAME_
  2647. build
  2648. 1,    #>
  2649. ,%H.%
  2650. w,    #>
  2651. w,    #>
  2652. w,    #?
  2653. w,    #?
  2654. w,    #?
  2655. Enter new name for dialog.
  2656. continue
  2657. dialogName
  2658. isViewer
  2659. retValue
  2660. FALSE
  2661. template
  2662. isTemplate
  2663. of book
  2664. viewer
  2665. FALSE,FALSE
  2666. Unable to make handler name and userProperties from dialog name.  
  2667. FALSE
  2668. There is already a viewer with this name in book
  2669. !@#$%^&*()-,./?><;':[]{}\|=+`~
  2670. There is already a dialog template with this name in book
  2671. targetbook
  2672.   If you continue the existing dialog template will be overwritten 
  2673. &Rename
  2674. verifyDialogName
  2675. The Dialog name must begin with a letter.
  2676. There is already a viewer and a dialog template with this name in book
  2677. targetBook
  2678. rename
  2679.   If you continue the viewer will be added 
  2680.   If you continue the template will be added 
  2681. &Abort
  2682.  <> null
  2683. but no script will be placed in the book.
  2684. BOX of book
  2685. 1234567890
  2686. dialogName
  2687. a SPACE or a TAB
  2688. TRUE,TRUE
  2689.   If you continue the existing viewer will be deleted and a new one 
  2690. &Continue
  2691. created 
  2692. ' character is not valid in handler or property names.  The Dialog name cannot contain any of the following characters:
  2693. The '
  2694. verifyDialogName
  2695. w,    #>
  2696. +    ,    /
  2697. +    ,    /
  2698. +    ,    /
  2699. w,    #>
  2700. targetBook
  2701. dialogName
  2702. PUSHBUTTON
  2703. Z%controlProperties
  2704. ToolBook (*.TBK), *.TBK, SysBook (*.SBK), *.SBK
  2705. handler.  The handler has been placed on the clipboard
  2706. objList
  2707. s_CurrentCursor
  2708. has been added to the book script of that book.  To display the dialog,
  2709. dialogName
  2710. Y%controlProperties
  2711. s_dialogWindow
  2712. message
  2713. newDlgViewer
  2714. Group
  2715. *.tbk
  2716.  and a handler for the message show
  2717. controlProperties
  2718. You must give the dialog a name.  Please specify a name below.
  2719. verifyDialogName
  2720. FALSE
  2721. integerOnlyScript
  2722. targetBook
  2723. openFileDlg
  2724. has been created in book
  2725. dialog
  2726. 8ViewerScript
  2727. The specified file is not a book.
  2728. newDlgPage
  2729. trueAcceptScript
  2730. The dialog Viewer
  2731. dialogName
  2732. to append the
  2733. send the show
  2734. .  There is not enough room in the book script of book
  2735. falseCancelScript
  2736. Choose target book for Dialog Viewer...
  2737. center
  2738. currentObject
  2739. _DLGNAME_
  2740. buildViewer
  2741. aboutinit
  2742. UraboutBOX
  2743. vAdialogCallback
  2744. aboutdialog
  2745. dialogHelp
  2746. +*+Dr
  2747. s_dialogWindow
  2748. s_CurrentCursor
  2749. buildDialogItems
  2750. buildDialogHeader
  2751. ToolBar
  2752. Preview3D
  2753. s_InitialValues
  2754. s_DialogTemplate
  2755. dialog
  2756. ShowDialog
  2757. +*+Dr
  2758. Cancel
  2759. s_dialogWindow
  2760. &Cancel
  2761. s_CurrentCursor
  2762. Do you want to clear the existing dialog?
  2763. clearDialog
  2764. checkClear
  2765. +*+Dr
  2766. ToolBook Dialog Editor - <Untitled>
  2767. s_dialogWindow
  2768. ID_OK
  2769. s_dirty
  2770. showDialog
  2771. ToolBar
  2772. targetBook
  2773. addButtonID
  2774. Dialog
  2775. buttonIDs
  2776. dialogName
  2777. ID_CANCEL
  2778. clearDialog
  2779. vdlg_GlobalAlloc
  2780. Memory Allocation failed.  Operation Aborted.
  2781. Pdlg_GlobalLock
  2782. getWinPointer
  2783. dlg_GlobalUnLock
  2784. dlg_GlobalHandle
  2785. dKdlg_GlobalFree
  2786. Memory error occured.  Operation Aborted.
  2787. freeWinPointer
  2788. +    ,    /
  2789. +    ,    /
  2790. baseUnits
  2791. baseUnits
  2792. s_DialogTemplate
  2793. dlgUnitsToPixels
  2794. +    ,    /
  2795. +    ,    /
  2796. baseUnits
  2797. baseUnits
  2798. s_DialogTemplate
  2799. dlgUnitsToPageUnits
  2800. +    ,    /
  2801. +    ,    /
  2802. baseUnits
  2803. baseUnits
  2804. s_DialogTemplate
  2805. PixelsToDlgUnits
  2806. +    ,    /
  2807. +    ,    /
  2808. baseUnits
  2809. baseUnits
  2810. s_DialogTemplate
  2811. pageUnitsToDlgUnits
  2812. +    ,    /
  2813. +    ,    /
  2814. +    ,    /
  2815. +    ,    /
  2816. ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
  2817. freeWinPointer
  2818. $bgetWinPointer
  2819. dlg_ReleaseDC
  2820. s_dlgBaseUnits
  2821. tdlg_getDC
  2822. dlg_getTextExtent
  2823. dlg_DeleteObject
  2824. dlg_CreateFontIndirect
  2825. dlg_SelectObject
  2826. baseUnits
  2827. edit resourceName
  2828. getControlText
  2829. AenableControl
  2830. TBKDialogInit
  2831. targetBook
  2832. ToolBook (*.TBK), *.TBK, SysBook (*.SBK), *.SBK
  2833. ICON current icon
  2834. setControlText
  2835. setIconData
  2836. dlg_DeleteObject
  2837. Bitmap
  2838. *.tbk
  2839. dlg_DestroyIcon
  2840. targetBook
  2841. openFileDlg
  2842. edit resourceName
  2843. You must name the selected resource.
  2844. .?newIcon
  2845. >setBitmapData
  2846. BITMAP Current Bitmap
  2847. getControlText
  2848. Button Choose Icon
  2849. /?newIcon
  2850. AenableControl
  2851. newBmp
  2852. newBmp
  2853. Button Choose Bitmap
  2854. Choose target book for Resource...
  2855. TBKDialogCommand
  2856. toggleState
  2857. setCursor
  2858. rightButtonDown
  2859. initViewer
  2860. closeWindow
  2861. .&+    +E
  2862. setCursor
  2863. s_CurrentCursor
  2864. setCursor
  2865. toggleState
  2866. s_controlState
  2867. ToolBar
  2868. controlState
  2869. +*+Dr
  2870. dlgUndo
  2871. Paste
  2872. s_dialogWindow
  2873. Return to Editor
  2874. Browse
  2875. Re&do
  2876. group
  2877. BuildViewer
  2878. clear
  2879. DeleteControl
  2880.     undoFlag
  2881. saveDialogAs
  2882. clearDialog
  2883. CopyControl
  2884. Cannot Undo
  2885. PasteControl
  2886. controlProperties
  2887. AlignControls
  2888. ShowDialog
  2889. &Group
  2890. CutControl
  2891. s_Browse
  2892. saveDialog
  2893. &Undo
  2894. buildViewer
  2895. Un&group
  2896. Ctrl+G
  2897. deleteControl
  2898. Edit Editor
  2899. Ctrl+Z
  2900. PreviewDialog
  2901. control
  2902. Control
  2903. build
  2904. ControlProperties
  2905. GroupControls
  2906. enterMenu
  2907. +*+Dr
  2908. +*+Dr
  2909. +*+Dr
  2910. +*+Dr
  2911. +*+Dr
  2912. +*+Dr
  2913. +*+Dr
  2914. +*+Dr
  2915. +*+Dr
  2916. +*+Dr
  2917. +*+Dr
  2918. DlgUndo
  2919. s_dialogWindow
  2920. AlignRight
  2921. deleteControl
  2922.     undoFlag
  2923. CopyControl
  2924. AlignLeft
  2925. PasteControl
  2926. Alignbottom
  2927. CutControl
  2928. s_Browse
  2929. Browse
  2930. Preview3D
  2931. AlignTop
  2932. browse
  2933. ControlProperties
  2934. GroupControls
  2935. menuItemSelected
  2936. s_dialogWindow
  2937. select
  2938. setCursor
  2939. ToolPalette
  2940. selectedTool
  2941. openWindow
  2942. .&+    +E
  2943. setCursor
  2944. s_CurrentCursor
  2945. setCursor
  2946. groupbox
  2947. custom
  2948. lastRecTool
  2949. bitmap
  2950. ToolPalette
  2951. selectedTool
  2952. invertedButton
  2953. toolpalette
  2954. toolPalette
  2955. selectedTool
  2956. .isChild
  2957. ,toggleInvert
  2958. [ebuttonPressed
  2959. buttonUp
  2960. \ebuttonPressed
  2961. ,toggleInvert
  2962. buttonDown
  2963. .isChild
  2964. ,toggleInvert
  2965. buttonStillDown
  2966. invertedButton
  2967. oldInvertedButton
  2968. invertedButton
  2969. ToolPalette
  2970. toggleInvert
  2971. FALSE
  2972. group
  2973. isChild
  2974. ToolBar
  2975. Toolbar
  2976. Draws a
  2977. statusbar
  2978. mouseEnter
  2979. ToolBar
  2980. Toolbar
  2981. statusbar
  2982. mouseLeave
  2983. colorTray
  2984. lineEndsPalette
  2985. polygonPalette
  2986. linePalette
  2987. patternPalette
  2988. &noldState
  2989. ToolPalette
  2990. ToolBar
  2991. enterBackground
  2992. colorTray
  2993. lineEndsPalette
  2994. polygonPalette
  2995. linePalette
  2996. patternPalette
  2997. ToolPalette
  2998. ToolBar
  2999. %noldState
  3000. leaveBackground
  3001. +*+Dr
  3002. s_dialogWindow
  3003. toggleState
  3004. button
  3005. Button
  3006. buttonClick
  3007. dlgUndo
  3008. showDialog
  3009. Toolbar
  3010. ToolBar
  3011. +*+Dr
  3012. s_dialogWindow
  3013. WMKeyDown
  3014. keyDown
  3015. +*+Dr
  3016. s_dialogWindow
  3017. YWMKeyUp
  3018. keyUp
  3019. yhelpText
  3020. statusBar
  3021. mouseEnter
  3022. statusBar
  3023. mouseLeave
  3024. dlgBox
  3025. s_dialogWindow
  3026. button
  3027. dlgInit
  3028. 8dlgInit
  3029. dlgBox
  3030. buildItems
  3031. buildFrame
  3032. paste
  3033. .&,    #>
  3034. w,    #>
  3035. w,    #>
  3036. s_dialogWindow
  3037. fontName
  3038. pixelsToDlgUnits
  3039. s_DialogTemplate
  3040. fontPtSize
  3041. buildDialogHeader
  3042. .&+    +E
  3043. .&+    +E
  3044. ,!J    Y
  3045. +    ,    /
  3046. +    ,    /
  3047. +    ,    /
  3048. +    ,    /
  3049. +    ,    /
  3050. ,!J@Y
  3051. +    ,    /
  3052. +    ,    /
  3053. ,!J Y
  3054. +    ,    /
  3055. +    ,    /
  3056. +    ,    /
  3057. +    ,    /
  3058. Only 100 dialog controls are allowed.  If you proceed,
  3059. ypageUnitsToDlgUnits
  3060. CUSTOM
  3061. xSize
  3062. rectangle
  3063. &addDialogItem
  3064. group
  3065. groupObjects
  3066. iedit
  3067. ctrlStyle
  3068. center
  3069. ctrlText
  3070. FALSE
  3071. LISTBOX
  3072. Y%controlProperties
  3073. radiobutton
  3074. BUTTON
  3075. ySize
  3076. s_DialogTemplate
  3077. currentControl
  3078. Continue
  3079. Cancel
  3080. s_dialogWindow
  3081. ]wsgroup
  3082. COMBOBOX
  3083. checkbox
  3084. all controls above layer 101 will be ignored.
  3085. ]wsgroup
  3086. &Continue
  3087. WordWrap
  3088. right
  3089. BITMAP
  3090. controlProperties
  3091. TBKDLGBitmap
  3092. class
  3093. WS_VISIBLECHILD
  3094. pushbutton
  3095. static
  3096. initValue
  3097. s_InitialValues
  3098. GROUPBOX
  3099. buildDialogItems
  3100. 1,    #>
  3101. 1,    #>
  3102. CUSTOM
  3103. BITMAP
  3104. s_InitialValues
  3105. s_DialogTemplate
  3106. addDialogItem
  3107. .&+    +E
  3108. .&+    +E
  3109. buildItems
  3110. s_InitialValues
  3111. s_DialogTemplate
  3112. buildFrame
  3113. buildfromVar
  3114. +*+Dr
  3115. s_dialogWindow
  3116. dlgUnitsToPixels
  3117. buildFrame
  3118. ^Ba$9
  3119. +*+Dr
  3120. ,%H.%
  3121. .&,    "
  3122. +    ,    /
  3123. +    ,    #>
  3124. +    ,    /
  3125. +    ,    /
  3126. +    ,    /
  3127. +    ,    /
  3128. +    ,    /
  3129. +    ,    /
  3130. +    ,    /
  3131. +    ,    #>
  3132. +    ,    /
  3133. +    ,    #>
  3134. +    ,    /
  3135. .&,    "
  3136. +    ,    #>
  3137. w,    #>
  3138. +    ,    #>
  3139. +    ,    /
  3140. +    ,    /
  3141. +    ,    /
  3142. +    ,    /
  3143. +    ,    /
  3144. +    ,    /
  3145. +    ,    #>
  3146. +    ,    #>
  3147. +    ,    #>
  3148. w,    #>
  3149. +    ,    #>
  3150. w,    #>
  3151. kgetValue
  3152. s_dialogWindow
  3153. groupItems
  3154. removeButtonID
  3155. of book
  3156. Z%controlProperties
  3157. STATIC
  3158. scrollbar
  3159. dontMakeGroup
  3160. newObj
  3161. COMBOBOX
  3162. ID_OK
  3163. BITMAP
  3164. ID_CANCEL
  3165. makeGroup
  3166. TBKDLGBitmap
  3167. FALSE
  3168. CUSTOM
  3169. targetBook
  3170. drawControl
  3171. inGroup
  3172. makeLastGroup
  3173. toggle
  3174. radiobutton
  3175. BUTTON
  3176. LISTBOX
  3177. listbox
  3178. GROUPBOX
  3179. buildItems
  3180. +*+Dr
  3181. 1,!J<Y
  3182. 1,!JdY
  3183. DrawItem
  3184. s_dialogWindow
  3185. ydlgUnitsToPageUnits
  3186. CUSTOM
  3187. STATIC
  3188. COMBOBOX
  3189. Bitmap Control Place Holder
  3190. BITMAP
  3191. Custom control Place holder
  3192. ToolPalette
  3193. LISTBOX
  3194. GROUP BOX
  3195. failed
  3196. groupboxScript
  3197. GROUPBOX
  3198. drawControl
  3199. groupItems
  3200. dontMakeGroup
  3201. FALSE
  3202. tempSel
  3203. makeGroup
  3204. +*+Dr
  3205. s_dialogWindow
  3206. ypageUnitsToDlgUnits
  3207. ItemSelected
  3208. dialogName
  3209. <Untitled>
  3210. position
  3211. controlSize
  3212. controlProperties
  3213. showDialog
  3214. ToolBar
  3215. Y%controlProperties
  3216. controlPosition
  3217. DIALOG
  3218. pixelsToDlgUnits
  3219. statusBar
  3220. selectionChanged
  3221. 1,!JFY
  3222. 1,!JFY
  3223. BUTTON
  3224. Custom Control Place Holder
  3225. STATIC
  3226. newObj
  3227. singleSelect
  3228. button
  3229. Bitmap Control Place Holder
  3230. TRUE,FALSE,FALSE,FALSE
  3231. rectangle
  3232. ToolPalette
  3233. Y%controlProperties
  3234. GROUP BOX
  3235. ToolBar
  3236. comment
  3237. LISTBOX
  3238. field
  3239. FALSE,
  3240. s_dialogWindow
  3241. Cannot Undo
  3242. checkbox
  3243. Z%controlProperties
  3244. FALSE,FALSE
  3245. radioButton
  3246. COMBOBOX
  3247. showDialog
  3248. BITMAP
  3249. s_dirty
  3250. groupBox
  3251. controlProperties
  3252. TBKDLGBitmap
  3253. Custom
  3254. Toolbar
  3255. combobox
  3256. bitmap
  3257. FALSE,FALSE,FALSE,FALSE,FALSE,FALSE
  3258.     s_undoFlag
  3259. groupboxScript
  3260. GROUPBOX
  3261. selectedTool
  3262. custom
  3263. Cannot Undo
  3264. s_dirty
  3265. Toolbar
  3266. yDlgUnitsToPageUnits
  3267.     s_undoFlag
  3268. moved
  3269. Cannot Undo
  3270. s_dirty
  3271. Toolbar
  3272. yDlgUnitsToPageUnits
  3273.     s_undoFlag
  3274. sized
  3275. Cannot Undo
  3276. PUSHBUTTON
  3277. ID_OK
  3278. ID_CANCEL
  3279. showDialog
  3280. Toolbar
  3281. s_dirty
  3282. Y%controlProperties
  3283. addButtonID
  3284. ToolBar
  3285.     s_undoFlag
  3286. destroy
  3287. +*+9;
  3288. s_dialogWindow
  3289. initViewer
  3290. ToolPalette
  3291. ToolBar
  3292. openWindow
  3293. showDialog
  3294. Toolbar
  3295. ToolBar
  3296. enterWindow
  3297. FALSE
  3298. clearDialog
  3299. checkSave
  3300. closeWindow
  3301. s_dialogWindow
  3302. s_frameWidth
  3303. WMkeyUp
  3304. WMKeyDown
  3305. setCursor
  3306. rightButtonDown
  3307. WMkeyDown
  3308. properties
  3309. initViewer
  3310. LastRecTool
  3311. rectangle
  3312. ToolPalette
  3313. setCursor
  3314. button, radioButton, checkbox, borderlessField, field, singleSelectListbox, combobox
  3315. s_CurrentCursor
  3316. setCursor
  3317. browse
  3318. s_Browse
  3319. Browse
  3320. menuItemSelected
  3321. +*+Dr
  3322. r    ;    >
  3323. +*+Dr
  3324. s_dialogWindow
  3325. dialogFrame
  3326. Toolbar
  3327. sized
  3328. &File
  3329. newDialog
  3330. &Open...    Ctrl+O
  3331. OpenDialog
  3332. &Save...    Ctrl+S
  3333. SaveDialog
  3334. Sa&ve As...
  3335. SaveDialogAs
  3336. &Assign Template to Book...
  3337. build
  3338. &Convert Template to Viewer...
  3339. buildViewer
  3340. E&xit    Alt+F4
  3341. &Edit
  3342. &Undo    Ctrl+Z
  3343. DlgUndo
  3344. Cu&t    Ctrl+X
  3345. CutControl
  3346. &Copy    Ctrl+C
  3347. CopyControl
  3348. &Paste    Ctrl+V
  3349. PasteControl
  3350. De&lete    Del
  3351. DeleteControl
  3352. Cl&ear Dialog
  3353. &Control
  3354. &Properties...    Shift+F6
  3355. ControlProperties
  3356. &FOOBAR    Ctrl+G
  3357. GroupControls
  3358. &Align Controls
  3359. AlignControls
  3360. &Left
  3361. AlignLeft
  3362. AlignTop
  3363. &Right
  3364. AlignRight
  3365. &Bottom
  3366. AlignBottom
  3367. &View
  3368. Preview
  3369. Previe&w Dialog    Ctrl+W
  3370. showDialog
  3371. 3&D in Preview
  3372. Preview3D
  3373. &Help
  3374. Contents    F1
  3375. Contents
  3376. &Quick Help...
  3377. dialogHelp
  3378. Edit Editor    F3
  3379. Browse
  3380. &About Dialog...
  3381. undo    Ctrl+Z
  3382. cut    Ctrl+X
  3383. copy    Ctrl+C
  3384. paste    Ctrl+V
  3385. clear    Del
  3386. command    Shift+F3
  3387. Save    Ctrl+S
  3388. SaveDialog
  3389. Open    Ctrl+O
  3390. OpenDialog
  3391. Properties    Shift+F6
  3392. Properties
  3393. Preview Dialog    Ctrl+W
  3394. ShowDialog
  3395. group    Ctrl+G
  3396. group
  3397. contents    F1
  3398. contents
  3399. edit editor    F3
  3400. Browse
  3401. ToolBar
  3402. wp{31
  3403. ffffffff
  3404. ffffffff
  3405. wwwwwwwp
  3406. wwwwwwwp
  3407. DDDDDD@
  3408. DDDDDDDD@
  3409. DDDDD
  3410. DDDD@
  3411. DDDDD
  3412. DDDD@
  3413. DDDDDD
  3414. DDDDD
  3415. DDDDDD
  3416. DDDDD
  3417. DDDDDD
  3418. DDDDD
  3419. DDDDDD
  3420. DDDDD@
  3421. DDDDDD
  3422. DDDDD@
  3423. DDDDDD
  3424. DDDDD@
  3425. DDDDDD
  3426. DDDDD@
  3427. DDDDDD
  3428. DDDDD@
  3429. DDDDDD
  3430. DDDDD@
  3431. DDDDDD
  3432. DDDDD@
  3433. DDDDO
  3434. DDDDD@
  3435. DDDDO
  3436. DDDDD
  3437. DDDDDDDDDDDDDD
  3438. DDDDDDDDDDDDDD
  3439. DDDDD
  3440. DDDDD@
  3441. DDDDO
  3442. DDDD@
  3443. Dlg_MyAppIcon
  3444. wwwwwwwwww
  3445. wwusww
  3446. wwwwwwwwww
  3447. wCawp
  3448. wCTwp
  3449. wmawp
  3450. wngwp
  3451. wu wp
  3452. wvewp
  3453. whawp
  3454. wwwwwwwwww
  3455. wwwwwwwwww
  3456. wwwwwwwwww
  3457. wwwwwwwwww
  3458. wwwwwwwwww
  3459. wwwwwwwwwwftww
  3460. wppwwwpp
  3461. wpwpwpwp
  3462. w %wpww
  3463. witwpwwpwwp
  3464. wpwpwpwp
  3465. wngwppwwwpp
  3466. wwwwwwwwww
  3467. wwwwwwwwww
  3468. wwwwwwwwww
  3469. wwwwwwwwww
  3470. wwwwwwwwww
  3471. wwwwwwwwww
  3472. wwwwx
  3473. wwwpwwpwww
  3474. wwwwwwwwww
  3475. wwwwwwwwww
  3476. wwwwwwwwww
  3477. wwwwwwwwww
  3478. wwwwwwwwww
  3479. wwwwwwwwww
  3480. wwwwwwwwww
  3481. wwwwwwwwww
  3482. wwwwwwwwww
  3483. wwwwwwwwww
  3484. wwwwwwwwww
  3485. wwwwwwwwww
  3486. wwwwwwwwww
  3487. wwwwwwwwww
  3488. wwwwwwwwww
  3489. wwwqw
  3490. wwwqq
  3491. wwwww
  3492. wwwwqwwwww
  3493. wwwwwwwwww
  3494. wwwwwwwwww
  3495. wwwwwwwwww
  3496. wwwwwwwwww
  3497. wwwwwwwwww
  3498. wwwwwwwwww
  3499. wwwwwwwwww
  3500. wwwwwwwwww
  3501. wwwwwwwwww
  3502. wwwwwwwwww
  3503. wwwwwwwwww
  3504. wwwwwwwwww
  3505. wwwwwwwwww
  3506. wwwwwwwwww
  3507. wwwwwwwwww
  3508. wwwwwwwwww
  3509. wwwwwwwwww
  3510. wwwtDDGwwwftwwtDDDDGww
  3511. wwDDDDDDww
  3512. DGwSOwtDDO
  3513. DDGwHOwDDDO
  3514. wDDDO
  3515. wDDDO
  3516. wDDDO
  3517. DDDwIPwDDDO
  3518. DwDDD
  3519. wDDDDDDDDwADwtDDO
  3520. wwtDO
  3521. DGwwG
  3522. wwwtDDGwwwPTwwwwwwwwww
  3523. wwwwwwwwww
  3524. wwwwwwwwwwe wwwwwwwwwwchwwwwwp
  3525. www ywwwww
  3526. www swwwww
  3527. wwwt wwp
  3528. wwwww
  3529. wwwww
  3530. wwwwww
  3531. wwwwww
  3532. wwwwwwwwww
  3533. wwwwwwwwww
  3534. wwwwwwwwww
  3535. uswpwwwwwww
  3536. wpwwwwwww
  3537. Ewpwwwwwww
  3538. wpwwwwwww
  3539. wpwwwwwww
  3540. Cawpwwwwwww
  3541. wpwwwwwww
  3542. wpwwwwwww
  3543. wpwwwwwww
  3544. CTwpwwwwwww
  3545. mawpwwwwwww
  3546. ngwpwwwwwww
  3547. u wpwwwwwww
  3548. vewpw
  3549. wwwwwwwwww
  3550. wwwwwwwwww
  3551. wwwwwwwwww
  3552. wwwwwwwwww
  3553. wwwwwwwwwwftwwwwwwwwww
  3554. wwwwwx
  3555. wwwwwx
  3556. wwwwwwwwww
  3557. wwwwwwwwww
  3558. wwwwwwwwww0
  3559. wwwwwwwwww
  3560. UUUUUUUUUU
  3561. UUUUUUUUUU
  3562. UUUUUUUUUU
  3563. UUUUUUUUUU
  3564. UUUUUUUUUU
  3565. UUUUUUUP
  3566. UUUUU
  3567. UUUUUP
  3568. UUUUUUUUUU
  3569. UUUUUUUUUU
  3570. wwwwwwwwww
  3571. wwwwwwwwww
  3572. wwwwwwwwww
  3573. wwwwwwwwww
  3574. wwwwwwwwww
  3575. wwwwwwwwww
  3576. wwwwwwwwww
  3577. UUUUUUUUUU
  3578. UUUUUUUUUU
  3579. UUUUUUUUUU
  3580. UUUUUUUUUU
  3581. UUUUUUUUUU
  3582. UUUUUUUUUU
  3583. UUUUUUUU
  3584. PPUUUUUUUU
  3585. PPUUUUUUUU
  3586. UPUUUUUUUU
  3587. UUUUUUUUUU
  3588. ffffffffff
  3589. ffffffffff
  3590. ffffffffff
  3591. ffffffffff
  3592. ffffffffff
  3593. ffffffffff
  3594. ffff`
  3595. ffffo
  3596. fffff
  3597. ffffffffff
  3598. ffffffffff
  3599. ffffffffff
  3600. ffffffffff
  3601. ffffffffff
  3602. ffffffffff
  3603. fofffo
  3604. ffffffffff
  3605. ffffffffff
  3606. ffffffffff
  3607. UUUUUUUUUU
  3608. UUUUUUUUUU
  3609. UUUUUUUUUU
  3610. U^UUU^
  3611. UUU_U
  3612. UUUUUUUUUU
  3613. UUUUUUUUUU
  3614. UUUUUUUUUU
  3615. UUUUUUUUUU
  3616. UUUUUUUUUU
  3617. UUUUUUUUUU
  3618. UUUUUUUUUU
  3619. UUUUUU
  3620. UUUUUP
  3621. UUUU^
  3622. UUUUU
  3623. UUUUU
  3624. UUUUUUUUUU
  3625. UUUUUUUUUU
  3626. UUUUUUUUUU
  3627. UUUUUUUUUU
  3628. UUUUUUUUUU
  3629. UUUUUU
  3630. UUUUU^
  3631. UUUU_
  3632. UUUUU
  3633. UUUUUU
  3634. UUUUUUUUUU
  3635. UUUUUUUUUU
  3636. UUUUUUUUUU
  3637. UUUUUUUUUU
  3638. UUUUUUUUUU
  3639. UUUUUU
  3640. UUUUUU
  3641. UUUUU
  3642. UUUUU
  3643. UUUUUP
  3644. UUUUUU
  3645. UUUUUUPUUU
  3646. UUUUUUUUUU
  3647. UUUUUUUUUU
  3648. UUUUUUUUUU
  3649. UUUUUUUUUU
  3650. UUUUUU
  3651. UUUUU
  3652. UUUUU
  3653. UUUUU
  3654. UUUUU^
  3655. UUUUUU
  3656. UUUUUU^UUU
  3657. UUUUUUUUUU
  3658. UUUUUUUUUU
  3659. UUUUUUUUUU
  3660. UUUUUUUUUU
  3661. UUUUUUUUUU
  3662. UUUUUUP
  3663. UUUUUU
  3664. UUUUUP
  3665. UUUUUP
  3666. UUUUU
  3667. UUUUUU
  3668. UUUUUU
  3669. UUUUUUUUUU
  3670. UUUUUUUUUU
  3671. UUUUUUUUUU
  3672. UUUUUUUUUU
  3673. UUUUUUU
  3674. UUUUUU^
  3675. UUUUUU
  3676. UUUUU^
  3677. UUUUU
  3678. UUUUUU
  3679. UUUUUU
  3680. UUUUUUUUUU
  3681. wwwwwwwwww
  3682. wwwwwww
  3683. pwwwp
  3684. wwpwwwp
  3685. wwwwwww
  3686. wwwwwwwwww
  3687. wwwwwwwwww
  3688. wwwwwww
  3689. xwwwx
  3690. wwxwwwx
  3691. wxxxwwx
  3692. wwwwwww
  3693. wwwwww
  3694. wwwwwwwwww
  3695. UUUUUUUUUU
  3696. UUUUUUUUUU
  3697. UUUUUUUUUU
  3698. UUUUUUUUUU
  3699. UUUUUUP
  3700. UUUUUU
  3701. UUUUUU
  3702. UUUUUU
  3703. UUUUUUUUUU
  3704. UUUUUUUUUU
  3705. UUUUUUUUUU
  3706. UUUUUUUUUU
  3707. UUUUUUU
  3708. UUUUUU^
  3709. UUUUUU
  3710. UUUUUUUUUU
  3711. UUUUUUUUUU
  3712. UUUUUUUUUU
  3713. UUUUUUUUUU
  3714. UUUUUUUUUU
  3715. UUUUUU
  3716. UUUUUU
  3717. UUUUU
  3718. UUPUU
  3719. UUUUP
  3720. UUUUU
  3721. UUUUUUUUUU
  3722. UUUUUUUUUU
  3723. UUUUUUUUUU
  3724. UUUUUUUUUU
  3725. UUUUUU
  3726. UUUUU
  3727. UUUUU
  3728. UUUU^
  3729. UUUUU
  3730. UUUUUUUUUU
  3731. wwwwwwwwww
  3732. wwwwwwwwww
  3733. wwwwwwwwww
  3734. wwwwwwwwww
  3735. wwwwwwwwww?Fwwx
  3736. wwwwp
  3737. dlg_custom
  3738. dlg_checkbox
  3739. dlg_radiobutton
  3740. dlg_field
  3741. dlg_borderlessfield
  3742. dlg_bitmap
  3743. dlg_singleSelectlistbox
  3744. dlg_combobox
  3745. dlg_icon
  3746. dlg_select
  3747. dlg_groupBox
  3748. dlg_button
  3749. dlg_openDialog
  3750. dlg_saveDialog
  3751. dlg_properties
  3752. dlg_character
  3753. dlg_undo
  3754. dlg_disableUndo
  3755. dlg_duplicate
  3756. dlg_disableDuplicate
  3757. dlg_BringToFront
  3758. dlg_DisableBringToFront
  3759. dlg_SendToBack
  3760. dlg_disableSendToBack
  3761. dlg_showDialog
  3762. dlg_disableshowDialog
  3763. dlg_sendFarther
  3764. dlg_DisableSendFarther
  3765. dlg_bringCloser
  3766. dlg_disableBringCloser
  3767. dlg_saveDialogas
  3768. 524480,21,25,25,247,166,,,Edit Properties,8,MS Sans Serif,,5.00,41.00,73.00,47.00,4848,1342177287,128,Justification,0,,6.00,24.00,34.00,12.00,253,1342177280,130,Layer,0,,95.00,24.00,38.00,12.00,254,1342177280,130,Control ID:,0,,6.00,7.00,24.00,12.00,252,1342177280,130,Name,0,,93.00,37.00,55.00,9.00,6115,1342177280,130,Initial Text,0,,137.00,24.00,25.00,8.00,240,1342177280,130,ID,0,,45.00,6.00,127.00,12.00,235,1350631552,129,,0,,45.00,23.00,20.00,12.00,245,1350631552,129,,0,,21.00,50.00,25.00,12.00,255,1342177289,128,&Left,0,,21.00,61.00,34.00,12.00,265,1342177289,128,&Center,0,,21.00,71.00,31.00,12.00,260,1342177289,128,&Right,0,,94.00,47.00,85.00,61.00,250,1352728708,129,,0,,6.00,100.00,75.00,10.00,205,1342242819,128,&Vertical Scrollbar,0,,6.00,112.00,76.00,10.00,210,1342242819,128,&Horizontal Scrollbar,0,,6.00,124.00,76.00,10.00,215,1342242819,128,&Auto vertical scroll,0,password,6.00,136.00,51.00,10.00,2814,1342242819,128,&Password,0,,98.00,113.00,74.00,10.00,220,1342242819,128,&No Word Wrap,0,,98.00,124.00,57.00,10.00,225,1342242819,128,&Integer Only,0,,98.00,136.00,51.00,10.00,200,1342242819,128,&Multiline,0,,189.00,6.00,51.00,15.00,1,1342242817,128,OK,0,,189.00,24.00,51.00,15.00,2,1342242816,128,Cancel,0
  3769. W#W#a
  3770.