home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / Vcl / CHARTFX.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  18.8 KB  |  378 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1999 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'ChartFX.pas' rev: 4.00
  6.  
  7. #ifndef ChartFXHPP
  8. #define ChartFXHPP
  9.  
  10. #pragma delphiheader begin
  11. #pragma option push -w-
  12. #include <Menus.hpp>    // Pascal unit
  13. #include <Controls.hpp>    // Pascal unit
  14. #include <OleCtrls.hpp>    // Pascal unit
  15. #include <Graphics.hpp>    // Pascal unit
  16. #include <Classes.hpp>    // Pascal unit
  17. #include <OleCtl.hpp>    // Pascal unit
  18. #include <OLE2.hpp>    // Pascal unit
  19. #include <SysInit.hpp>    // Pascal unit
  20. #include <System.hpp>    // Pascal unit
  21.  
  22. //-- user supplied -----------------------------------------------------------
  23.  
  24. namespace Chartfx
  25. {
  26. //-- type declarations -------------------------------------------------------
  27. typedef void __fastcall (__closure *TChartFXLButtonDblClk)(System::TObject* Sender, short &X, short 
  28.     &Y, short &nSerie, short &nPoint, short &nRes);
  29.  
  30. typedef void __fastcall (__closure *TChartFXRButtonDown)(System::TObject* Sender, short &X, short &Y
  31.     , short &nSerie, short &nPoint, short &nRes);
  32.  
  33. typedef void __fastcall (__closure *TChartFXChangeValue)(System::TObject* Sender, double &dValue, short 
  34.     &nSerie, short &nPoint, short &nRes);
  35.  
  36. typedef void __fastcall (__closure *TChartFXChangeString)(System::TObject* Sender, short &nType, short 
  37.     &nIndex, short &nRes);
  38.  
  39. typedef void __fastcall (__closure *TChartFXChangeColor)(System::TObject* Sender, short &nType, short 
  40.     &nIndex, short &nRes);
  41.  
  42. typedef void __fastcall (__closure *TChartFXChangePalette)(System::TObject* Sender, short &nIndex, short 
  43.     &nRes);
  44.  
  45. typedef void __fastcall (__closure *TChartFXChangeFont)(System::TObject* Sender, short &nIndex, short 
  46.     &nRes);
  47.  
  48. typedef void __fastcall (__closure *TChartFXChangePattern)(System::TObject* Sender, short &nType, short 
  49.     &nIndex, short &nRes);
  50.  
  51. typedef void __fastcall (__closure *TChartFXChangePattPal)(System::TObject* Sender, short &nIndex, short 
  52.     &nRes);
  53.  
  54. typedef void __fastcall (__closure *TChartFXMenu)(System::TObject* Sender, short &wParam, short &nSerie
  55.     , short &nPoint, short &nRes);
  56.  
  57. typedef void __fastcall (__closure *TChartFXChangeType)(System::TObject* Sender, short &nType, short 
  58.     &nRes);
  59.  
  60. typedef void __fastcall (__closure *TChartFXUserScroll)(System::TObject* Sender, int wScrollMsg, int 
  61.     wScrollParam, short &nRes);
  62.  
  63. typedef void __fastcall (__closure *TChartFXGetLegend)(System::TObject* Sender, short nType, short &
  64.     nRes);
  65.  
  66. class DELPHICLASS TChartFX;
  67. #pragma pack(push, 4)
  68. class PASCALIMPLEMENTATION TChartFX : public Olectrls::TOleControl 
  69. {
  70.     typedef Olectrls::TOleControl inherited;
  71.     
  72. private:
  73.     TChartFXLButtonDblClk FOnLButtonDblClk;
  74.     TChartFXRButtonDown FOnRButtonDown;
  75.     TChartFXChangeValue FOnChangeValue;
  76.     TChartFXChangeString FOnChangeString;
  77.     TChartFXChangeColor FOnChangeColor;
  78.     Classes::TNotifyEvent FOnDestroy;
  79.     Classes::TNotifyEvent FOnReadFile;
  80.     TChartFXChangePalette FOnChangePalette;
  81.     TChartFXChangeFont FOnChangeFont;
  82.     Classes::TNotifyEvent FOnReadTemplate;
  83.     TChartFXChangePattern FOnChangePattern;
  84.     TChartFXChangePattPal FOnChangePattPal;
  85.     TChartFXMenu FOnMenu;
  86.     TChartFXChangeType FOnChangeType;
  87.     TChartFXUserScroll FOnUserScroll;
  88.     TChartFXGetLegend FOnGetLegend;
  89.     double __stdcall Get_Value(short index);
  90.     void __stdcall Set_Value(short index, double Value);
  91.     double __stdcall Get_XValue(short index);
  92.     void __stdcall Set_XValue(short index, double Value);
  93.     double __stdcall Get_IniValue(short index);
  94.     void __stdcall Set_IniValue(short index, double Value);
  95.     double __stdcall Get_Const_(short index);
  96.     void __stdcall Set_Const_(short index, double Value);
  97.     Graphics::TColor __stdcall Get_Color(short index);
  98.     void __stdcall Set_Color(short index, Graphics::TColor Value);
  99.     Graphics::TColor __stdcall Get_BkColor(short index);
  100.     void __stdcall Set_BkColor(short index, Graphics::TColor Value);
  101.     double __stdcall Get_Adm(short index);
  102.     void __stdcall Set_Adm(short index, double Value);
  103.     short __stdcall Get_Pattern(short index);
  104.     void __stdcall Set_Pattern(short index, short Value);
  105.     int __stdcall Get_Fonts(short index);
  106.     void __stdcall Set_Fonts(short index, int Value);
  107.     AnsiString __stdcall Get_Title(short index);
  108.     void __stdcall Set_Title(short index, const AnsiString Value);
  109.     AnsiString __stdcall Get_Legend(short index);
  110.     void __stdcall Set_Legend(short index, const AnsiString Value);
  111.     AnsiString __stdcall Get_SerLeg(short index);
  112.     void __stdcall Set_SerLeg(short index, const AnsiString Value);
  113.     AnsiString __stdcall Get_KeyLeg(short index);
  114.     void __stdcall Set_KeyLeg(short index, const AnsiString Value);
  115.     AnsiString __stdcall Get_FixLeg(short index);
  116.     void __stdcall Set_FixLeg(short index, const AnsiString Value);
  117.     AnsiString __stdcall Get_YLeg(short index);
  118.     void __stdcall Set_YLeg(short index, const AnsiString Value);
  119.     AnsiString __stdcall Get_KeySer(short index);
  120.     void __stdcall Set_KeySer(short index, const AnsiString Value);
  121.     AnsiString __stdcall Get_StatusText(short index);
  122.     void __stdcall Set_StatusText(short index, const AnsiString Value);
  123.     Graphics::TColor __stdcall Get_RGBFont(short index);
  124.     void __stdcall Set_RGBFont(short index, Graphics::TColor Value);
  125.     short __stdcall Get_HFont(short index);
  126.     void __stdcall Set_HFont(short index, short Value);
  127.     short __stdcall Get_ItemWidth(short index);
  128.     void __stdcall Set_ItemWidth(short index, short Value);
  129.     short __stdcall Get_ItemStyle(short index);
  130.     void __stdcall Set_ItemStyle(short index, short Value);
  131.     Graphics::TColor __stdcall Get_ItemColor(short index);
  132.     void __stdcall Set_ItemColor(short index, Graphics::TColor Value);
  133.     short __stdcall Get_DecimalsNum(short index);
  134.     void __stdcall Set_DecimalsNum(short index, short Value);
  135.     
  136. protected:
  137.     virtual void __fastcall InitControlData(void);
  138.     
  139. public:
  140.     int __stdcall OpenDataEx(short nType, int n1, int n2);
  141.     Word __stdcall CloseData(short nType);
  142.     int __stdcall DblClk(short nType, int lExtra);
  143.     int __stdcall RigClk(short nType, int lExtra);
  144.     int __stdcall Status(short nItems, int lpStatus);
  145.     int __stdcall ShowDialog(short nDialog, int lExtra);
  146.     int __stdcall PrintIt(void);
  147.     HIDESBASE int __stdcall Scroll(int wParam, int lParam);
  148.     int __stdcall SetStatusItem(short index, Word bText, short nID, Word bFrame, short nWidth, short nMin
  149.         , short nDesp, int dwStyle);
  150.     int __stdcall Paint(int hDC, short nLeft, short nTop, short nRight, short nBottom, short wAction, int 
  151.         lps);
  152.     int __stdcall SetStripe(short index, double dMin, double dMax, Graphics::TColor rgb);
  153.     int __stdcall Language(const AnsiString sResource);
  154.     int __stdcall ExportFile(const AnsiString lpszNewValue);
  155.     int __stdcall ImportFile(const AnsiString lpszNewValue);
  156.     int __stdcall WriteTemplate(const AnsiString lpszNewValue);
  157.     int __stdcall ReadTemplate(const AnsiString lpszNewValue);
  158.     int __stdcall CopyData(void);
  159.     int __stdcall CopyBitmap(void);
  160.     HIDESBASE void __stdcall Refresh(void);
  161.     void __stdcall AboutBox(void);
  162.     __property double Value[short index] = {read=Get_Value, write=Set_Value};
  163.     __property double XValue[short index] = {read=Get_XValue, write=Set_XValue};
  164.     __property double IniValue[short index] = {read=Get_IniValue, write=Set_IniValue};
  165.     __property double Const_[short index] = {read=Get_Const_, write=Set_Const_};
  166.     __property Graphics::TColor Color[short index] = {read=Get_Color, write=Set_Color};
  167.     __property Graphics::TColor BkColor[short index] = {read=Get_BkColor, write=Set_BkColor};
  168.     __property double Adm[short index] = {read=Get_Adm, write=Set_Adm};
  169.     __property short Pattern[short index] = {read=Get_Pattern, write=Set_Pattern};
  170.     __property int Fonts[short index] = {read=Get_Fonts, write=Set_Fonts};
  171.     __property AnsiString Title[short index] = {read=Get_Title, write=Set_Title};
  172.     __property AnsiString Legend[short index] = {read=Get_Legend, write=Set_Legend};
  173.     __property AnsiString SerLeg[short index] = {read=Get_SerLeg, write=Set_SerLeg};
  174.     __property AnsiString KeyLeg[short index] = {read=Get_KeyLeg, write=Set_KeyLeg};
  175.     __property AnsiString FixLeg[short index] = {read=Get_FixLeg, write=Set_FixLeg};
  176.     __property AnsiString YLeg[short index] = {read=Get_YLeg, write=Set_YLeg};
  177.     __property AnsiString KeySer[short index] = {read=Get_KeySer, write=Set_KeySer};
  178.     __property AnsiString StatusText[short index] = {read=Get_StatusText, write=Set_StatusText};
  179.     __property Graphics::TColor RGBFont[short index] = {read=Get_RGBFont, write=Set_RGBFont};
  180.     __property short HFont[short index] = {read=Get_HFont, write=Set_HFont};
  181.     __property short ItemWidth[short index] = {read=Get_ItemWidth, write=Set_ItemWidth};
  182.     __property short ItemStyle[short index] = {read=Get_ItemStyle, write=Set_ItemStyle};
  183.     __property Graphics::TColor ItemColor[short index] = {read=Get_ItemColor, write=Set_ItemColor};
  184.     __property short DecimalsNum[short index] = {read=Get_DecimalsNum, write=Set_DecimalsNum};
  185.     
  186. __published:
  187.     __property TabStop ;
  188.     __property DragCursor ;
  189.     __property DragMode ;
  190.     __property ParentShowHint ;
  191.     __property PopupMenu ;
  192.     __property ShowHint ;
  193.     __property TabOrder ;
  194.     __property Visible ;
  195.     __property OnDragDrop ;
  196.     __property OnDragOver ;
  197.     __property OnEndDrag ;
  198.     __property OnEnter ;
  199.     __property OnExit ;
  200.     __property OnStartDrag ;
  201.     __property short DesignDraw = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=4, 
  202.         nodefault};
  203.     __property short ThisSerie = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=1, nodefault
  204.         };
  205.     __property short ThisPoint = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=2, nodefault
  206.         };
  207.     __property Word AutoInvalidate = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=3, 
  208.         nodefault};
  209.     __property int Type_ = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=5, nodefault
  210.         };
  211.     __property int Style = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=6, nodefault
  212.         };
  213.     __property short NSeries = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=7, nodefault
  214.         };
  215.     __property short NValues = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=8, nodefault
  216.         };
  217.     __property Graphics::TColor ThisColor = {read=GetColorProp, write=SetColorProp, stored=false, index=9
  218.         , nodefault};
  219.     __property Graphics::TColor ThisBkColor = {read=GetColorProp, write=SetColorProp, stored=false, index=10
  220.         , nodefault};
  221.     __property short LeftGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=11, nodefault
  222.         };
  223.     __property short RightGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=12, nodefault
  224.         };
  225.     __property short TopGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=13, nodefault
  226.         };
  227.     __property short BottomGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=14, 
  228.         nodefault};
  229.     __property short Decimals = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=15, nodefault
  230.         };
  231.     __property short PointType = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=16, 
  232.         nodefault};
  233.     __property short Scheme = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=17, nodefault
  234.         };
  235.     __property short Stacked = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=18, nodefault
  236.         };
  237.     __property short Grid = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=19, nodefault
  238.         };
  239.     __property short WallWidth = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=20, 
  240.         nodefault};
  241.     __property short BarHorzGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=21, 
  242.         nodefault};
  243.     __property Word View3D = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=22, nodefault
  244.         };
  245.     __property int Angles3D = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=23, nodefault
  246.         };
  247.     __property short PixFactor = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=24, 
  248.         nodefault};
  249.     __property short LineWidth = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=25, 
  250.         nodefault};
  251.     __property short LineStyle = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=26, 
  252.         nodefault};
  253.     __property Graphics::TColor LineColor = {read=GetColorProp, write=SetColorProp, stored=false, index=27
  254.         , nodefault};
  255.     __property Graphics::TColor LineBkColor = {read=GetColorProp, write=SetColorProp, stored=false, index=28
  256.         , nodefault};
  257.     __property short FixedWidth = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=29, 
  258.         nodefault};
  259.     __property short FixedStyle = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=30, 
  260.         nodefault};
  261.     __property Graphics::TColor FixedColor = {read=GetColorProp, write=SetColorProp, stored=false, index=31
  262.         , nodefault};
  263.     __property Graphics::TColor FixedBkColor = {read=GetColorProp, write=SetColorProp, stored=false, index=32
  264.         , nodefault};
  265.     __property short FixedGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=33, nodefault
  266.         };
  267.     __property Graphics::TColor RGBBarHorz = {read=GetColorProp, write=SetColorProp, stored=false, index=34
  268.         , nodefault};
  269.     __property Graphics::TColor RGBBk = {read=GetColorProp, write=SetColorProp, stored=false, index=35, 
  270.         nodefault};
  271.     __property Graphics::TColor RGB2DBk = {read=GetColorProp, write=SetColorProp, stored=false, index=36
  272.         , nodefault};
  273.     __property Graphics::TColor RGB3DBk = {read=GetColorProp, write=SetColorProp, stored=false, index=37
  274.         , nodefault};
  275.     __property Word ShowStatus = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=38, nodefault
  276.         };
  277.     __property AnsiString HText = {read=GetStringProp, write=SetStringProp, stored=false, index=39};
  278.     __property short ChartStatus = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=40
  279.         , nodefault};
  280.     __property short Edit = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=41, nodefault
  281.         };
  282.     __property short ChartType = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=42, 
  283.         nodefault};
  284.     __property Word Chart3D = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=43, nodefault
  285.         };
  286.     __property Word ToolBar = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=44, nodefault
  287.         };
  288.     __property Word PaletteBar = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=45, nodefault
  289.         };
  290.     __property Word PatternBar = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=46, nodefault
  291.         };
  292.     __property int CustTool = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=47, nodefault
  293.         };
  294.     __property int ReturnValue = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=48, nodefault
  295.         };
  296.     __property Word AutoIncrement = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=49, 
  297.         nodefault};
  298.     __property double ThisValue = {read=GetDoubleProp, write=SetDoubleProp, stored=false, index=50};
  299.     __property short VertGridGap = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=51
  300.         , nodefault};
  301.     __property short XLegType = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=52, nodefault
  302.         };
  303.     __property short ConstType = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=53, 
  304.         nodefault};
  305.     __property Variant LeftFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=54};
  306.     __property Variant RightFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=55};
  307.         
  308.     __property Variant TopFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=56};
  309.     __property Variant BottomFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=57}
  310.         ;
  311.     __property Variant XLegFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=58};
  312.     __property Variant YLegFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=59};
  313.     __property Variant FixedFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=60};
  314.         
  315.     __property Variant LegendFont = {read=GetVariantProp, write=SetVariantProp, stored=false, index=61}
  316.         ;
  317.     __property short LegendWidth = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=62
  318.         , nodefault};
  319.     __property Word Enabled = {read=GetOleBoolProp, write=SetOleBoolProp, stored=false, index=-514, nodefault
  320.         };
  321.     __property int hWnd = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=-515, nodefault
  322.         };
  323.     __property short BorderStyle = {read=GetSmallintProp, write=SetSmallintProp, stored=false, index=-504
  324.         , nodefault};
  325.     __property int hCtlWnd = {read=GetIntegerProp, write=SetIntegerProp, stored=false, index=63, nodefault
  326.         };
  327.     __property TChartFXLButtonDblClk OnLButtonDblClk = {read=FOnLButtonDblClk, write=FOnLButtonDblClk};
  328.         
  329.     __property TChartFXRButtonDown OnRButtonDown = {read=FOnRButtonDown, write=FOnRButtonDown};
  330.     __property TChartFXChangeValue OnChangeValue = {read=FOnChangeValue, write=FOnChangeValue};
  331.     __property TChartFXChangeString OnChangeString = {read=FOnChangeString, write=FOnChangeString};
  332.     __property TChartFXChangeColor OnChangeColor = {read=FOnChangeColor, write=FOnChangeColor};
  333.     __property Classes::TNotifyEvent OnDestroy = {read=FOnDestroy, write=FOnDestroy};
  334.     __property Classes::TNotifyEvent OnReadFile = {read=FOnReadFile, write=FOnReadFile};
  335.     __property TChartFXChangePalette OnChangePalette = {read=FOnChangePalette, write=FOnChangePalette};
  336.         
  337.     __property TChartFXChangeFont OnChangeFont = {read=FOnChangeFont, write=FOnChangeFont};
  338.     __property Classes::TNotifyEvent OnReadTemplate = {read=FOnReadTemplate, write=FOnReadTemplate};
  339.     __property TChartFXChangePattern OnChangePattern = {read=FOnChangePattern, write=FOnChangePattern};
  340.         
  341.     __property TChartFXChangePattPal OnChangePattPal = {read=FOnChangePattPal, write=FOnChangePattPal};
  342.         
  343.     __property TChartFXMenu OnMenu = {read=FOnMenu, write=FOnMenu};
  344.     __property TChartFXChangeType OnChangeType = {read=FOnChangeType, write=FOnChangeType};
  345.     __property TChartFXUserScroll OnUserScroll = {read=FOnUserScroll, write=FOnUserScroll};
  346.     __property TChartFXGetLegend OnGetLegend = {read=FOnGetLegend, write=FOnGetLegend};
  347. public:
  348.     #pragma option push -w-inl
  349.     /* TOleControl.Create */ inline __fastcall virtual TChartFX(Classes::TComponent* AOwner) : Olectrls::TOleControl(
  350.         AOwner) { }
  351.     #pragma option pop
  352.     #pragma option push -w-inl
  353.     /* TOleControl.Destroy */ inline __fastcall virtual ~TChartFX(void) { }
  354.     #pragma option pop
  355.     
  356. public:
  357.     #pragma option push -w-inl
  358.     /* TWinControl.CreateParented */ inline __fastcall TChartFX(HWND ParentWindow) : Olectrls::TOleControl(
  359.         ParentWindow) { }
  360.     #pragma option pop
  361.     
  362. };
  363.  
  364. #pragma pack(pop)
  365.  
  366. //-- var, const, procedure ---------------------------------------------------
  367. extern PACKAGE void __fastcall Register(void);
  368.  
  369. }    /* namespace Chartfx */
  370. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  371. using namespace Chartfx;
  372. #endif
  373. #pragma option pop    // -w-
  374.  
  375. #pragma delphiheader end.
  376. //-- end unit ----------------------------------------------------------------
  377. #endif    // ChartFX
  378.