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) 'EsMarque.pas' rev: 3.00
-
- #ifndef EsMarqueHPP
- #define EsMarqueHPP
- #include <EsLabel.hpp>
- #include <EsData.hpp>
- #include <SysUtils.hpp>
- #include <StdCtrls.hpp>
- #include <MMSystem.hpp>
- #include <Messages.hpp>
- #include <Graphics.hpp>
- #include <Forms.hpp>
- #include <ExtCtrls.hpp>
- #include <Controls.hpp>
- #include <Classes.hpp>
- #include <Windows.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Esmarque
- {
- //-- type declarations -------------------------------------------------------
- enum TEsBehaviors { bhCycle, bhBounce, bhOnce };
-
- enum TEsScrollDirection { sdRightToLeft, sdLeftToRight, sdTopToBottom, sdBottomToTop };
-
- typedef Shortint TEsScrollSpeed;
-
- class DELPHICLASS TEsCustomScrollingMarquee;
- class PASCALIMPLEMENTATION TEsCustomScrollingMarquee : public Eslabel::TEsCustomLabel
- {
- typedef Eslabel::TEsCustomLabel inherited;
-
- protected:
- bool FActive;
- TEsBehaviors FBehavior;
- TEsScrollSpeed FScrollSpeed;
- TEsScrollDirection FScrollDirection;
- Classes::TNotifyEvent FOnCycle;
- Graphics::TBitmap* smBmp;
- HDC smDC;
- int smDelay;
- bool smDirty;
- HWND smHandle;
- HBITMAP smOldBmp;
- tagPOINT smPos;
- int smResolution;
- int smTextHeight;
- int smTextWidth;
- int smTimerId;
- void __fastcall smChanged(void);
- void __fastcall smKillTimer(void);
- void __fastcall smSetTimer(void);
- void __fastcall smWndProc(Messages::TMessage &Message);
- Classes::TAlignment __fastcall GetAlignment(void);
- void __fastcall SetActive(bool Value);
- HIDESBASE void __fastcall SetAlignment(Classes::TAlignment Value);
- void __fastcall SetBehavior(TEsBehaviors Value);
- void __fastcall SetScrollDirection(TEsScrollDirection Value);
- void __fastcall SetScrollSpeed(TEsScrollSpeed Value);
- HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TWMNoParams &Message);
- HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TWMNoParams &Message);
- HIDESBASE MESSAGE void __fastcall CMTextChanged(Messages::TWMNoParams &Message);
- virtual void __fastcall Paint(void);
- DYNAMIC void __fastcall DoOnCycle(void);
- __property bool Active = {read=FActive, write=SetActive, default=0};
- __property Classes::TAlignment Alignment = {read=GetAlignment, write=SetAlignment, nodefault};
- __property TEsBehaviors Behavior = {read=FBehavior, write=SetBehavior, default=0};
- __property TEsScrollDirection ScrollDirection = {read=FScrollDirection, write=SetScrollDirection, default=0
- };
- __property TEsScrollSpeed ScrollSpeed = {read=FScrollSpeed, write=SetScrollSpeed, nodefault};
- __property Classes::TNotifyEvent OnCycle = {read=FOnCycle, write=FOnCycle};
-
- public:
- __fastcall virtual TEsCustomScrollingMarquee(Classes::TComponent* AOwner);
- __fastcall virtual ~TEsCustomScrollingMarquee(void);
- virtual void __fastcall Invalidate(void);
- };
-
- class DELPHICLASS TEsScrollingMarquee;
- class PASCALIMPLEMENTATION TEsScrollingMarquee : public Esmarque::TEsCustomScrollingMarquee
- {
- typedef Esmarque::TEsCustomScrollingMarquee inherited;
-
- __published:
- __property Active ;
- __property Align ;
- __property Alignment ;
- __property Appearance ;
- __property Behavior ;
- __property Caption ;
- __property Color ;
- __property ColorScheme ;
- __property Cursor ;
- __property CustomSettings ;
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property FocusControl ;
- __property Font ;
- __property ParentColor ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property ScrollDirection ;
- __property ScrollSpeed ;
- __property ShowAccelChar ;
- __property ShowHint ;
- __property WordWrap ;
- __property Version ;
- __property Visible ;
- __property OnClick ;
- __property OnCycle ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- public:
- /* TEsCustomScrollingMarquee.Create */ __fastcall virtual TEsScrollingMarquee(Classes::TComponent*
- AOwner) : Esmarque::TEsCustomScrollingMarquee(AOwner) { }
- /* TEsCustomScrollingMarquee.Destroy */ __fastcall virtual ~TEsScrollingMarquee(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
- #define SM_TIMER (Word)(1524)
-
- } /* namespace Esmarque */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Esmarque;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // EsMarque
-