home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2001 October
/
Chip_2001-10_cd1.bin
/
zkuste
/
delphi
/
kompon
/
d123456
/
CHEMPLOT.ZIP
/
Misc
/
Mlabel.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
2001-07-31
|
4KB
|
113 lines
// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Mlabel.pas' rev: 3.00
#ifndef MlabelHPP
#define MlabelHPP
#include <Misc.hpp>
#include <StdCtrls.hpp>
#include <Menus.hpp>
#include <Graphics.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Windows.hpp>
#include <SysUtils.hpp>
#include <Classes.hpp>
#include <SysInit.hpp>
#include <System.hpp>
//-- user supplied -----------------------------------------------------------
namespace Mlabel
{
//-- type declarations -------------------------------------------------------
enum TDirection { dRight, dLeft, dUp, dDown };
enum et_Popup { puBorders, puBorderWidth, puColor, puDirection, puEdit, puFont, puLineLength, puSameColor,
puTransparent };
typedef int TBorderWidth;
class DELPHICLASS TMultiLabel;
class PASCALIMPLEMENTATION TMultiLabel : public Stdctrls::TCustomLabel
{
typedef Stdctrls::TCustomLabel inherited;
private:
TFormBorderStyle FBorderStyle;
TBorderWidth FBorderWidth;
Classes::TStringList* FCaption;
TDirection FDirection;
Word FLineLength;
Stdctrls::TMemo* TextEdit;
Menus::TPopupMenu* MyPopup;
void __fastcall SetCaption(Classes::TStringList* Value);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall SetBorderWidth(TBorderWidth Value);
void __fastcall SetDirection(TDirection Value);
void __fastcall SetLineLength(Word Value);
protected:
HIDESBASE void __fastcall DoDrawText(System::AnsiString Text, Windows::TRect &Rect, int Flags);
virtual Graphics::TColor __fastcall ExtractColor(int Index);
virtual Graphics::TPenStyle __fastcall ExtractPenStyle(int Index);
virtual System::AnsiString __fastcall ExtractText(int Index);
virtual void __fastcall Outline(void);
virtual void __fastcall SetSize(void);
DYNAMIC void __fastcall DblClick(void);
void __fastcall EditFinished(System::TObject* Sender);
void __fastcall EditKeyDown(System::TObject* Sender, Word &Key, Classes::TShiftState Shift);
public:
__fastcall virtual TMultiLabel(Classes::TComponent* AOwner);
__fastcall virtual ~TMultiLabel(void);
virtual void __fastcall Paint(void);
__published:
__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, nodefault};
__property TBorderWidth BorderWidth = {read=FBorderWidth, write=SetBorderWidth, nodefault};
__property Classes::TStringList* Caption = {read=FCaption, write=SetCaption};
__property TDirection Direction = {read=FDirection, write=SetDirection, nodefault};
__property Word LineLength = {read=FLineLength, write=SetLineLength, nodefault};
__property Align ;
__property Alignment ;
__property AutoSize ;
__property Color ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property FocusControl ;
__property Font ;
__property ParentColor ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowAccelChar ;
__property ShowHint ;
__property Transparent ;
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
};
//-- var, const, procedure ---------------------------------------------------
#define TMULTILABEL_VERSION (Byte)(100)
#define NULL (Byte)(0)
extern PACKAGE System::AnsiString __fastcall GetWord(System::AnsiString &This_Line, System::AnsiString
Delimiter);
} /* namespace Mlabel */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Mlabel;
#endif
//-- end unit ----------------------------------------------------------------
#endif // Mlabel