home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 14 / CDACTUAL.iso / cdactual / demobin / share / program / c / ZINCDEMO.ZIP / ZINCPOST.DAT (.txt) < prev   
Encoding:
Zinc Data  |  1993-02-15  |  92.0 KB  |  630 lines

  1. Zinc Data File Version 3.0
  2. )oTz+
  3. UIW_WINDOW
  4. UI_BITMAP
  5. UI_ICON+
  6. UI_HPP,
  7. UI_HELPo
  8. DERIVE_TABLE
  9. hardDrive
  10. softDrive
  11. networkDrive
  12. string    
  13. fmtstr
  14. number
  15. button
  16. radio
  17. check
  18. hlist
  19. APPLICATION$
  20. EXCLAMATION%
  21. HAND'
  22. minIcon)
  23. analog*
  24. wdesign(
  25. desk&
  26. QUESTION#
  27. ASTERISK
  28. gTz+gTz+2
  29. vlist
  30. combo
  31. hscroll
  32. vscroll
  33. toolbar
  34. prompt
  35. group
  36. parentDirectory
  37. childDirectory
  38. popitem
  39. popmenu
  40. pllitem 
  41. pllmenu!
  42. window
  43.                     
  44.                                     
  45.                                     
  46.                     
  47.                                                                                                                     
  48.                                                                                                                     
  49.                                                                                                                     
  50. HELP_CONTEXTS
  51. HELP_ORDER_INFORMATION/
  52. HELP_GENERAL0
  53. HELP_STRING1
  54. HELP_FORMATTED_STRING2
  55. HELP_TEXT3
  56. HELP_DATE4
  57. HELP_TIME5
  58. HELP_BIGNUM6
  59. HELP_BUTTON7
  60. HELP_RADIO_BUTTON8   Pleasant Grove, Utah 84062 USA
  61.      Tel: (801) 785-8900
  62.      Fax: (801) 785-8996
  63.      BBS: (801) 785-8997
  64. For more information or to order in Europe, please call or write:
  65.      Zinc Software (UK) Limited
  66.      58-60 Beresford Street
  67.      Londo Windows Key
  68.      Windows NT Key
  69.      IBM OS/2 Key
  70.      IBM PenDOS Key
  71.      OSF/Motif Key
  72.      Video Training Series (NTSC or PAL)
  73. NOTE: Zinc Designer is provided for each platform key that you order. In addition, the COMPLETE source code to Zinc AGeneral Help...R
  74. const UI_HELP_CONTEXT INFO_STRING                      = 0x0024; // String Help...\
  75. const UI_HELP_CONTEXT INFO_FORMATTED_STRING            = 0x0025; // Formatted String Help...P
  76. const UI_HELP_CONTEXT INFO_TEXT                        = 0x00    = 0x0032; // Pull-down Menu Help...W
  77. const UI_HELP_CONTEXT INFO_POP_UP_MENU                 = 0x0033; // Pop-up Menu Help...\
  78. const UI_HELP_CONTEXT INFO_POP_UP_MENU_ITEM            = 0x0034; // Pop-up Menu Item Help...T
  79. const UI_HELP_CONTEXT INFO_TOOL_ion.
  80. COPYRIGHT (C) 1990-1993 Zinc Software Incorporated.  All Rights Reserved.
  81. General Help...
  82. Welcome to this demonstration of Zinc Application Framework 3.5.  Zinc 3.5 is a truly object-oriented, multiplatform development tool.  Zinc 3.5 applications can run on a RISC-based Unix workstation, a palmtop running DOS, and just about every platform in between.
  83. This demonstration program was created with Zinc Application Framework 3.5.  The DOS, protected mode DOS, Microsoft Windows, Windows NT, IBM OS/2, IBM PenDOS and OSF/Motif versions were compiled from the same source code (ZINCDEMO.CPP).  All versions also share the same platform-independent resource file (ZINCPOST.DAT).  (NOTE: The latest version of these programs can be downloaded free of charge from Zinc's BBS (801-785-8997 or +44(0)81 317 2310 in Europe).  To run the DOS demo in Text mode type ZINC_DOS /T.)
  84. This demonstration program features all of the window objects that are provided with Zinc Application Framework.  If you select an object from the menu, the tool bar, or the vertical list, example(s) of the object willser functions receive messages from Zinc and can be executed when PULL DOWN MENU ITEM is selected, becomes current and/or becomes non-current.
  85. Constructor => UIW_PULL_DOWN_ITEM(text, menu flags, user function, programmer assigned value)
  86. Press <Alt+F4                    = 0x0038; // Icon Help...T
  87. const UI_HELP_CONTEXT INFO_KEYBOARD                    = 0x0039; // Keyboard Help...Q
  88. const UI_HELP_CONTEXT INFO_MOUSE                       = 0x003A; // Mouse Help...Z
  89. const UI_HELP_CONTEXT INFO_WINDOW_MANAGEluding: input fields, icons and buttons.
  90. A compare function may be added in the argument list to sort list elements.
  91. Constructor => UIW_HZ_LIST(left, top, width, height, cell width, cell Height, compare function, list flags, window flags, advanced fl
  92. String Help...
  93. STRING is used to enter, modify and display single-line alphanumeric string information.  Five string flags determine how the string is formatted and edited, including: no formatting, upper-case, lower-case, password and variable name (whn, SE18 6BG United Kingdom
  94.      Tel: +44 (0)81 855 9918
  95.      Fax: +44 (0)81 316 7778
  96.      BBS: +44 (0)81 317 2310
  97. Press <Alt+F4> to continue...
  98. LPntinue...
  99.   heck Box Help...[
  100. const UI_HELP_CONTEXT INFO_HLIST                       = 0x002D; // Horizontal List Help...Y
  101. const UI_HELP_CONTEXT INFO_VLIST                       = 0x002E; // Vertical List Help...U
  102. const UI_HELP_CONTEXT INFO_COMBO_BOX                  onstructor (shown below).
  103. User functions receive messages from Zinc and can be executed when BUTTON is selected, becomes current and/or becomes non-current.
  104. BUTTON is also used to create Radio Buttons, Buttons with associated bitmaps, and Check Boxes
  105. Formatted String Help...%
  106. FORMATTED STRING is used to enter, modify and display alphanumeric information in a pre-defined format that you specify (e.g., phone number, part number, serial number).
  107. FORMATTED STRING allows you to perform edit functions such as mark, cut, copy and paste both within the formatted string itself and among any other edit object (e.g., number, text, date).
  108. You may associate a user function or validation routine by adding the name of the function to the argument list of the constructor (shown below).  User functions receive messages from Zinc and can be executed when FORMATTED STRING is selected, becomes current and/or becomes non-current.
  109. Constructor => UIW_FORMATTED_STRING(left, top, width, text, edit mask, literal mask, window flags, user function)
  110. Press <Alt+F4> to continue...
  111. Text Help...m
  112. TEXT is used to enter, modify and display multiple-line text information.  It features mark, cut, copy, paste, optional word wrap, home, end, page-up, page-down, word-left, word-right, etc.
  113. You may associate a user function or validation routine by adding the name of the function to the argument list of the constructor (shown below).  User functions receive messages from Zinc and can be executed when TEXT is selected, becomes current and/or becomes non-current.
  114. Constructor => UIW_TEXT(left, top, width, height, text, maximum length, text flags, window flags, user function)
  115. Press <Alt+F4> to continue...
  116. Date Help...t
  117. DATE is used to enter, display and modify country-independent date information.  15 date specific flags determine appropriate display formatting, including: U.S., European, Japanese, military, short (day, month, year), slash, zero fill, upp
  118. Zier).  The PEN feeds input information directly to the Event Queue.
  119. The PEN is attached to the Event Manager at run-time using the Add member function or the overloaded '+' operator:
  120. // Initialize the event manager and attach the keyboard, pen and cur
  121. Video Training Help...Z
  122. Although generic C++ training videos are widely available, product-specific video-based training has been virtually non-existent.  In response, Zinc Software has developed an intensive four-hour videotape training series for Zinc ONTEXT HELP_HELP_SYSTEM                 = 0x001E; // Help System Help...X
  123. const UI_HELP_CONTEXT HELP_ERROR_SYSTEM                = 0x001F; // Error System Help...Y
  124. const UI_HELP_CONTEXT HELP_ZINC_DESIGNER               = 0x0020; // Zinc Designer Help...^
  125. Time Help...j
  126. TIME is used to enter, modify and display country-independent time information.  13 time specific flags determine the appropriate display formatting, including: colon separator, zero fill, hours, minutes, seconds, 12 Hour, 24 Hour, upper case and lower case.
  127. TIME examines the country information provided by the operating system to display the appropriate format.  For example, the time 3:25pm will display as 15:25 if a European country code is detected.
  128. You may associate a user function or validation routine by adding the name of the function to the argument list of the constructor (shown below).  User functions receive messages from Zinc and can be executed when TIME is selected, becomes current and/or becomes non-current.
  129. Constructor => UIW_TIME(left, top, width, time, range, time flags, window flags, user function)
  130. Press <Alt+F4> to continue...
  131. Number Help...3
  132. BIGNUM is used to enter, modify and display country-independent numeric information.  BIGNUM has a default maximum value of 30 digits to the left and 8 digits to the right of the decimal.  Six number flags determine how the number is displayed, including: currency, credit ( ), commas, decimal (0 to 8 places) and percent.
  133. BIGNUM examines the country information provided by the operating system to display the appropriate format.  For example, $100.00 (US) will display as DM100.00 if the German country code is detected.
  134. NOTE: Zinc 3.5 also provides INTEGER and REAL objects for more specific numeric processing.
  135. You may associate a user function or validation routine by adding the name of the function to the argument list of the constructor (shown below).  User functions receive messages from Zinc and can be executed when BIGNUM, REAL or INTEGER is selected, becomes current and/or becomes non-current.
  136. Constructor => UIW_BIGNUM(left, top, width, number, list of valid ranges, number flags, window flags, user function)
  137. Press <Alt+F4> to continue...
  138. Button Help...
  139. BUTTON is a selectable field used to perform run-time operations. You may attach a bitmap to customize the button.
  140. You may associate a user function or validation routine by adding the name of the function to the argument list of the cdata structure.  If the resource is large then performance can be affected when accessing objects at the end of the stream.  Zinc POST resources use a high-performance, Unix-like directory structure which allows you to create very large resources without s by simply passing a status flag (button flag) in the constructor argument list.
  141. Constructor => UIW_BUTTON(left, top, width, button text, button flags, window flags,  user function, programmer assigned value, bitmap name associated with button)
  142. Presst return policy--please check with your reseller before you purchase.)
  143. You may freely copy and distribute this demonstration program as long as it is distributed with all original files and copyright information.
  144. Zinc is a registered trademark and Zin your application windows and window objects.  Zinc POST (Persistent-Object Storage Technology) allows you to save the resources you create with Zinc Designer in a platform-independent binary data file.  Zinc Designer is included with Zinc Application Fra
  145. Radio Button Help...
  146. RADIO BUTTON is a button control that allows only one item in a group to be selected.  RADIO BUTTON is a button with the BTF_RADIO_BUTTON button flag used in the argument list.
  147. You may associate a user function or validation routine by adding the name of the function to the argument list of the constructor (shown below).  User functions receive messages from Zinc and can be executed when RADIO BUTTON is selected, becomes current and/or becomes non-current.
  148. Constructor => UIW_BUTTON(left, top, width, button text, BTF_RADIO_BUTTON, window flags, user function, programmer assigned value, bitmap name)
  149. Press <Alt+F4> to continue...
  150. HELP_CHECK_BOX9
  151. HELP_HLIST:
  152. HELP_VLIST;
  153. HELP_COMBO_BOX<
  154. HELP_SCROLL_BAR=
  155. HELP_WINDOW>
  156. HELP_PULL_DOWN_MENU?
  157. HELP_PULL_DOWN_ITEM@
  158. HELP_POP_UP_MENUA
  159. HELP_POP_UP_MENU_ITEMB
  160. Check Box Help...y
  161. CHECK BOX is a button control that allows multiple items in a group to be selected.  CHECK BOX is a button with the BTF_CHECK_BOX button flag used in the argument list.
  162. You may associate a user function or validation routine by adding the name of the function to the argument list of the constructor (shown below).  User functions receive messages from Zinc and can be executed when CHECK BOX is selected, becomes current and/or becomes non-current.
  163. Constructor => UIW_BUTTON(left, top, width, button text, BTF_CHECK_BOX, window flags, user Function, programmer assigned value, bitmap name)
  164. Press <Alt+F4> to continue...
  165. Horizontal List Help...
  166. HORIZONTAL LIST is used to enter, modify and display related information in row and column format.  You can add a scroll bar to horizontally scroll the list.  A wide variety of window objects can be placed in HORIZONTAL LIST, incprovides a conceptual overview of Zinc's event-driven architecture, multiplatform issues, and object-oriented programming techniques such as message processing, callback functions, and deriving objects from Zinc's base classes.
  167. Zinc offers a 60-day monerarchy can be viewed by selecting the "Help, Class hierarchy" menu option.
  168. This program does not demonstrate the features of Zinc's interactive design tool, Zinc Designer.  Zinc Designer runs on each target platform and allows you to interactively desig appear in the upper right corner of the display area.  Information on the object appears in the text field immediately below the object.  If you press F1, additional information including the constructor will appear in a help window.  The entire class hie
  169. Vertical List Help...
  170. VERTICAL LIST is used to enter, modify and display related information in a vertical list format.  You can add a scroll bar to vertically scroll the list.  A wide variety of window objects can be placed in VERTICAL LIST, including: input fields, icons and buttons.
  171. A compare function may be added in the argument list to sort list elements.
  172. Constructor => UIW_VT_LIST(left, top, width, height, compare function, list flags, window flags, advanced flags)
  173. Press <Alt+F4> to continue...
  174. Combo-Box Help...Z
  175. COMBO BOX is a combination input field and vertical list.  COMBO BOX can contain input fields, icons and buttons.
  176. A compare function may be added in the argument list to sort list elements.
  177. Constructor => UIW_COMBO_BOX(left, top, width, height, compare function, list flags, window flags, advanced flags) 
  178. Press <Alt+F4> to continue...
  179. Scroll-Bar Help...
  180. SCROLL BAR is a selectable region used to scroll the displayed portion of a window, list box or text input field.
  181. Constructor => UIW_SCROLL_BAR(left, top, width, height, HORIZONTAL OR VERTICAL, window flags)
  182. Press <Alt+F4> to coBAR(left, top, width, height, tool bar flags, window flags, advanced flags)
  183. Press <Alt+F4> to continue...
  184. Order Information Help...|
  185. Zinc Application Framework 3.5 is composed of an engine and one or more platform specific modules (or Keys).  The currently available options are:
  186.      Zinc Engine (required)
  187.      DOS Key (text and graphics)
  188.      Microsoft
  189. Window Help...(
  190. WINDOW is a rectangular region of the display used as the controlling structure for window objects.  Zinc supports parent, child, MDI, modal and dialog windows.
  191. Constructor => UIW_WINDOW(left, top, width, height, window flags, advanced flags, help context)
  192. Press <Alt+F4> to continue...
  193. Pull-down Menu Help...
  194. PULL DOWN MENU is used to organize and control pull-down menu items (PULL DOWN ITEMS).
  195. Constructor => UIW_PULL_DOWN_MENU(indentation, item)
  196. Press <Alt+F4> to continue...
  197. Pull-down Menu Item Help...
  198. PULL DOWN ITEM is used as the first-level selection within a menu system.
  199. You may associate a user function or validation routine by adding the name of the function to the argument list of the constructor (shown below).  U     = 0x0012; // Pull-down Menu Item Help...W
  200. const UI_HELP_CONTEXT HELP_POP_UP_MENU                 = 0x0013; // Pop-up Menu Help...\
  201. const UI_HELP_CONTEXT HELP_POP_UP_MENU_ITEM            = 0x0014; // Pop-up Menu Item Help...T
  202. const UI_HELP_CONTEXT HELP Help...\
  203. const UI_HELP_CONTEXT HELP_FORMATTED_STRING            = 0x0004; // Formatted String Help...P
  204. const UI_HELP_CONTEXT HELP_TEXT                        = 0x0005; // Text Help...P
  205. const UI_HELP_CONTEXT HELP_DATE                        = 0x0006; // DaMANAGER              = 0x001B; // Window Manager Help...Y
  206. const UI_HELP_CONTEXT HELP_EVENT_MANAGER               = 0x001C; // Event Manager Help...Z
  207. const UI_HELP_CONTEXT HELP_SCREEN_DISPLAY              = 0x001D; // Screen Display Help...W
  208. const UI_HELP_C
  209. Pop-up Menu Help...
  210. POP UP MENU is used to organize and control pop-up menu items. POP UP MENUS are also used for cascading menus.
  211. Constructor => UIW_POP_UP_MENU(left, top, menu flags, item)
  212. Press <Alt+F4> to continue...
  213. Pop-up Menu Item Help...
  214. POP UP MENU ITEM is used to select a specific action from a pop-up menu.
  215. You may associate a user function or validation routine by adding the name of the function to the argument list of the constructor (shown below).  User functions receive messages from Zinc and can be executed when POP UP MENU ITEM is selected, becomes current and/or becomes non-current.
  216. Constructor => UIW_POP_UP_ITEM(text, menu flags, user function, programmer assigned value)
  217. Press <Alt+F4> to continue...
  218. HELP_TOOL_BARC
  219. HELP_PROMPTD
  220. HELP_GROUPE
  221. HELP_ICONF
  222. HELP_KEYBOARDG
  223. HELP_MOUSEH
  224. HELP_WINDOW_MANAGERI
  225. HELP_EVENT_MANAGERJ
  226. HELP_SCREEN_DISPLAYK
  227. HELP_HELP_SYSTEML
  228. HELP_ERROR_SYSTE
  229. Tool-Bar Help...\
  230. TOOL BAR is a menu control used to group buttons, icons, and input fields.  A tool bar can be static or wrapped when re-sizing the window.  It can be independent of or used in conjunction with PULL DOWN MENU.
  231. Constructor => UIW_TOOL_y-back period during which time you can evaluate the software, documentation and Zinc's technical support.  If you aren't satisfied for any reason, simply return the product for a full refund of the purchase price.  (NOTE: Your reseller may have a differenignificantly affecting performance.
  232. Press <Alt+F4> to continue...
  233. Prompt Help...
  234. PROMPT is a static control that is used to provide the user with information regarding input fields and program activity.
  235. Constructor => UIW_PROMPT(left, top, text, window flags)
  236. Press <Alt+F4> to continue...
  237. Group Help...
  238. GROUP is a static control that is used to group radio buttons and check boxes.
  239. Constructor => UIW_GROUP(left, top, width, height, text, group flags, window flags)
  240. Press <Alt+F4> to continue...
  241. Icon Help...
  242. ICON is a static control used to present graphical information.  Icons may be used to select a user-defined action.
  243. Constructor => UIW_ICON(left, top, icon name, title, icon flags, window flags, user function)
  244. Press <Alt+F4> to contin
  245. Constructor => UIW_STRING(left, top, width, text, maximum length, string flags, window flags, user function)
  246. Press <Alt+F4> to continue...
  247.  C26; // Text Help...P
  248. const UI_HELP_CONTEXT INFO_DATE                        = 0x0027; // Date Help...P
  249. const UI_HELP_CONTEXT INFO_TIME                        = 0x0028; // Time Help...R
  250. const UI_HELP_CONTEXT INFO_BIGNUM                      = 0x0029; // Num
  251. Keyboard Help...
  252. KEYBOARD is used to collect information from the keyboard.  It is attached to a list that is maintained by the Event Manager (see Event Manager).  The KEYBOARD feeds information to the Event Queue when polled by the Event Manager.
  253. The KEYBOARD is attached to the Event Manager at run-time using the Add member function or the overloaded '+' operator:
  254. // Initialize the event manager and attach the keyboard, mouse and cursor devices.
  255.      UI_EVENT_MANAGER *eventManager =
  256.      new UI_EVENT_MANAGER(display);
  257.      *eventManager
  258.           + new UID_KEYBOARD
  259.           + new UID_MOUSE
  260.           + new UID_CURSOR;
  261. Press <Alt+F4> to continue...
  262. Mouse Help...
  263. MOUSE is used to collect information from a mouse input device. It is attached to a list which is maintained by Zinc's Event Manager (see Event Manager).  The MOUSE feeds input information directly to the Event Queue.
  264. The MOUSE is attached to the Event Manager at run-time using the Add member function or the overloaded '+' operator:
  265. // Initialize the event manager and attach the keyboard, mouse and cursor devices.
  266.      UI_EVENT_MANAGER *eventManager =
  267.      new UI_EVENT_MANAGER(display);
  268.      *eventManager
  269.           + new UID_KEYBOARD
  270.           + new UID_MOUSE
  271.           + new UID_CURSOR;
  272. Press <Alt+F4> to continue...
  273. Window Manager Help...+
  274. Zinc's Window Manager maintains a list of window objects and controls their positioning and their state (e.g., current, non-current).
  275. Event information (whether received from a polled or interrupt driven device) is placed in anR              = 0x003B; // Window Manager Help...Y
  276. const UI_HELP_CONTEXT INFO_EVENT_MANAGER               = 0x003C; // Event Manager Help...Z
  277. const UI_HELP_CONTEXT INFO_SCREEN_DISPLAY              = 0x003D; // Screen Display Help...W
  278. const UI_HELP_CONTEXT INFO_HELP_SYSTEM                 = 0x003E; // Help System Help...X
  279. const UI_HELP_CONTEXT INFO_ERROR_SYSTEM                = 0x003F; // Error System Help...X
  280. const UI_HELP_CONTEXT INFO_FONT_SUPPORT                = 0x0040; // Font Support Help...X
  281. const UI_HELP_CONTEXT HELP_FONT_SUPPORT                = 0x0041; // Font Support Help...Z
  282. const UI_HELP_CONTEXT HELP_APPLICATION                 = 0x0042; // UI_APPLICATION Help...Z
  283. const UI_HELP_CONTEXT HELP_VIDEO                       = 0x0043; // Video Trainingp...X
  284. const UI_HELP_CONTEXT HELP_RADIO_BUTTON                = 0x000A; // Radio Button Help...U
  285. const UI_HELP_CONTEXT HELP_CHECK_BOX                   = 0x000B; // Check Box Help...[
  286. const UI_HELP_CONTEXT HELP_HLIST                       = 0x000C; // Horizer function or validation routine by adding the name of the function to the argument list of the constructor (shown below).  User functions receive messages from Zinc and can be executed when STRING is selected, becomes current and/or becomes non-current.
  287. Event Manager Help...m
  288. The backbone of Zinc Application Framework 3.5 is its event-driven architecture.  This architecture exploits the power of object-orientation to insulate you from the complexities of the operating environment without restricting your access to environment specific features, like the Microsoft Windows messages or the raw scan codes from the keyboard.
  289. Events are received and processed in a Zinc application with Zinc's Event Manager, Window Manager and Event Mapping.  The Event Manager maintains a list of run-time devices.  Devices included with the library are the keyboard, mouse, and cursor. A pen input device is included with the optional PenDOS Key.  You can also create your own input devices such as serial communications, by deriving a new device from the UI_DEVICE base class.
  290. All events are stored in the event queue in their raw state.  Raw event information when running under DOS is the keyboard scan code or mouse state.  Under Microsoft Windows or OS/2 it is the native environment message.
  291. Zinc lets you avoid dealing with raw event information (e.g., F1 key, left mouse click, WM_PAINT message), by logically mapping events at the object level (e.g., L_HELP, L_BEGIN_MARK, S_DISPLAY_ACTIVE).  Raw input is mapped to the appropriate logical event for the current object.  For example, the left mouse click is mapped to L_BEGIN_SELECT if the current object is the window object, and L_BEGIN_MARK if the current object is the text object.  This unique feature of Zinc Application Framework permits you to work with event information in a device and object independent fashion and doesn't require you to know specific information about the device that generated the event or the object that receives the event.
  292. The following code demonstrates how the EVENT MANAGER is initialized and how input devices are attached using the overloaded '+' operator:
  293. // Initialize the event manager and attach input devices.
  294.      UI_EVENT_MANAGER *eventManager =
  295.      new UI_EVENT_MANAGER(display);
  296.      *eventManager
  297.           + new UID_KEYBOARD
  298.           + new UID_MOUSE
  299.           + new UID_CURSOR;
  300. Press <Alt+F4> to continue...
  301. Screen Display Help...
  302. Zinc's display classes abstract hardware or operating-specific display standards, including: Monochrome, Hercules, CGA, EGA, VGA, SVGA, Microsoft Windows, Windows NT, IBM OS/2 and OSF/Motif.  Zinc Application Framework for DOS includes a high-performance graphics library as well as support for third party graphics libraries such as Borland, Microsoft, and Zortech.
  303. You can create a display class for your own graphics library by deriving from the UI_DISPLAY base class.  You can also create a single executable program that supports both DOS Graphics and DOS Text.
  304.      UI_BGI_DISPLAY: Borland Graphics Display
  305.      UI_FG_DISPLAY: Zortech Flash Graphics Display
  306.      UI_GRAPHICS_DISPLAY: Zinc Graphics Display
  307.      UI_MOTIF_DISPLAY: OSF/Motif Display
  308.      UI_MSC_DISPLAY: Microsoft Graphics Display
  309.      UI_MSWINDOWS_DISPLAY: Microsoft Windows Display
  310.      UI_OS2_DISPLAY: IBM OS/2 Display
  311.      UI_TEXT_DISPLAY: DOS Text Mode Display
  312. The following code demonstrates how a Zinc DISPLAY CLASS is initialized:
  313. // Initialize MS Windows 3.X display class
  314.       UI_DISPLAY *display =
  315.       new UI_MSWINDOWS_DISPLAY(instance, hPrevInstance, nCmdShow);
  316. // Initialize DOS display, trying for graphics first.
  317.      UI_DISPLAY *display = new UI_GRAPHICS_DISPLAY;
  318.      if (!display->installed)
  319.      {
  320.           delete display;
  321.           display = new UI_TEXT_DISPLAY;
  322.      }
  323. Press <Alt+F4> to continue...
  324. Help System Help...
  325. Zinc provides a help system to allow you to create context sensitive help screens for your users.  HELP SYSTEM is derived from the UI_HELP_SYSTEM class.  You may also derive your own help system from this class.
  326. The following code = 0x002F; // Combo-Box Help...V
  327. const UI_HELP_CONTEXT INFO_SCROLL_BAR                  = 0x0030; // Scroll-Bar Help...R
  328. const UI_HELP_CONTEXT INFO_WINDOW                      = 0x0031; // Window Help...Z
  329. const UI_HELP_CONTEXT INFO_PULL_DOWN_MENU          ber Help...R
  330. const UI_HELP_CONTEXT INFO_BUTTON                      = 0x002A; // Button Help...X
  331. const UI_HELP_CONTEXT INFO_RADIO_BUTTON                = 0x002B; // Radio Button Help...U
  332. const UI_HELP_CONTEXT INFO_CHECK_BOX                   = 0x002C; // CMM
  333. HELP_ZINC_DESIGNERN
  334. HELP_PERSISTENT_OBJECTSO
  335. HELP_CLASS_HIERARCHYP
  336. INFO_GENERALQ
  337. INFO_STRINGR
  338. INFO_FORMATTED_STRINGS
  339. INFO_TEXTT
  340. INFO_DATEU
  341. INFO_TIMEV
  342. INFO_BIGNUMW
  343. Error System Help...v
  344. Zinc provides an error system to allow you to generate error messages for your users.  The ERROR SYSTEM is derived from the UI_ERROR_SYSTEM class.  You may also derive your own error system from this class.
  345. The following code demonstrates how a Zinc ERROR SYSTEM is initialized:
  346. UI_WINDOW_OBJECT::errorSystem = new UI_ERROR_SYSTEM;
  347. Press <Alt+F4> to continue...
  348. Zinc Designer Help...
  349. Zinc 3.5 offers the tightest integration available between an interactive design tool and the supporting class library.  Most Windows developers use a resource tool to help create their program interface.  Resource tools are language and library independent by design and therefore cannot access all the features of a given class library.  This results in a fragmented approach to application development with isolated user functions and non-specific documentation.  You are saddled with the not-so-obvious details of integrating your code with both the class library and the resources you create with the resource tool.  The seamless integration of Zinc Designer and Zinc 3.5 contrasts sharply with this a la carte approach.
  350. Zinc Designer lets you interactively create your application screens using Zinc objects AND objects that you have derived from Zinc classes.  You use a mouse to select windows and window objects from the menu or tool bar and place them on the screen.  You can easily customize objects with Zinc Designer's interactive editors.  For example, create input fields for formatted information such as a part number or phone number. Just double click on the formatted-string object to open the editor.  Now you can enter formatting codes, modify the string identifier, attach context-sensitive help and attach a user function.  User functions are attached to input objects, controls and menus via their respective editors.  (User procedures can be executed when the field is made current, non-current and/or selected.)
  351. After creating your screens you save them to disk in a platform-independent resource file with a .DAT extension using Zinc POST (Persistent-Object Storage Technology) resources. You add these resources to your application with one line of code.  You can also load resources you create with the Windows version of Zinc Designer into the DOS, OS/2, Motif versions and vice versa.
  352. Zinc Designer's complete access to the Zinc class library, straightforward integration of your code and platform-independent, persistent object storage can dramatically enhance your productivity.  With Zinc you can focus your efforts on building great applications instead of wasting time trying to integrate your interface tools.
  353. Press <Alt+F4> to co
  354. Persistent Objects Help...*
  355. POST (Persistent Object Storage Technology) resources in Zinc 3.5 dramatically improve your productivity by allowing you to store windows and window objects in a platform-independent data file.  Objects that you create and sto
  356. Pen Help...
  357. Zinc Software supports the IBM PenDOS operating system with a pen input object.  The PEN is used to collect pen input information from a pen input device.  It is attached to a list which is maintained by Zinc's Event Manager (see Event Managags)
  358. Press <Alt+F4> to continue...
  359. Class Hierarchy Help...f
  360. Zinc Application Framework CLASS HIERARCHY
  361. class UI_APPLICATION
  362. class UI_DISPLAY
  363.       - *class UI_BGI_DISPLAY
  364.       - *class UI_FG_DISPLAY
  365.       - *class UI_GRAPHICS_DISPLAY
  366.       - *class UI_TEXT_DISPLAY
  367.       -  class UI_MOTIF_DISPLAY
  368.       - *class UI_MSC_DISPLAY
  369.       -  class UI_MSWINDOWS_DISPLAY
  370.       -  class UI_OS2_DISPLAY
  371. class UI_ELEMENT
  372.       - class UI_DEVICE
  373.             - class UID_CURSOR
  374.             - class UID_KEYBOARD
  375.             - class UID_MOUSE
  376.             - class UID_PENDOS
  377.       - class UI_PATH_ELEMENT
  378.       - class UI_QUEUE_ELEMENT
  379.       - class UI_REGION_ELEMENT
  380.       - class UI_WINDOW_OBJECT
  381.             - class UIW_BORDER
  382.             - class UIW_BUTTON
  383.                   - class UIW_MAXIMIZE_BUTTON
  384.                   - class UIW_MINIMIZE_BUTTON
  385.                   - class UIW_POP_UP_ITEM
  386.                   - class UIW_PULL_DOWN_ITEM
  387.                   - class UIW_SYSTEM_BUTTON
  388.                   - class UIW_TITLE
  389.             - class UIW_ICON
  390.             - class UIW_PROMPT
  391.             - class UIW_STRING
  392.                   - class UIW_BIGNUM
  393.                   - class UIW_DATE
  394.                   - class UIW_FORMATTED_STRING
  395.                   - class UIW_INTEGER
  396.                   - class UIW_REAL
  397.                   - class UIW_TIME
  398.            - *class UIW_WINDOW
  399.                   - class UI_WINDOW_MANAGER
  400.                   - class UIW_COMBO_BOX
  401.                   - class UIW_GROUP
  402.                   - class UIW_HZ_LIST
  403.                   - class UIW_POP_UP_MENU
  404.                   - class UIW_PULL_DOWN_MENU
  405.                   - class UIW_SCROLL_BAR
  406.                   - class UIW_TEXT
  407.                   - class UIW_TOOL_BAR
  408.                   - class UIW_VT_LIST
  409. class UI_ERROR_SYSTEM
  410. class UI_HELP_SYSTEM
  411. class UI_INTERNATIONAL
  412.       - class UI_BIGNUM
  413.       - class UI_DATE
  414.       - class UI_TIME
  415. class UI_LIST
  416.       - class UI_EVENT_MANAGER
  417.       - class UI_LIST_BLOCK
  418.             - class UI_QUEUE_BLOCK
  419.       - class UI_PATH
  420.       - class UI_REGION_LIST
  421.             - *class UI_BGI_DISPLAY
  422.             - *class UI_FG_DISPLAY
  423.             - *class UI_GRAPHICS_DISPLAY
  424.             - *class UI_TEXT_DISPLAY
  425.             - *class UI_MSC_DISPLAY
  426.       - *class UIW_WINDOW
  427. class UI_STORAGE
  428. class UI_STORAGE_OBJECT
  429. struct UI_EVENT
  430. struct UI_EVENT_MAP
  431. struct UI_ITEM
  432. struct UI_KEY
  433. struct UI_PALETTE
  434. struct UI_PALETTE_MAP
  435. struct UI_POSITION
  436. struct UI_REGION
  437. struct UI_SCROLL_INFORMATION
  438. * indicates multiple inheritanceU
  439. General Help...B
  440. Zinc Application Framework 3.5
  441. Demonstration Program
  442. Press <F1> for General Help information
  443. You may freely copy and distribute this demonstration program as long as it is distributed with all original files and copyright informat]
  444. const UI_HELP_CONTEXT HELP_ORDER_INFORMATION           = 0x0001; // Order Information Help...S
  445. const UI_HELP_CONTEXT HELP_GENERAL                     = 0x0002; // General Help...R
  446. const UI_HELP_CONTEXT HELP_STRING                      = 0x0003; // StringConstructor => UIW_DATE(left, top, width, date, range, date flags, window flags, user function)
  447. Press <Alt+F4> to continue...
  448. String Help...
  449. STRING is used to enter, modify and display single-line alphanumeric string information.  String flags determine formatting of the string including: no formatting, upper-case, lower-case, password and variable name (where spaces are converted to the underscore character).
  450. NOTE: With the Password flag set, STRING accepts input characters but only displays a blank space to the screen.
  451. Formatted String Help...
  452. FORMATTED STRING is used to enter, modify and display alphanumeric information in a pre-defined format that you specify, such as phone number, part number or serial number.
  453. Text Help...
  454. TEXT is used to enter, modify and display multiple-line text information.  It features mark, cut, copy, paste, word wrap, home, end, page-up, page-down, word-left, word-right, etc.
  455. ue...
  456. Date Help...
  457. DATE is used to enter, display and modify country-independent date information.  15 date specific flags determine appropriate display formatting, including: U.S., European, Japanese, military, short (day, month, year), slash, zero fill, upper case and lower case.
  458. Time Help...
  459. TIME is used to enter, modify and display country-independent time information.  13 time specific flags determine the appropriate display formatting, including: colon separator, zero fill, hours, minutes, seconds, 12 Hour, 24 Hour, upper case and lower case.
  460. Number Help...F
  461. BIGNUM is used to enter, modify and display country-independent numeric information.  BIGNUM has a default maximum value of 30 digits to the left and 8 digits to the right of the decimal.  Six number flags determine how the number is dispmework along with the complete source code to the class library and the designer.
  462. In addition to powerful multiplatform technology and over 1,400 pages of detailed documentation, Zinc offers a four-hour, videotape training series.  The videotape series nc Application Framework, Zinc Designer, and Zinc POST are trademarks of Zinc Software Incorporated. All other trademarks or tradenames used herein are owned by their respective companies.
  463. COPYRIGHT (C) 1990-1993 Zinc Software Incorporated.  All Rights FO_BUTTONX
  464. INFO_RADIO_BUTTONY
  465. INFO_CHECK_BOXZ
  466. INFO_HLIST[
  467. INFO_VLIST\
  468. INFO_COMBO_BOX]
  469. INFO_SCROLL_BAR^
  470. INFO_WINDOW_
  471. INFO_PULL_DOWN_MENU`
  472. INFO_POP_UP_MENUa
  473. INFO_POP_UP_MENU_ITEM
  474. Button Help...v
  475. BUTTON is a selectable field used to perform run-time operations. You may attach a bitmap to customize the button.
  476. Radio Button Help...
  477. RADIO BUTTON is a button control that allows only one item in a group to be selected.  RADIO BUTTON is a button with the BTF_RADIO_BUTTON button flag set in the argument list.
  478. Check Box Help...
  479. CHECK BOX is a button control that allows multiple items in a group to be selected.  CHECK BOX is a button with the BTF_CHECK_BOX button flag set in the argument list.
  480. BAR                    = 0x0035; // Tool-Bar Help...R
  481. const UI_HELP_CONTEXT INFO_PROMPT                      = 0x0036; // Prompt Help...Q
  482. const UI_HELP_CONTEXT INFO_GROUP                       = 0x0037; // Group Help...P
  483. const UI_HELP_CONTEXT INFO_ICON    
  484. Horizontal List Help...
  485. HORIZONTAL LIST is used to enter, modify and display related information in row and column format.  You can add a scroll bar to horizontally scroll the list.  A wide variety of window objects can be placed in HORIZONTAL LIST, including: input fields, icons and controls.
  486. Vertical List Help...
  487. VERTICAL LIST is used to enter, modify and display related information in a vertical list format.  You can add a scroll bar to vertically scroll the list.  A wide variety of window objects can be placed in VERTICAL LIST, including: input fields, icons and controls.
  488. Combo-Box Help...u
  489. COMBO BOX is a combination input field and vertical list.  COMBO BOX can contain input fields, icons and buttons.
  490. ON                        = 0x0018; // Icon Help...T
  491. const UI_HELP_CONTEXT HELP_KEYBOARD                    = 0x0019; // Keyboard Help...Q
  492. const UI_HELP_CONTEXT HELP_MOUSE                       = 0x001A; // Mouse Help...Z
  493. const UI_HELP_CONTEXT HELP_WINDOW_
  494. Scroll-Bar Help...u
  495. SCROLL BAR is a selectable region used to scroll the displayed portion of a window, list box or text input field.
  496. Window Help...
  497. WINDOW is a rectangular region of the display used as the controlling structure for window objects.  Zinc supports parent, child, MDI, modal and dialog windows.
  498. Pull-down Menu Help...
  499. NOTE: MS Windows does not allow a pull-down menu in a child window.  However, this feature IS demonstrated in DOS, OS/2 and Motif .
  500. PULL DOWN MENU is used to organize and control pull-down menu items (PULL DOWN ITEMS).
  501. x000F; // Scroll-Bar Help...R
  502. const UI_HELP_CONTEXT HELP_WINDOW                      = 0x0010; // Window Help...Z
  503. const UI_HELP_CONTEXT HELP_PULL_DOWN_MENU              = 0x0011; // Pull-down Menu Help..._
  504. const UI_HELP_CONTEXT HELP_PULL_DOWN_ITEM         *
  505. Pop-up Menu Help...
  506. NOTE: MS Windows does not allow a pull-down menu in a child window.  However, PULL DOWN MENU with a cascading POP UP MENU is demonstrated in DOS, OS/2, and Motif.
  507. POP UP MENU is used to organize and control pop-up menu items. POP UP MENUS are used for cascading menus.
  508. Pop-up Menu Item Help...L
  509. POP UP MENU ITEM is used to select a specific action from a pop-up menu.
  510. INFO_TOOL_BARc
  511. INFO_PROMPTd
  512. INFO_GROUPe
  513. INFO_ICONf
  514. INFO_KEYBOARDg
  515. INFO_MOUSEh
  516. INFO_WINDOW_MANAGERi
  517. INFO_EVENT_MANAGERj
  518. INFO_SCREEN_DISPLAYk
  519. INFO_HELP_SYSTEMl
  520. INFO_ERR
  521. Tool-Bar Help...
  522. TOOL BAR is a menu control used to group buttons, icons, and input fields.  A tool bar can be static or wrapped when re-sizing the window.  It can be independent of or used in conjunction with PULL DOWN MENU.
  523. ntinue...
  524. Prompt Help...}
  525. PROMPT is a static control that is used to provide the user with information regarding input fields and program activity.
  526. Group Help...R
  527. GROUP is a static control that is used to group radio buttons and check boxes.
  528. Icon Help...w
  529. ICON is a static control used to present graphical information.  Icons may be used to select a user-defined action.
  530. _TOOL_BAR                    = 0x0015; // Tool-Bar Help...R
  531. const UI_HELP_CONTEXT HELP_PROMPT                      = 0x0016; // Prompt Help...Q
  532. const UI_HELP_CONTEXT HELP_GROUP                       = 0x0017; // Group Help...P
  533. const UI_HELP_CONTEXT HELP_ICManager.
  534. Keyboard Help...
  535. KEYBOARD is used to collect raw scan code information from the keyboard.  It is attached to a list that is maintained by the Event Manager (see Event Manager).  The KEYBOARD feeds information to the Event Queue when polled by the Event 
  536. Mouse Help...
  537. MOUSE is used to collect raw scan code information from a mouse input device.  It is attached to a list which is maintained by Zinc's Event Manager (see Event Manager).  The MOUSE feeds input information directly to the Event Queue.
  538. Window Manager Help...
  539. Zinc's WINDOW MANAGER maintains a list of window objects and controls their positioning and their state (e.g., current, non-current).  The WINDOW MANAGER forwards event information to the current window object.
  540. ontal List Help...Y
  541. const UI_HELP_CONTEXT HELP_VLIST                       = 0x000D; // Vertical List Help...U
  542. const UI_HELP_CONTEXT HELP_COMBO_BOX                   = 0x000E; // Combo-Box Help...V
  543. const UI_HELP_CONTEXT HELP_SCROLL_BAR                  = 0ed devices may also be added to the Event Manager.
  544. Event Manager Help...
  545. Events are received and processed in a Zinc application with Zinc's Event Manager, Window Manager and Event Mapping.  The Event Manager maintains a list of run-time devices such as the keyboard, mouse, and cursor.  Programmer definso create a single executable program that supports both DOS Graphics and DOS Text.
  546. Screen Display Help...<
  547. Zinc's display classes abstract hardware or operating-specific display standards, including: Monochrome, Hercules, CGA, EGA, VGA, SVGA, Microsoft Windows, Windows NT, IBM OS/2 and OSF/Motif.  Zinc Application Framework for DOS includes a high-performance graphics library as well as support for third party graphics libraries such as Borland, Microsoft, and Zortech.
  548. You can create a display class for your own graphics library by deriving from the UI_DISPLAY base class.  You can al
  549. Help System Help...
  550. Zinc provides a help system to allow you to create context sensitive help screens for your users.  HELP SYSTEM is derived from the UI_HELP_SYSTEM class.  You may also derive your own help system from this class.
  551.  Help...O
  552. const UI_HELP_CONTEXT HELP_PEN                         = 0x0044; // Pen Help...
  553. (UI = user interface)
  554. (UID = user interface device)
  555. (UIW = user interface window object)
  556. Press <Alt+F4> to continue...
  557.   OR_SYSTEMm
  558. INFO_FONT_SUPPORTn
  559. HELP_FONT_SUPPORTp
  560. HELP_APPLICATIONq
  561. HELP_VIDEOr
  562. HELP_PEN
  563. Error System Help...
  564. Zinc provides an error system to allow you to generate error messages for your users.  ERROR SYSTEM is derived from the UI_ERROR_SYSTEM class.  You may also derive your own error system from this class.
  565. Font Support Help...
  566. Zinc allows multiple font support in DOS Graphics, Microsoft Windows, Windows NT, IBM OS/2, and OSF/Motif.  The three fonts above are provided with Zinc, but you may define more fonts if needed.
  567. Font Support Help...
  568. Zinc allows multiple font support in DOS Graphics, Microsoft Windows, Windows NT, IBM OS/2, and OSF/Motif.  The three fonts above are provided with Zinc, but you may define more fonts if needed.
  569. Press <Alt+F4> to continue...
  570.  <Alt+F4> to continue...
  571.   ere spaces are converted to the underscore character).
  572. Zinc strings allow you to perform edit functions such as mark, cut, copy and paste both within the string itself and among any other edit object (e.g., number, text, date).
  573. You may associate a usr function or validation routine by adding the name of the function to the argument list of the constructor (shown below).  User functions receive messages from Zinc and can be executed when DATE is selected, becomes current and/or becomes non-current.
  574.  UIW_WINDOW("FILENAME~WINDOW1");
  575. Press <Alt+F4> to continue...
  576. nger case and lower case.
  577. DATE examines the country information provided by the operating system to display the appropriate format.  For example, the date 12/25/92 will display as 25/12/92 if a European country code is detected.
  578. You may associate a usepplication Framework 3.5 (i.e., the class library and designer) is also included.
  579. For more information or to order in the United States or outside of Europe, please call or write:
  580.      Zinc Software Incorporated
  581.      405 South 100 East 2nd Floor
  582.   Application Framework.  This training series addresses object-oriented programming techniques with Zinc 3.5 in a manner that is impossible to duplicate with hard copy documentation.  The videotapes include the following sections:
  583.      Overview of Zinc Ais continues until the event is either successfully processed or is discarded.
  584. The sample code below demonstrates how the WINDOW MANAGER is initialized and how window objects (in this case a window with its contents was created in Zinc Designer) are add
  585. ss events and perform system cleanup. 
  586. Press <Alt+F4> to continue...
  587. UI_APPLICATION Help.../
  588. The UI_APPLICATION class significantly reduces the number of steps required to create a Zinc application.  UI_APPLICATION allows you to write one line of code to initialize the main routine, create the appropriate display for DOS Text, DOS Graphics, Microsoft Windows and Windows NT, IBM OS/2 and OSF/Motif; initialize the Event Manager and attach the Keyboard, Mouse and Cursor input devices; and create the Window Manager.  The UI_APPLICATION class also has a member function to procere in one environment can be retrieved at run-time into any other environment that Zinc supports.
  589. Some class libraries provide a type of object persistence.  However these products use the concept of streamable objects, which is essentially a flat-file Reserved.
  590. Press <Alt+F4> to continue...
  591. um event queue and is dispatched to the Window Manager via the application's event loop.  The Window Manager forwards event information to the current window object. The window object processes the event or passes it to its parent object (if one exists).  Thte Help...P
  592. const UI_HELP_CONTEXT HELP_TIME                        = 0x0007; // Time Help...R
  593. const UI_HELP_CONTEXT HELP_BIGNUM                      = 0x0008; // Number Help...R
  594. const UI_HELP_CONTEXT HELP_BUTTON                      = 0x0009; // Button Hellayed, including: currency, credit ( ), commas, decimal (0 to 8 places) and percent.
  595.   > to continue...
  596. GEsor devices.
  597.      UI_EVENT_MANAGER *eventManager =
  598.      new UI_EVENT_MANAGER(display);
  599.      *eventManager
  600.           + new UID_KEYBOARD
  601.           + new UID_PENDOS
  602.           + new UID_CURSOR;
  603. Press <Alt+F4> to continue...
  604.  US, Germany, United Kingdom, France, Italy, Sweden, Canada, Mexico and Brazil.
  605. Press <Alt+F4> to continue...
  606. ssing
  607.      Deriving Input Devices
  608.      Deriving Window Objects
  609.      Deriving Windows
  610.      Odds and Ends
  611. The videotapes are based on the Zinc Developer's Conference held October 1992 at Snowbird, Utah.  The response to the conference was overwhelmingonst UI_HELP_CONTEXT HELP_PERSISTENT_OBJECTS          = 0x0021; // Persistent Objects Help...[
  612. const UI_HELP_CONTEXT HELP_CLASS_HIERARCHY             = 0x0022; // Class Hierarchy Help...S
  613. const UI_HELP_CONTEXT INFO_GENERAL                     = 0x0023; //  demonstrates how a Zinc HELP SYSTEM is initialized:
  614. UI_WINDOW_OBJECT::helpSystem =
  615.   new UI_HELP_SYSTEM("SAMPLE.DAT", windowManager);
  616. Press <Alt+F4> to continue...
  617. esed to the new window:
  618. // Initialize the window manager.
  619.      UI_WINDOW_MANAGER *windowManager =
  620.      new UI_WINDOW_MANAGER(display, eventManager);
  621. // Read in persistent object resource created in Zinc Designer.
  622.      *windowManager
  623.           + newpplication Framework
  624.      Introduction to Windows and Window Objects
  625.      Understanding Zinc Header and Code files
  626.      Using Persistent Objects
  627.      Understanding the Zinc Architecture
  628.      Zinc Message Handling
  629.      User Functions and Message Proce.  Over 98 percent of the attendees said the conference was very worthwhile (and they paid $1,500.00 to attend!).  Companies attending included EDS, Hewlett Packard, Lotus, Novell, Iomega, Schlumberger Technologies and WordPerfect.  Attendees came from the
  630.