home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / leadtools / ocx32.lt / LTDLGOCX.PAS < prev    next >
Encoding:
Pascal/Delphi Source File  |  1998-06-30  |  14.6 KB  |  284 lines

  1. unit LTDLGOCX;
  2. interface
  3.  
  4. const
  5.  
  6.   {HelpEventConstants}
  7.   DLG_HELP_FILEOPEN    = 1;
  8.   DLG_HELP_FILEOPEN95  = 2;
  9.   DLG_HELP_FILESAVE    = 3;
  10.   DLG_HELP_FILESAVE95  = 4;
  11.   DLG_HELP_COLORRES    = 5;
  12.   DLG_HELP_GETANGLE    = 6;
  13.   DLG_HELP_GETSIZE     = 7;
  14.   DLG_HELP_GETFILTER   = 8;
  15.   DLG_HELP_GETCHANGE   = 9; 
  16.   DLG_HELP_GETRANGE    = 10; 
  17.   DLG_HELP_GETGAMMA    = 11; 
  18.   DLG_HELP_GETNOISE    = 12; 
  19.   DLG_HELP_GETEMBOSS   = 13;
  20.   DLG_HELP_WINDOWLEVEL = 14;
  21.  
  22.   {FilterTypeConstants}
  23.   FLT_SPATIAL          = 0;
  24.   FLT_BINARY           = 1;
  25.  
  26.   {FileOpenDlgConstants}
  27.   DLG_FO_AUTOPROCESS    = $00000001; {Dlg should autoprocess image and fill the pBitmap}
  28.   DLG_FO_PROGRESSIVE    = $00000002; {FileOpen Dlg should have Prog. File options}
  29.   DLG_FO_MULTIPAGE      = $00000004; {FileOpen Dlg should have Multipage options}
  30.   DLG_FO_LOADROTATED    = $00000008; {FileOpen Dlg should have Load Rotated option}
  31.   DLG_FO_LOADCOMPRESSED = $00000010; {FileOpen Dlg should have Load 1-bit compressed option}
  32.   DLG_FO_FILEINFO       = $00000020; {FileOpen Dlg should have FileInfo button}
  33.   DLG_FO_SHOWPREVIEW    = $00000040; {FileOpen Dlg should have ThumbNail and should create the}
  34.                                      {preview if none is stored in the file}
  35.   DLG_FO_SHOWSTAMP      = $00000080; {* FileOpen Dlg should have ThumbNail and should only load} 
  36.                                      {the preview stamp if one is stored in the file}
  37.   DLG_FO_95STYLE        = $00000100; {* FileOpen Dlg should have Windows95 Explorer style look}
  38.  
  39.  
  40.   {FileSaveDlgConstants}
  41.   DLG_FS_AUTOPROCESS  =  $00000001;   {Dlg should autoprocess image and fill the pBitmap}
  42.   DLG_FS_PROGRESSIVE  =  $00000002;   {FileSave Dlg should have Prog. File options}
  43.   DLG_FS_MULTIPAGE    =  $00000004;   {FileSave Dlg should have Multipage options }
  44.   DLG_FS_STAMP        =  $00000008;   {FileSave Dlg should have save with stamp options}
  45.   DLG_FS_QFACTOR      =  $00000010;   {FileSave Dlg should have QFactor option }
  46.   DLG_FS_95STYLE      =  $00000020;   {FileSave Dlg should have Windows95 Explorer style look}
  47.  
  48.   {FileSaveDlgFormatConstants}
  49.   DLG_FS_LEAD       =    $00000002;
  50.   DLG_FS_LEAD1BIT   =    $00000004;
  51.   DLG_FS_JFIF       =    $00000008;
  52.   DLG_FS_CALS       =    $00000010;
  53.   DLG_FS_PNG        =    $00000020;
  54.   DLG_FS_DICOM      =    $00000040;
  55.   DLG_FS_FAX        =    $00000080;
  56.   DLG_FS_EPS        =    $00000100;
  57.   DLG_FS_EXIF       =    $00000200;
  58.   DLG_FS_FPX        =    $00000400;
  59.   DLG_FS_IMG        =    $00000800;
  60.   DLG_FS_GIF        =    $00001000;
  61.   DLG_FS_IOCA       =    $00002000;
  62.   DLG_FS_PCT        =    $00004000;
  63.   DLG_FS_MAC        =    $00008000;
  64.   DLG_FS_AWD        =    $00010000;
  65.   DLG_FS_MSP        =    $00020000;
  66.   DLG_FS_OS2BMP     =    $00040000;
  67.   DLG_FS_PCX        =    $00080000;
  68.   DLG_FS_PSD        =    $00100000;
  69.   DLG_FS_RAS        =    $00200000;
  70.   DLG_FS_TGA        =    $00400000;
  71.   DLG_FS_TIFF       =    $00800000;
  72.   DLG_FS_BMP        =    $01000000;
  73.   DLG_FS_WFX        =    $02000000;
  74.   DLG_FS_WMF        =    $04000000;
  75.   DLG_FS_WPG        =    $08000000;
  76.   DLG_FS_ICO        =    $10000000;
  77.   DLG_FS_CUR        =    $20000000;
  78.   DLG_FS_ALL        =    $FFFFFFFF; {all file formats}
  79.  
  80.   {FileSaveDlgMultipageConstants}
  81.   SAVE_OVERWRITE  = 0;
  82.   SAVE_APPEND     = 1;
  83.   SAVE_REPLACE    = 2;
  84.   SAVE_INSERT     = 3;
  85.  
  86.   {ColorResDlgConstants}
  87.   DLG_CR_SHOWPREVIEW  =   $00000001;   {shows preview of image }
  88.   DLG_CR_AUTOPROCESS  =   $00000002;   {process the image on OK}
  89.  
  90.   DLG_CR_1BIT       =     $00000004;
  91.   DLG_CR_2BIT       =     $00000008;
  92.   DLG_CR_3BIT       =     $00000010;
  93.   DLG_CR_4BIT       =     $00000020;
  94.   DLG_CR_5BIT       =     $00000040;
  95.   DLG_CR_6BIT       =     $00000080;
  96.   DLG_CR_7BIT       =     $00000100;
  97.   DLG_CR_8BIT       =     $00000200;
  98.   DLG_CR_12BIT      =     $00000400;
  99.   DLG_CR_16BIT      =     $00000800;
  100.   DLG_CR_24BIT      =     $00001000;
  101.   DLG_CR_32BIT      =     $00002000;
  102.   DLG_CR_BITALL     =     $00003FFC;
  103.                                    
  104.   DLG_CR_DITHER_NONE      = $00004000;   { no dithering is an option }
  105.   DLG_CR_DITHER_FLOYD     = $00008000;   { floyd dithering is an option }
  106.   DLG_CR_DITHER_STUCKI    = $00010000;   { stucki dithering is an option }
  107.   DLG_CR_DITHER_BURKES    = $00020000;   { burkes dithering is an option }
  108.   DLG_CR_DITHER_SIERRA    = $00040000;   { sierra dithering is an option }
  109.   DLG_CR_DITHER_STEVENSON = $00080000;   { stevenson dithering is an option }
  110.   DLG_CR_DITHER_JARVIS    = $00100000;   { jarvis dithering is an option }
  111.   DLG_CR_DITHER_CLUSTER   = $00200000;   { clustered dithering is an option }
  112.   DLG_CR_DITHER_ORDERED   = $00400000;   { ordered dithering is an option }
  113.   DLG_CR_DITHER_ALL       = $007FC000;   { All dithering methods are options }
  114.  
  115.   DLG_CR_PAL_FIXED     = $00800000;
  116.   DLG_CR_PAL_OPTIMIZED = $01000000;
  117.   DLG_CR_PAL_IDENTITY  = $02000000;
  118.   DLG_CR_PAL_NETSCAPE  = $04000000;
  119.   DLG_CR_PAL_ALL       = $07800000;
  120.  
  121.   DLG_CR_ORDER = $08000000;
  122.  
  123.   {ImgProcDlgConstants}
  124.   DLG_IMG_AUTOPROCESS  =   $80000000;   { Dlg should autoprocess image and fill the pBitmap}
  125.   DLG_IMG_SHOWPREVIEW  =   $40000000;   { ImageProcess Dlg should preview of image }
  126.   DLG_IMG_HIDEBACKCOLOR=   $20000000;   { GetAngle Dlg should hide Background Color button }
  127.  
  128.   DLG_IMG_RESIZE       =   $00000001;   { resize dialog}
  129.   DLG_IMG_RESAMPLE     =   $00000002;   { resample dialog}
  130.   DLG_IMG_ROTATE       =   $00000003;   { rotate dialog}
  131.   DLG_IMG_SHEAR        =   $00000004;   { shear dialog }
  132.  
  133.   DLG_IMG_GRADIENT     =   $00000001;   { gradient dialog }
  134.   DLG_IMG_LAPLACIAN    =   $00000002;   { laplacian dialog}
  135.   DLG_IMG_SOBEL        =   $00000004;   { sobel dialog }
  136.   DLG_IMG_PREWITT      =   $00000008;   { prewitt dialog}
  137.   DLG_IMG_SHIFTDIFF    =   $00000010;   { shiftdiff dialog}
  138.   DLG_IMG_LINESEG      =   $00000020;   { lineseg dialog  }
  139.   DLG_IMG_EROSION      =   $00000040;   { erosion dialog  }
  140.   DLG_IMG_DILATION     =   $00000080;   { dilation dialog }
  141.  
  142.   DLG_IMG_SHARPEN      =   $00000001;   { sharpen dialog  }
  143.   DLG_IMG_BRIGHTNESS   =   $00000002;   { brightness dialog}
  144.   DLG_IMG_CONTRAST     =   $00000004;   { contrast dialog }
  145.   DLG_IMG_SATURATION   =   $00000008;   { saturation dialog}
  146.   DLG_IMG_HISTOCONTRAST=   $00000010;   { histo contrast dialog}
  147.   DLG_IMG_HUE          =   $00000020;   { hue dialog }
  148.   DLG_IMG_HALFTONE     =   $00000040;   { halftone dialog }
  149.   DLG_IMG_POSTERIZE    =   $00000080;   { posterize dialog}
  150.   DLG_IMG_MOSAIC       =   $00000100;   { mosaic dialog }
  151.   DLG_IMG_AVERAGE      =   $00000200;   { average dialog}
  152.   DLG_IMG_MEDIAN       =   $00000400;   { median dialog }
  153.   DLG_IMG_OILIFY       =   $00000800;   { oilify dialog }
  154.   DLG_IMG_MIN          =   $00001000;   { min filter dialog}
  155.   DLG_IMG_MAX          =   $00002000;   { max filter dialog}
  156.   DLG_IMG_SOLARIZE     =   $00004000;   { solarize dialog }
  157.  
  158.   DLG_IMG_ADDNOISE     =   $0000001C;   { add noise dialog }
  159.   DLG_IMG_GAMMACORRECT =   $0000001D;   { gamma correct dialog }
  160.   DLG_IMG_EMBOSS       =   $0000001E;   { emboss filter dialog }
  161.   DLG_IMG_INTENSITYDETECT =$0000001F;   { intensity detect dialog}
  162.  
  163.   {ImgProcDlgConstants}
  164.   DLG_WL_SHOWPREVIEW   =   $00000001;   { shows preview of image }
  165.   DLG_WL_AUTOPROCESS   =   $00000002;   { process the image on OK }
  166.  
  167.   {PaintEffectDlgConstants}
  168.   DLG_EFX_SHOWPREVIEW      = $00000001;   { shows preview of image }
  169.   DLG_EFX_AUTOPREVIEW      = $00000002;   { auto preview when options change }
  170.   DLG_EFX_DELAY            = $00000004;   { effect delay is an option }
  171.   DLG_EFX_GRAIN            = $00000008;   { effect grain is an option }
  172.   DLG_EFX_PASSES           = $00000010;   { effect passes is an option }
  173.   DLG_EFX_TRANSPARENT      = $00000020;   { transparency is an option }
  174.   DLG_EFX_WAND             = $00000040;   { wand is an option }
  175.   DLG_EFX_NO_TREEVIEW      = $00000080;   { DO NOT use TreeView }
  176.   DLG_EFX_CLASS_NONE       = $00000100;   { no effect class is option }
  177.   DLG_EFX_CLASS_WIPE       = $00000200;   { linear wipe class is option }
  178.   DLG_EFX_CLASS_WIPERECT   = $00000400;   { rect wipe class is option }
  179.   DLG_EFX_CLASS_WIPECIRCLE = $00000800;   { circle wipe class is option }
  180.   DLG_EFX_CLASS_PUSH       = $00001000;   { push class is option }
  181.   DLG_EFX_CLASS_SLIDE      = $00002000;   { slide class is option }
  182.   DLG_EFX_CLASS_ROLL       = $00004000;   { roll class is option }
  183.   DLG_EFX_CLASS_ROTATE     = $00008000;   { rotate class is option }
  184.   DLG_EFX_CLASS_ZOOM       = $00010000;   { zoom class is option }
  185.   DLG_EFX_CLASS_DRIP       = $00020000;   { drip class is option }
  186.   DLG_EFX_CLASS_BLIND      = $00040000;   { blind class is option }
  187.   DLG_EFX_CLASS_RANDOM     = $00080000;   { random class is option }
  188.   DLG_EFX_CLASS_CHECK      = $00100000;   { check class is option }
  189.   DLG_EFX_CLASS_BLOCKS     = $00200000;   { blocks class is option }
  190.   DLG_EFX_CLASS_CIRCLE     = $00400000;   { circle class is option }
  191.   DLG_EFX_CLASS_ELLIPSE    = $00800000;   { ellipse class is option }
  192.  
  193.   {GradientDlgConstants}
  194.   DLG_GRAD_SHOWPREVIEW           = $00000001;   { shows preview of image }
  195.   DLG_GRAD_AUTOPREVIEW           = $00000002;   { auto preview when options change }
  196.   DLG_GRAD_STARTCOLOR            = $00000004;   { start color is an option }
  197.   DLG_GRAD_ENDCOLOR              = $00000008;   { end color is an option }
  198.   DLG_GRAD_STEPS                 = $00000010;   { gradient steps is an option }
  199.   DLG_GRAD_NO_TREEVIEW           = $00000020;   { DO NOT use TreeView }
  200.   DLG_GRAD_CLASS_LINEAR          = $00000040;   { linear gradients are an option }
  201.   DLG_GRAD_CLASS_ANGULAR         = $00000080;   { angular gradients are an option }
  202.   DLG_GRAD_CLASS_RECTANGULAR     = $00000100;   { rectangular gradients are an option }
  203.   DLG_GRAD_CLASS_ELLIPTICAL      = $00000200;   { elliptical gradients are an option }
  204.   DLG_GRAD_CLASS_CONICAL         = $00000400;   { conical gradients are an option }
  205.  
  206.   {TransitionDlgConstants}
  207.   DLG_TRANS_SHOWPREVIEW     = $00000001;   { shows preview of image }
  208.   DLG_TRANS_AUTOPREVIEW     = $00000002;   { auto preview when options change }
  209.   DLG_TRANS_FORECOLOR       = $00000004;   { forecolor is an option }
  210.   DLG_TRANS_BACKCOLOR       = $00000008;   { backcolor is an option }
  211.   DLG_TRANS_DELAY           = $00000010;   { transition delay is an option }
  212.   DLG_TRANS_GRAIN           = $00000020;   { transition grain is an option }
  213.   DLG_TRANS_EFFECT          = $00000040;   { paint effect is an option }
  214.   DLG_TRANS_PASSES          = $00000080;   { transition passes is an option }
  215.   DLG_TRANS_WAND            = $00000100;   { wand is an option }
  216.   DLG_TRANS_TRANSPARENT     = $00000200;   { transparency is an option }
  217.   DLG_TRANS_GRADIENT        = $00000400;   { gradient is an option }
  218.  
  219.   {ShapeDlgConstants}
  220.   DLG_SHAPE_SHOWPREVIEW          = $00000001;   { shows preview of image }
  221.   DLG_SHAPE_AUTOPREVIEW          = $00000002;   { auto preview when options change }
  222.   DLG_SHAPE_BACKSTYLE            = $00000004;   { backstyle is an option }
  223.   DLG_SHAPE_FILLSTYLE            = $00000008;   { fillstyle is an option }
  224.   DLG_SHAPE_FORE_BACK_COLOR      = $00000010;   { fore and back colors are options }
  225.   DLG_SHAPE_BORDERSTYLE          = $00000020;   { borderstyle is an option }
  226.   DLG_SHAPE_BORDERWIDTH          = $00000040;   { border width is an option }
  227.   DLG_SHAPE_BORDERCOLOR          = $00000080;   { bordercolor is an option }
  228.   DLG_SHAPE_INNERSTYLE           = $00000100;   { innerbandstyle is an option }
  229.   DLG_SHAPE_INNERWIDTH           = $00000200;   { innerband width is an option }
  230.   DLG_SHAPE_INNER_HILITE_SHADOW  = $00000400;   { innerband colors are options }
  231.   DLG_SHAPE_OUTERSTYLE           = $00000800;   { outerbandstyle is an option }
  232.   DLG_SHAPE_OUTERWIDTH           = $00001000;   { outerband width is an option }
  233.   DLG_SHAPE_OUTER_HILITE_SHADOW  = $00002000;   { outerband colors are options }
  234.   DLG_SHAPE_SHADOWCOLOR          = $00004000;   { shadow color is an option }
  235.   DLG_SHAPE_SHADOW_X_Y           = $00008000;   { shadow x and y are options }
  236.   DLG_SHAPE_BROWSEIMAGE          = $00010000;   { browse image button is option }
  237.   DLG_SHAPE_NO_TREEVIEW          = $00020000;   { DO NOT use TreeView }
  238.   DLG_SHAPE_CLASS_SQUARE         = $00040000;   { squares are options }
  239.   DLG_SHAPE_CLASS_RECTANGLE      = $00080000;   { rectangles are options }
  240.   DLG_SHAPE_CLASS_PARALLELOGRAM  = $00100000;   { parallelograms are options }
  241.   DLG_SHAPE_CLASS_TRAPEZOID      = $00200000;   { trapezoids are options }
  242.   DLG_SHAPE_CLASS_TRIANGLE       = $00400000;   { triangles are options }
  243.   DLG_SHAPE_CLASS_OTHER          = $00800000;   { other polygons are options }
  244.   DLG_SHAPE_CLASS_CIRCLE         = $01000000;   { circles are options }
  245.   DLG_SHAPE_CLASS_ELLIPSE        = $02000000;   { ellipses are options }
  246.   DLG_SHAPE_CLASS_STAR           = $04000000;   { stars are options }
  247.   DLG_SHAPE_CLASS_CROSS          = $08000000;   { crosses are options }
  248.   DLG_SHAPE_CLASS_ARROW          = $10000000;   { arrows are options }
  249.  
  250.   {TextDlgConstants}
  251.   DLG_TEXT_SHOWPREVIEW           = $00000001;   { shows preview of image }
  252.   DLG_TEXT_AUTOPREVIEW           = $00000002;   { auto preview when options change }
  253.   DLG_TEXT_SAMPLETEXT            = $00000004;   { sample text edit box is an option }
  254.   DLG_TEXT_STYLE                 = $00000008;   { text style is an option }
  255.   DLG_TEXT_COLOR                 = $00000010;   { text color is an option }
  256.   DLG_TEXT_BORDERCOLOR           = $00000020;   { bordercolor is an option }
  257.   DLG_TEXT_ALIGN                 = $00000040;   { alignment is an option }
  258.   DLG_TEXT_ANGLE                 = $00000080;   { angle is an option }
  259.   DLG_TEXT_WORDWRAP              = $00000100;   { wordwrap is an option }
  260.   DLG_TEXT_FONT                  = $00000200;   { font is an option }
  261.   DLG_TEXT_FOREIMAGE             = $00000400;   { foreground image is an option }
  262.   DLG_TEXT_BROWSEIMAGE           = $00000800;   { browse image button is option }
  263.   DLG_TEXT_SHADOWCOLOR           = $00001000;   { shadow color is an option }
  264.   DLG_TEXT_SHADOW_X_Y            = $00002000;   { shadow x and y are options }
  265.  
  266.   {FileDlgFlagConstants}
  267.   DLG_OFN_OVERWRITEPROMPT = $00000002;  { FileSave will prompt if file exists }
  268.   DLG_OFN_NOCHANGEDIR = $00000008;      { restore dir to original after close }
  269.   DLG_OFN_ALLOWMULTI = $00000200;       { allow multiple files to be selected }
  270.  
  271. {$IFNDEF SUPPORT_CONSTANTS}
  272. {$DEFINE SUPPORT_CONSTANTS}
  273.    L_SUPPORT_EXPRESS       = 0;
  274.    L_SUPPORT_GIFLZW        = 1;
  275.    L_SUPPORT_TIFLZW        = 2;
  276.    L_SUPPORT_FPXEXTENSIONS = 3;
  277.    L_SUPPORT_OCR           = 4;
  278.    L_SUPPORT_VIDEO         = 5;
  279.    L_SUPPORT_MEDICAL       = 6;
  280. {$ENDIF}
  281.  
  282. implementation
  283. end.
  284.