home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ICLUI.ZIP / LISTBOX / ALISTBOX.RC < prev    next >
Text File  |  1993-03-08  |  3KB  |  68 lines

  1. /******************************************************************************/
  2. /* List Box Sample Program                                                    */
  3. /*                                                                            */
  4. /* COPYRIGHT: Copyright (C) International Business Machines Corp., 1992,1993. */
  5. /*                                                                            */
  6. /* DISCLAIMER OF WARRANTIES:                                                  */
  7. /*   The following [enclosed] code is sample code created by IBM              */
  8. /*   Corporation.  This sample code is not part of any standard IBM product   */
  9. /*   and is provided to you solely for the purpose of assisting you in the    */
  10. /*   development of your applications.  The code is provided "AS IS",         */
  11. /*   without warranty of any kind.  IBM shall not be liable for any damages   */
  12. /*   arising out of your use of the sample code, even if they have been       */
  13. /*   advised of the possibility of such damages.                              */
  14. /******************************************************************************/
  15.  
  16. #include "alistbox.h"                           //Symbolic Definitions
  17.  
  18. /******************************************************************************/
  19. /* string table                                                               */
  20. /******************************************************************************/
  21. STRINGTABLE
  22.   BEGIN
  23.     WND_MAIN          , "List Box Example Program"
  24.     STR_INFO          , "multiple selection list box item count = "
  25.     MI_LISTBOX        , "listbox menu"
  26.     MI_ADD_ITEMS      , "add items to listbox"
  27.     MI_READ_SEL_ITEMS , "read selected items and write to trace"
  28.     MI_READ_ALL_ITEMS , "read all items and write to trace"
  29.     MI_EDIT           , "edit memu"
  30.     MI_SELECT_ALL     , "select all items in listbox"
  31.     MI_DESELECT_ALL   , "deselect all items in listbox"
  32.     MI_EXCEPTION      , "generate exception"
  33.     MI_GEN_EXCPT      , "catch exception and write to listbox"
  34.     MI_GEN_EXCPT_UNH  , "catch using window exception handler"
  35. END
  36.  
  37. /******************************************************************************/
  38. /* menu bar                                                                   */
  39. /******************************************************************************/
  40. MENU WND_MAIN
  41.   BEGIN
  42.     SUBMENU "~List Box"                 ,  MI_LISTBOX
  43.       BEGIN
  44.         MENUITEM "~Add items"           ,  MI_ADD_ITEMS
  45.         MENUITEM "Read selected items"  ,  MI_READ_SEL_ITEMS
  46.         MENUITEM "Read all items"       ,  MI_READ_ALL_ITEMS
  47.       END
  48.     SUBMENU "~Edit"                     ,  MI_EDIT
  49.       BEGIN
  50.         MENUITEM "~Select all\tCtrl+/"      ,  MI_SELECT_ALL
  51.         MENUITEM "~Deselect all\tCtrl+\\"   ,  MI_DESELECT_ALL
  52.       END
  53.     SUBMENU "E~xceptions"               ,  MI_EXCEPTION
  54.       BEGIN
  55.         MENUITEM "~Handled"             ,  MI_GEN_EXCPT
  56.         MENUITEM "~Unhandled"           ,  MI_GEN_EXCPT_UNH
  57.       END
  58.   END
  59.  
  60. /******************************************************************************/
  61. /* accelerator keys                                                           */
  62. /******************************************************************************/
  63. ACCELTABLE WND_MAIN
  64.   BEGIN
  65.     "/"     , MI_SELECT_ALL     , CONTROL
  66.     "\\"    , MI_DESELECT_ALL   , CONTROL
  67.   END
  68.