home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // Tabs.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: Tabs.pas
- //----------------------------------------------------------------------------
- #ifndef TabsHPP
- #define TabsHPP
- //----------------------------------------------------------------------------
- #ifndef MenusHPP
- #include <Menus.hpp>
- #endif
-
- #ifndef MessagesHPP
- #include <Messages.hpp>
- #endif
-
- #ifndef ControlsHPP
- #include <Controls.hpp>
- #endif
-
- #ifndef FormsHPP
- #include <Forms.hpp>
- #endif
-
- #ifndef GraphicsHPP
- #include <Graphics.hpp>
- #endif
-
- #ifndef ClassesHPP
- #include <Classes.hpp>
- #endif
-
- #ifndef WindowsHPP
- #include <Windows.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- namespace Tabs
- {
- //-- type declarations -------------------------------------------------------
- enum TScrollBtn { sbLeft, sbRight };
-
- class __declspec(delphiclass) TScroller;
- class __declspec(pascalimplementation) TScroller : public Controls::TCustomControl
- {
- typedef TScroller ThisClass;
- typedef Controls::TCustomControl inherited;
-
- private:
- System::Longint FMin;
- System::Longint FMax;
- System::Longint FPosition;
- Classes::TNotifyEvent FOnClick;
- System::Integer FChange;
- Graphics::TBitmap *Bitmap;
- System::Boolean Pressed;
- System::Boolean Down;
- TScrollBtn Current;
- System::Integer pWidth;
- System::Integer pHeight;
- void __fastcall SetMin(System::Longint Value);
- void __fastcall SetMax(System::Longint Value);
- void __fastcall SetPosition(System::Longint Value);
- System::Boolean __fastcall CanScrollLeft(void);
- System::Boolean __fastcall CanScrollRight(void);
- void __fastcall DoMouseDown(System::Integer X);
- MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
- MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
- MESSAGE void __fastcall WMMouseMove(Messages::TWMMouse &Message);
- MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &Message);
- MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
-
- public:
- __fastcall virtual TScroller(Classes::TComponent *AOwner);
- __fastcall virtual ~TScroller(void);
- virtual void __fastcall Paint(void);
-
- __published:
- __property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
- __property System::Longint Min = {read=FMin, write=SetMin, default=0};
- __property System::Longint Max = {read=FMax, write=SetMax, default=0};
- __property System::Longint Position = {read=FPosition, write=SetPosition, default=0};
- __property System::Integer Change = {read=FChange, write=FChange, default=1};
- };
-
- class __declspec(delphiclass) TTabList;
- class __declspec(delphiclass) TTabSet;
- enum TTabStyle { tsStandard, tsOwnerDraw };
-
- typedef void __fastcall (__closure *TMeasureTabEvent)(System::TObject *Sender, System::Integer Index
- , System::Integer &TabWidth);
-
- typedef void __fastcall (__closure *TDrawTabEvent)(System::TObject *Sender, Graphics::TCanvas *TabCanvas
- , const Windows::TRect &R, System::Integer Index, System::Boolean Selected);
-
- typedef void __fastcall (__closure *TTabChangeEvent)(System::TObject *Sender, System::Integer NewTab
- , System::Boolean &AllowChange);
-
- enum TEdgeType { etNone, etFirstIsSel, etFirstNotSel, etLastIsSel, etLastNotSel, etNotSelToSel, etSelToNotSel,
- etNotSelToNotSel };
-
- class __declspec(pascalimplementation) TTabSet : public Controls::TCustomControl
- {
- typedef TTabSet ThisClass;
- typedef Controls::TCustomControl inherited;
-
- private:
- System::Integer FStartMargin;
- System::Integer FEndMargin;
- Classes::TStrings *FTabs;
- System::Integer FTabIndex;
- System::Integer FFirstIndex;
- System::Integer FVisibleTabs;
- Graphics::TColor FSelectedColor;
- Graphics::TColor FUnselectedColor;
- Graphics::TColor FBackgroundColor;
- System::Boolean FDitherBackground;
- System::Boolean FAutoScroll;
- TTabStyle FStyle;
- System::Integer FOwnerDrawHeight;
- TMeasureTabEvent FOnMeasureTab;
- TDrawTabEvent FOnDrawTab;
- TTabChangeEvent FOnChange;
- Controls::TImageList *ImageList;
- Graphics::TBitmap *MemBitmap;
- Graphics::TBitmap *BrushBitmap;
- Classes::TList *TabPositions;
- System::Integer FTabHeight;
- TScroller *Scroller;
- System::Integer TabVersion;
- System::Boolean FDoFix;
- System::Byte FReserved;
- void __fastcall SetSelectedColor(Graphics::TColor Value);
- void __fastcall SetUnselectedColor(Graphics::TColor Value);
- void __fastcall SetBackgroundColor(Graphics::TColor Value);
- void __fastcall SetDitherBackground(System::Boolean Value);
- void __fastcall SetAutoScroll(System::Boolean Value);
- void __fastcall SetStartMargin(System::Integer Value);
- void __fastcall SetEndMargin(System::Integer Value);
- void __fastcall SetTabIndex(System::Integer Value);
- void __fastcall SetFirstIndex(System::Integer Value);
- void __fastcall SetTabList(Classes::TStrings *Value);
- System::Integer __fastcall GetTabCount(void);
- System::AnsiString __fastcall GetTabName(System::Integer Value);
- void __fastcall SetTabName(System::Integer Value, const System::AnsiString AName);
- void __fastcall SetTabStyle(TTabStyle Value);
- void __fastcall SetTabHeight(System::Integer Value);
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, System::Integer
- X, System::Integer Y);
- MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
- MESSAGE void __fastcall CMSysColorChange(Messages::TMessage &Message);
- MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
- void __fastcall PaintEdge(System::Integer X, System::Integer Y, System::Integer H, TEdgeType Edge);
-
- void __fastcall CreateBrushPattern(Graphics::TBitmap *Bitmap);
- System::Integer __fastcall CalcTabPositions(System::Integer Start, System::Integer Stop, Graphics::TCanvas *
- Canvas, System::Integer First);
- void __fastcall CreateScroller(void);
- void __fastcall InitBitmaps(void);
- void __fastcall DoneBitmaps(void);
- void __fastcall CreateEdgeParts(void);
- void __fastcall FixTabPos(void);
- MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
- MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
- void __fastcall ScrollClick(System::TObject *Sender);
- void __fastcall ReadIntData(Classes::TReader *Reader);
- void __fastcall ReadBoolData(Classes::TReader *Reader);
-
- protected:
- virtual void __fastcall Paint(void);
- virtual void __fastcall DrawTab(Graphics::TCanvas *TabCanvas, const Windows::TRect &R, System::Integer
- Index, System::Boolean Selected);
- System::Boolean __fastcall CanChange(System::Integer NewIndex);
- virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
- virtual void __fastcall MeasureTab(System::Integer Index, System::Integer &TabWidth);
- virtual void __fastcall DefineProperties(Classes::TFiler *Filer);
-
- public:
- __fastcall virtual TTabSet(Classes::TComponent *AOwner);
- __fastcall virtual ~TTabSet(void);
- System::Integer __fastcall ItemAtPos(const Windows::TPoint &Pos);
- Windows::TRect __fastcall ItemRect(System::Integer Item);
- void __fastcall SelectNext(System::Boolean Direction);
- __property Canvas ;
- __property System::Integer FirstIndex = {read=FFirstIndex, write=SetFirstIndex, default=0};
-
- __published:
- __property Align ;
- __property System::Boolean AutoScroll = {read=FAutoScroll, write=SetAutoScroll, default=1};
- __property Graphics::TColor BackgroundColor = {read=FBackgroundColor, write=SetBackgroundColor, default=-2147483633
- };
- __property System::Boolean DitherBackground = {read=FDitherBackground, write=SetDitherBackground, default=1
- };
- __property DragMode ;
- __property Enabled ;
- __property System::Integer EndMargin = {read=FEndMargin, write=SetEndMargin, default=5};
- __property Font ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property System::Integer StartMargin = {read=FStartMargin, write=SetStartMargin, default=5};
- __property Graphics::TColor SelectedColor = {read=FSelectedColor, write=SetSelectedColor, default=-2147483633
- };
- __property TTabStyle Style = {read=FStyle, write=SetTabStyle, default=0};
- __property System::Integer TabHeight = {read=FOwnerDrawHeight, write=SetTabHeight, default=20};
- __property Classes::TStrings * Tabs = {read=FTabs, write=SetTabList, nodefault};
- __property System::Integer TabIndex = {read=FTabIndex, write=SetTabIndex, default=-1};
- __property Graphics::TColor UnselectedColor = {read=FUnselectedColor, write=SetUnselectedColor, default=-2147483643
- };
- __property Visible ;
- __property System::Integer VisibleTabs = {read=FVisibleTabs, nodefault};
- __property OnClick ;
- __property TTabChangeEvent OnChange = {read=FOnChange, write=FOnChange};
- __property OnDragDrop ;
- __property OnDragOver ;
- __property TDrawTabEvent OnDrawTab = {read=FOnDrawTab, write=FOnDrawTab};
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property TMeasureTabEvent OnMeasureTab = {read=FOnMeasureTab, write=FOnMeasureTab};
- __property OnStartDrag ;
- };
-
- class __declspec(pascalimplementation) TTabList : public Classes::TStringList
- {
- typedef TTabList ThisClass;
- typedef Classes::TStringList inherited;
-
- private:
- TTabSet *Tabs;
-
- public:
- virtual void __fastcall Insert(System::Integer Index, const System::AnsiString S);
- virtual void __fastcall Delete(System::Integer Index);
- virtual System::Integer __fastcall Add(const System::AnsiString S);
- virtual void __fastcall Put(System::Integer Index, const System::AnsiString S);
- virtual void __fastcall Clear(void);
- virtual void __fastcall AddStrings(Classes::TStrings *Strings);
- public:
- /* !! TStringList.Destroy */ __fastcall virtual ~TTabList(void) { }
-
- public:
- /* !! TObject.Create */ __fastcall TTabList(void) : Classes::TStringList() { }
-
- };
-
- enum TEdgePart { epSelectedLeft, epUnselectedLeft, epSelectedRight, epUnselectedRight };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Tabs */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Tabs;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // Tabs
-