home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1997 May / VPR9705A.ISO / VPR_DATA / PROGRAM / CBTRIAL / SETUP / DATA.Z / DEMOLBL.H < prev    next >
C/C++ Source or Header  |  1997-02-14  |  2KB  |  57 lines

  1. //---------------------------------------------------------------------------
  2. // Borland C++Builder
  3. // Copyright (c) 1987, 1997 Borland International Inc.  All Rights Reserved.
  4. //---------------------------------------------------------------------------
  5. #ifndef DemoLblHPP
  6. #define DemoLblHPP
  7. //----------------------------------------------------------------------------
  8. #include <Dialogs.hpp>
  9. #include <Forms.hpp>
  10. #include <Controls.hpp>
  11. #include <Graphics.hpp>
  12. #include <Classes.hpp>
  13. #include <SysUtils.hpp>
  14. #include <Messages.hpp>
  15. #include <Windows.hpp>
  16. #include <System.hpp>
  17.  
  18. namespace Demolbl{
  19. class TDemoLabel : public TGraphicControl
  20. {
  21. private:
  22.     TWinControl* FFocusControl;
  23.     void __fastcall SetFocusControl(TWinControl* Value);
  24.     void __fastcall CMDialogChar(TWMKey& Message);
  25.     void __fastcall CMTextChanged(TMessage& Message);
  26.  
  27. protected:
  28.     virtual void __fastcall Notification(TComponent* AComponent, TOperation Operation);
  29.     virtual void __fastcall Paint(void);
  30.  
  31. public:
  32.     __fastcall virtual TDemoLabel(TComponent* AOwner);
  33.  
  34. __published:
  35.     __property Caption ;
  36.     __property Color ;
  37.     __property TWinControl* FocusControl = {read=FFocusControl, write=SetFocusControl, nodefault};
  38.     __property Font ;
  39.     __property ParentColor ;
  40.     __property ParentFont ;
  41. public:
  42.     __fastcall virtual ~TDemoLabel(void) { }
  43.  
  44. BEGIN_MESSAGE_MAP
  45.   MESSAGE_HANDLER(CM_DIALOGCHAR, TWMKey, CMDialogChar);
  46.   MESSAGE_HANDLER(CM_TEXTCHANGED, TMessage, CMTextChanged);
  47. END_MESSAGE_MAP(TGraphicControl);
  48. };
  49. } //end namespace DemoLabel
  50.  
  51. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  52. using namespace Demolbl;
  53. #endif
  54.  
  55. //-- end unit ----------------------------------------------------------------
  56. #endif    // DemoLbl
  57.