home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'NumLab.pas' rev: 3.00
-
- #ifndef NumLabHPP
- #define NumLabHPP
- #include <DsgnIntf.hpp>
- #include <ExtCtrls.hpp>
- #include <Dialogs.hpp>
- #include <Forms.hpp>
- #include <Controls.hpp>
- #include <Graphics.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysUtils.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Numlab
- {
- //-- type declarations -------------------------------------------------------
- typedef SmallString<50> LabelStr;
-
- enum TFrameStyle { fsNone, fsSimple, fsLowered, fsRaised, fsEmbossed, fsEngraved };
-
- enum TDisplay { dtFloat, dtFixP, dtExp, dtHex, dtZeroInt, dtInt };
-
- enum TColorScheme { csBWG, csSystem };
-
- class DELPHICLASS TNumLab;
- class PASCALIMPLEMENTATION TNumLab : public Controls::TGraphicControl
- {
- typedef Controls::TGraphicControl inherited;
-
- private:
- int FLeftSpace;
- bool FEmpty;
- int FLabWidth;
- int FDecP;
- LabelStr FLeftText;
- LabelStr FRightText;
- TFrameStyle FFrameStyle;
- TAlignment FAlignment;
- LabelStr FOverFlowIndi;
- double FLabValue;
- Graphics::TColor FColorLabBakG;
- Graphics::TColor FColorLabText;
- Graphics::TColor FColorOutBakG;
- Graphics::TColor FColorOutText;
- Graphics::TColor FColBlackLine;
- Graphics::TColor FColGrayLine;
- Graphics::TColor FColWhiteLine;
- TColorScheme FColorScheme;
- TDisplay FDisplayType;
- void __fastcall SetLeftSpace(int Value);
- void __fastcall SetColorLabBakG(Graphics::TColor Value);
- void __fastcall SetColorLabText(Graphics::TColor Value);
- void __fastcall SetColorOutBakG(Graphics::TColor Value);
- void __fastcall SetColorOutText(Graphics::TColor Value);
- void __fastcall SetColorScheme(TColorScheme Value);
- void __fastcall SetFrameStyle(TFrameStyle value);
- void __fastcall SetAlignment(Classes::TAlignment value);
- void __fastcall SetLabWidth(int value);
- void __fastcall SetLabValue(double value);
- void __fastcall SetEmpty(bool value);
- void __fastcall SetDecP(int value);
- void __fastcall SetLeftText( LabelStr &value);
- void __fastcall SetRightText( LabelStr &value);
- void __fastcall SetOverFlowIndi( LabelStr &value);
- void __fastcall SetDisplayType(TDisplay value);
-
- protected:
- virtual void __fastcall Paint(void);
- virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
-
- public:
- __fastcall virtual TNumLab(Classes::TComponent* AOwner);
- __fastcall virtual ~TNumLab(void);
- virtual void __fastcall Assign(Classes::TPersistent* Source);
-
- __published:
- __property Font ;
- __property ParentFont ;
- __property int LeftSpace = {read=FLeftSpace, write=SetLeftSpace, nodefault};
- __property bool Empty = {read=FEmpty, write=SetEmpty, nodefault};
- __property TFrameStyle FrameStyle = {read=FFrameStyle, write=SetFrameStyle, nodefault};
- __property int LabelWidth = {read=FLabWidth, write=SetLabWidth, nodefault};
- __property ParentShowHint ;
- __property ShowHint ;
- __property Visible ;
- __property int Precision = {read=FDecP, write=SetDecP, nodefault};
- __property LabelStr LeftText = {read=FLeftText, write=SetLeftText};
- __property LabelStr RightText = {read=FRightText, write=SetRightText};
- __property double Value = {read=FLabValue, write=SetLabValue};
- __property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, nodefault};
- __property TDisplay DisplayType = {read=FDisplayType, write=SetDisplayType, nodefault};
- __property Graphics::TColor ColorLabBakG = {read=FColorLabBakG, write=SetColorLabBakG, nodefault};
- __property Graphics::TColor ColorLabText = {read=FColorLabText, write=SetColorLabText, nodefault};
- __property Graphics::TColor ColorOutBakG = {read=FColorOutBakG, write=SetColorOutBakG, nodefault};
- __property Graphics::TColor ColorOutText = {read=FColorOutText, write=SetColorOutText, nodefault};
- __property TColorScheme ColorScheme = {read=FColorScheme, write=SetColorScheme, nodefault};
- __property LabelStr OverflowIndicator = {read=FOverFlowIndi, write=SetOverFlowIndi};
- __property OnClick ;
- __property OnDblClick ;
- __property OnMouseMove ;
- __property OnMouseDown ;
- __property OnMouseUp ;
- };
-
- //-- var, const, procedure ---------------------------------------------------
- #define defLeftSpace (Byte)(35)
- #define defPrecision (Byte)(2)
- #define defLabelWidth (Byte)(80)
- extern PACKAGE void __fastcall Register(void);
-
- } /* namespace Numlab */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Numlab;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // NumLab
-