home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / zkuste / delphi / kompon / d123456 / CHEMPLOT.ZIP / Misc / Slidebar.hpp < prev    next >
C/C++ Source or Header  |  2001-07-31  |  5KB  |  134 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'Slidebar.pas' rev: 3.00
  6.  
  7. #ifndef SlidebarHPP
  8. #define SlidebarHPP
  9. #include <Graphics.hpp>
  10. #include <ExtCtrls.hpp>
  11. #include <Controls.hpp>
  12. #include <Windows.hpp>
  13. #include <SysUtils.hpp>
  14. #include <Classes.hpp>
  15. #include <SysInit.hpp>
  16. #include <System.hpp>
  17.  
  18. //-- user supplied -----------------------------------------------------------
  19.  
  20. namespace Slidebar
  21. {
  22. //-- type declarations -------------------------------------------------------
  23. class DELPHICLASS TSlideBar;
  24. class PASCALIMPLEMENTATION TSlideBar : public Controls::TGraphicControl 
  25. {
  26.     typedef Controls::TGraphicControl inherited;
  27.     
  28. private:
  29.     bool FAutoSlider;
  30.     TPanelBevel FBevelInner;
  31.     TPanelBevel FBevelOuter;
  32.     Extctrls::TBevelWidth FBevelWidth;
  33.     Extctrls::TBorderWidth FBorderWidth;
  34.     Graphics::TColor FColor;
  35.     int FMax;
  36.     int FMin;
  37.     Graphics::TColor FSlideColor;
  38.     int FPageSize;
  39.     int FPosition;
  40.     bool FShowText;
  41.     bool FShowUnits;
  42.     Byte FSliderWidth;
  43.     Byte FSliderHeight;
  44.     Byte FTicks;
  45.     Classes::TNotifyEvent FOnChange;
  46.     Classes::TNotifyEvent FOnChanging;
  47.     int LeftGap;
  48.     int TopGap;
  49.     int StartX;
  50.     int SlideX;
  51.     bool IsSliding;
  52.     Graphics::TFont* __fastcall GetFont(void);
  53.     int __fastcall GetFrequency(void);
  54.     tagPOINT __fastcall GetVertex(Byte Index);
  55.     tagPOINT __fastcall GetInnerVertex(Byte Index);
  56.     
  57. protected:
  58.     void __fastcall DrawSlider(void);
  59.     void __fastcall SetAutoSlider(bool Value);
  60.     void __fastcall SetBevelInner(Extctrls::TPanelBevel Value);
  61.     void __fastcall SetBevelOuter(Extctrls::TPanelBevel Value);
  62.     void __fastcall SetBevelWidth(Extctrls::TBevelWidth Value);
  63.     void __fastcall SetBorderWidth(Extctrls::TBorderWidth Value);
  64.     HIDESBASE void __fastcall SetColor(Graphics::TColor Value);
  65.     HIDESBASE void __fastcall SetFont(Graphics::TFont* Value);
  66.     void __fastcall SetFrequency(int Value);
  67.     void __fastcall SetMin(int Value);
  68.     void __fastcall SetMax(int Value);
  69.     void __fastcall SetPosition(int Value);
  70.     void __fastcall SetTicks(Byte Value);
  71.     void __fastcall SetShowUnits(bool Value);
  72.     void __fastcall SetSlideColor(Graphics::TColor Value);
  73.     void __fastcall SetSlideHeight(Byte Value);
  74.     void __fastcall SetSlideWidth(Byte Value);
  75.     void __fastcall SetShowText(bool Value);
  76.     void __fastcall DoGeometry(Graphics::TCanvas* ACanvas);
  77.     DYNAMIC void __fastcall DblClick(void);
  78.     DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
  79.     DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, 
  80.         int Y);
  81.     DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int 
  82.         Y);
  83.     virtual void __fastcall Paint(void);
  84.     DYNAMIC void __fastcall DoChange(void);
  85.     DYNAMIC void __fastcall DoChanging(void);
  86.     
  87. public:
  88.     __fastcall virtual TSlideBar(Classes::TComponent* AOwner);
  89.     __fastcall virtual ~TSlideBar(void);
  90.     
  91. __published:
  92.     __property bool AutoSlider = {read=FAutoSlider, write=SetAutoSlider, nodefault};
  93.     __property Extctrls::TPanelBevel BevelInner = {read=FBevelInner, write=SetBevelInner, nodefault};
  94.     __property Extctrls::TPanelBevel BevelOuter = {read=FBevelOuter, write=SetBevelOuter, nodefault};
  95.     __property Extctrls::TBevelWidth BevelWidth = {read=FBevelWidth, write=SetBevelWidth, nodefault};
  96.     __property Extctrls::TBorderWidth BorderWidth = {read=FBorderWidth, write=SetBorderWidth, nodefault
  97.         };
  98.     __property Graphics::TColor Color = {read=FColor, write=SetColor, nodefault};
  99.     __property Graphics::TFont* Font = {read=GetFont, write=SetFont};
  100.     __property int Frequency = {read=GetFrequency, write=SetFrequency, nodefault};
  101.     __property int Max = {read=FMax, write=SetMax, nodefault};
  102.     __property int Min = {read=FMin, write=SetMin, nodefault};
  103.     __property int PageSize = {read=FPageSize, write=FPageSize, nodefault};
  104.     __property int Position = {read=FPosition, write=SetPosition, nodefault};
  105.     __property bool ShowText = {read=FShowText, write=SetShowText, nodefault};
  106.     __property bool ShowUnits = {read=FShowUnits, write=SetShowUnits, nodefault};
  107.     __property Byte SliderWidth = {read=FSliderWidth, write=SetSlideWidth, nodefault};
  108.     __property Byte SliderHeight = {read=FSliderHeight, write=SetSlideHeight, nodefault};
  109.     __property Byte Ticks = {read=FTicks, write=SetTicks, nodefault};
  110.     __property Graphics::TColor SlideColor = {read=FSlideColor, write=SetSlideColor, nodefault};
  111.     __property Classes::TNotifyEvent OnChanging = {read=FOnChanging, write=FOnChanging};
  112.     __property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
  113.     __property Align ;
  114.     __property Cursor ;
  115.     __property Enabled ;
  116.     __property Height ;
  117.     __property Hint ;
  118.     __property Left ;
  119.     __property ParentShowHint ;
  120.     __property ShowHint ;
  121.     __property Top ;
  122.     __property Visible ;
  123.     __property Width ;
  124. };
  125.  
  126. //-- var, const, procedure ---------------------------------------------------
  127.  
  128. }    /* namespace Slidebar */
  129. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  130. using namespace Slidebar;
  131. #endif
  132. //-- end unit ----------------------------------------------------------------
  133. #endif    // Slidebar
  134.