fcshapebtn.hpp
上传用户:hylc_2004
上传日期:2014-01-23
资源大小:46800k
文件大小:8k
- // Borland C++ Builder
- // Copyright (c) 1995, 2002 by Borland Software Corporation
- // All rights reserved
- // (DO NOT EDIT: machine generated header) 'fcShapeBtn.pas' rev: 6.00
- #ifndef fcShapeBtnHPP
- #define fcShapeBtnHPP
- #pragma delphiheader begin
- #pragma option push -w-
- #pragma option push -Vx
- #include <Menus.hpp> // Pascal unit
- #include <DB.hpp> // Pascal unit
- #include <ActnList.hpp> // Pascal unit
- #include <ImgList.hpp> // Pascal unit
- #include <fcBitmap.hpp> // Pascal unit
- #include <fcEvaluator.hpp> // Pascal unit
- #include <fcImgBtn.hpp> // Pascal unit
- #include <fcButton.hpp> // Pascal unit
- #include <Themes.hpp> // Pascal unit
- #include <fctext.hpp> // Pascal unit
- #include <fcCommon.hpp> // Pascal unit
- #include <SysUtils.hpp> // Pascal unit
- #include <Consts.hpp> // Pascal unit
- #include <Math.hpp> // Pascal unit
- #include <Dialogs.hpp> // Pascal unit
- #include <Buttons.hpp> // Pascal unit
- #include <CommCtrl.hpp> // Pascal unit
- #include <StdCtrls.hpp> // Pascal unit
- #include <Graphics.hpp> // Pascal unit
- #include <Forms.hpp> // Pascal unit
- #include <Controls.hpp> // Pascal unit
- #include <Classes.hpp> // Pascal unit
- #include <Messages.hpp> // Pascal unit
- #include <Windows.hpp> // Pascal unit
- #include <SysInit.hpp> // Pascal unit
- #include <System.hpp> // Pascal unit
- //-- user supplied -----------------------------------------------------------
- namespace Fcshapebtn
- {
- //-- type declarations -------------------------------------------------------
- #pragma option push -b-
- enum TfcShapeOrientation { soLeft, soRight, soUp, soDown };
- #pragma option pop
- #pragma option push -b-
- enum TfcButtonShape { bsRoundRect, bsEllipse, bsTriangle, bsArrow, bsDiamond, bsRect, bsStar, bsTrapezoid, bsCustom };
- #pragma option pop
- typedef void __fastcall (__closure *TwwComputeCanvasAttributes)(System::TObject* Sender, Graphics::TCanvas* ACanvas);
- class DELPHICLASS TfcCustomShapeBtn;
- class PASCALIMPLEMENTATION TfcCustomShapeBtn : public Fcimgbtn::TfcCustomImageBtn
- {
- typedef Fcimgbtn::TfcCustomImageBtn inherited;
-
- private:
- Classes::TStringList* FPointList;
- TfcButtonShape FShape;
- TfcShapeOrientation FOrientation;
- int FRoundRectBias;
- Graphics::TBitmap* FRegionBitmap;
- TwwComputeCanvasAttributes FOnComputeCanvasAttributes;
- void __fastcall SetShape(TfcButtonShape Value);
- void __fastcall SetOrientation(TfcShapeOrientation Value);
- void __fastcall SetPointList(Classes::TStringList* Value);
- void __fastcall SetRoundRectBias(int Value);
- Graphics::TColor __fastcall CorrectedColor(void);
-
- protected:
- virtual void __fastcall DoComputeCanvasAttributes(Graphics::TCanvas* ACanvas);
- virtual void __fastcall WndProc(Messages::TMessage &Message);
- virtual bool __fastcall StoreRegionData(void);
- Graphics::TColor __fastcall UnusableColor(void);
- virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
- HIDESBASE void __fastcall Draw3dLines(Fcbitmap::TfcBitmap* Bitmap, const Types::TPoint * PointList, const int PointList_Size, int NumPoints, Graphics::TColor TransColor);
- void __fastcall SetPointToOrientation(Fccommon::PfcPolyGonPoints Points, int NumPoints, TfcShapeOrientation Orientation, const tagSIZE &Size);
- int __fastcall GetCustomPoints(Fccommon::PfcPolyGonPoints &Points, const tagSIZE &Size);
- int __fastcall GetStarPoints(Fccommon::PfcPolyGonPoints &Points, const tagSIZE &Size);
- int __fastcall GetPolygonPoints(Fccommon::PfcPolyGonPoints &Points);
- virtual HRGN __fastcall CreateRegion(bool DoImplementation, bool Down);
- DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
- virtual bool __fastcall UseRegions(void);
- __property Graphics::TBitmap* RegionBitmap = {read=FRegionBitmap, write=FRegionBitmap};
-
- public:
- Variant Patch;
- __fastcall virtual TfcCustomShapeBtn(Classes::TComponent* AOwner);
- __fastcall virtual ~TfcCustomShapeBtn(void);
- virtual bool __fastcall IsMultipleRegions(void);
- virtual bool __fastcall RoundShape(void);
- virtual void __fastcall GetDrawBitmap(Fcbitmap::TfcBitmap* DrawBitmap, bool ForRegion, Fcbutton::TfcShadeStyle ShadeStyle, bool Down);
- virtual void __fastcall SizeToDefault(void);
- __property TfcShapeOrientation Orientation = {read=FOrientation, write=SetOrientation, default=2};
- __property Classes::TStringList* PointList = {read=FPointList, write=SetPointList};
- __property int RoundRectBias = {read=FRoundRectBias, write=SetRoundRectBias, default=0};
- __property TfcButtonShape Shape = {read=FShape, write=SetShape, default=5};
- __property TwwComputeCanvasAttributes OnComputeCanvasAttributes = {read=FOnComputeCanvasAttributes, write=FOnComputeCanvasAttributes};
- public:
- #pragma option push -w-inl
- /* TWinControl.CreateParented */ inline __fastcall TfcCustomShapeBtn(HWND ParentWindow) : Fcimgbtn::TfcCustomImageBtn(ParentWindow) { }
- #pragma option pop
-
- };
- class DELPHICLASS TfcShapeBtn;
- class PASCALIMPLEMENTATION TfcShapeBtn : public TfcCustomShapeBtn
- {
- typedef TfcCustomShapeBtn inherited;
-
- __published:
- __property Action ;
- __property Anchors = {default=3};
- __property Constraints ;
- __property StaticCaption = {default=0};
- __property AllowAllUp = {default=0};
- __property Cancel = {default=0};
- __property Caption ;
- __property Color = {default=-16777211};
- __property Default = {default=0};
- __property DitherColor ;
- __property Down = {default=0};
- __property DragCursor = {default=-12};
- __property DataSource ;
- __property DataField ;
- __property DragKind = {default=0};
- __property DragMode = {default=0};
- __property Font ;
- __property Enabled = {default=1};
- __property Glyph ;
- __property GroupIndex = {default=0};
- __property Kind = {default=0};
- __property Layout = {default=0};
- __property Margin = {default=-1};
- __property ModalResult = {default=0};
- __property NumGlyphs = {default=1};
- __property Options = {default=0};
- __property Offsets ;
- __property Orientation = {default=2};
- __property ParentClipping ;
- __property ParentFont = {default=1};
- __property ParentShowHint = {default=1};
- __property PointList ;
- __property PopupMenu ;
- __property RoundRectBias = {default=0};
- __property ShadeColors ;
- __property ShadeStyle ;
- __property Shape = {default=5};
- __property ShowHint ;
- __property SmoothFont = {default=0};
- __property Spacing = {default=4};
- __property Style = {default=0};
- __property TabOrder = {default=-1};
- __property TabStop = {default=0};
- __property TextOptions ;
- __property Visible = {default=1};
- __property OnClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnMouseDown ;
- __property OnMouseEnter ;
- __property OnMouseLeave ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property OnSelChange ;
- __property OnStartDrag ;
- __property OnComputeCanvasAttributes ;
- __property DisableThemes = {default=0};
- public:
- #pragma option push -w-inl
- /* TfcCustomShapeBtn.Create */ inline __fastcall virtual TfcShapeBtn(Classes::TComponent* AOwner) : TfcCustomShapeBtn(AOwner) { }
- #pragma option pop
- #pragma option push -w-inl
- /* TfcCustomShapeBtn.Destroy */ inline __fastcall virtual ~TfcShapeBtn(void) { }
- #pragma option pop
-
- public:
- #pragma option push -w-inl
- /* TWinControl.CreateParented */ inline __fastcall TfcShapeBtn(HWND ParentWindow) : TfcCustomShapeBtn(ParentWindow) { }
- #pragma option pop
-
- };
- //-- var, const, procedure ---------------------------------------------------
- #pragma error Unsupported symbol type (23, fcShapeBtn)
- static const int DEFUNUSECOLOR = 0xff;
- static const int DEFUNUSECOLOR2 = 0xff0000;
- } /* namespace Fcshapebtn */
- using namespace Fcshapebtn;
- #pragma option pop // -w-
- #pragma option pop // -Vx
- #pragma delphiheader end.
- //-- end unit ----------------------------------------------------------------
- #endif // fcShapeBtn