home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wpobj.zip / CLRPALET.SC < prev    next >
Text File  |  1993-11-10  |  3KB  |  130 lines

  1.  
  2. # This file was generated by the SOM Compiler.
  3. # FileName: clrpalet.sc.
  4. # Generated using:
  5. #     SOM Precompiler spc: 1.22
  6. #     SOM Emitter emitcsc: 1.10
  7.  
  8. /*
  9.  * 
  10.  * MODULE NAME: ClrPalet.CSC
  11.  * 
  12.  * DESCRIPTION:
  13.  *   Object class definition file for ColorPalette object class.
  14.  */
  15.  
  16. #include "wpclrpal.sc"
  17.  
  18. class: ColorPalette, 
  19.     external stem = clrp, local, external prefix = clrp_, 
  20.     classprefix = clrpM_, major version = 1, minor version = 2, 
  21.     file stem = clrpalet;
  22.  
  23.     -- 
  24.     --  OBJECT CLASS: ColorPalette
  25.     -- 
  26.     --  CLASS HIERARCHY:
  27.     -- 
  28.     --      SOMObject
  29.     --        └── WPObject
  30.     --              └── WPAbstract
  31.     --                    └── WPPalette
  32.     --                          └──  WPColorPalette
  33.     --                                   └──  ColorPalette
  34.     -- 
  35.     --  DESCRIPTION:
  36.     --      This object class can act as a stand-alone object class that creates
  37.     --      a palette of named colors that can be dragged and dropped much like the
  38.     --      system color palette. It can also be used as a replacement object class
  39.     --      for the WPColorPalette class - thus replacing the color palette object
  40.     --      in the System Setup folder and any other color palettes that the user
  41.     --    may have already created.
  42.     -- 
  43.     --      Each element of the named color palette contains a sample swatch of the
  44.     --      color and the name of that color. Editing a color in the named color
  45.     --      palette invokes the Color Wheel control.
  46.     -- 
  47.     --      The purpose of this class is to illustrate how the system provided
  48.     --      WPPalette object class works, and how the programmer can create his own
  49.     --    customized palette of icons, menus, or any other sort of attribute that
  50.     --    can be applied using drag and drop.
  51.     -- 
  52.  
  53.  
  54. parent class: WPColorPalette;
  55.  
  56.  
  57. release order:
  58.     SetEditDlgHandle, QueryEditDlgHandle, QuerySampleShape;
  59.  
  60.  
  61. passthru: C.h, after;
  62.  
  63. endpassthru;
  64. methods:
  65.  
  66.  
  67.     BOOL    SetEditDlgHandle(HWND hwndEditDlg);
  68.  
  69.     -- 
  70.     --  NEW METHOD: SetEditDlgHandle
  71.     -- 
  72.     --  DESCRIPTION:
  73.     --    Store the handle of the color picking dialog window.
  74.     -- 
  75.  
  76.     HWND    QueryEditDlgHandle();
  77.  
  78.     -- 
  79.     --  NEW METHOD: QueryEditDlgHandle
  80.     -- 
  81.     --  DESCRIPTION:
  82.     --    Retrieve the handle of the color picking dialog window. Return NULL
  83.     --    if the dialog has not yet been created.
  84.     -- 
  85.  
  86.     BOOL    QuerySampleShape(PPOINTL pPoints,
  87.         PULONG pcPoints);
  88.  
  89.     -- 
  90.     --  NEW METHOD: QuerySampleShape
  91.     -- 
  92.     --  DESCRIPTION:
  93.     --    Describes the shape to be drawn for each color swatch. The pcPoints
  94.     --    variable must always be filled out, to indicate how many points are
  95.     --    contained in the pPoints array. pPoints either contains an array of
  96.     --    POINTL structures that this method should fill out or it can be NULL
  97.     --    to indicate that cPoints is being queried.
  98.     -- 
  99.     --    The point coordinates are specified in percentage coordinates.
  100.     -- 
  101.  
  102.     override wpPaintCell;
  103.  
  104.     -- From WPPalette
  105.  
  106.     override wpEditCell;
  107.  
  108.     -- From WPPalette
  109.  
  110.     override wpRedrawCell;
  111.  
  112.     -- From WPPalette
  113.  
  114.     override wpSetup;
  115.  
  116.     -- From WPObject
  117.  
  118.     override wpclsInitData, class;
  119.  
  120.     -- From WPObject
  121.  
  122.     override wpclsQueryIconData, class;
  123.  
  124.     -- From WPObject
  125.  
  126.     override wpclsQueryStyle, class;
  127.  
  128.     -- From WPObject
  129.  
  130.