home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
COMCTRLS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
82KB
|
2,091 lines
//----------------------------------------------------------------------------
// ComCtrls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: ComCtrls.pas
//----------------------------------------------------------------------------
#ifndef ComCtrlsHPP
#define ComCtrlsHPP
//----------------------------------------------------------------------------
#include <RichEdit.hpp>
#include <StdCtrls.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <CommCtrl.hpp>
#include <SysUtils.hpp>
#include <Windows.hpp>
#include <Messages.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Comctrls
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TTabChangingEvent)(System::TObject* Sender, bool &AllowChange);
class __declspec(delphiclass) TCustomTabControl;
class __declspec(pascalimplementation) TCustomTabControl : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
Classes::TStrings* FTabs;
Classes::TStringList* FSaveTabs;
int FSaveTabIndex;
Windows::TSmallPoint FTabSize;
bool FMultiLine;
bool FUpdating;
Classes::TNotifyEvent FOnChange;
TTabChangingEvent FOnChanging;
Windows::TRect __fastcall GetDisplayRect(void);
int __fastcall GetTabIndex(void);
void __fastcall SetMultiLine(bool Value);
void __fastcall SetTabHeight(short Value);
void __fastcall SetTabIndex(int Value);
void __fastcall SetTabs(Classes::TStrings* Value);
void __fastcall SetTabWidth(short Value);
void __fastcall TabsChanged(void);
void __fastcall UpdateTabSize(void);
HIDESBASE MESSAGE void __fastcall WMDestroy(Messages::TWMNoParams &Message);
MESSAGE void __fastcall CMTabStopChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
protected:
virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
virtual bool __fastcall CanChange(void);
virtual void __fastcall Change(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DestroyWnd(void);
__property Windows::TRect DisplayRect = {read=GetDisplayRect};
__property bool MultiLine = {read=FMultiLine, write=SetMultiLine, default=0};
__property short TabHeight = {read=FTabSize.y, write=SetTabHeight, default=0};
__property int TabIndex = {read=GetTabIndex, write=SetTabIndex, default=-1};
__property Classes::TStrings* Tabs = {read=FTabs, write=SetTabs, nodefault};
__property short TabWidth = {read=FTabSize.x, write=SetTabWidth, default=0};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property TTabChangingEvent OnChanging = {read=FOnChanging, write=FOnChanging};
public:
__fastcall virtual TCustomTabControl(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomTabControl(void);
__property TabStop ;
public:
/* TWinControl.CreateParented */ __fastcall TCustomTabControl(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
};
class __declspec(delphiclass) TTabControl;
class __declspec(pascalimplementation) TTabControl : public TCustomTabControl
{
typedef TCustomTabControl inherited;
public:
__property DisplayRect ;
__published:
__property Align ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property MultiLine ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property TabHeight ;
__property TabIndex ;
__property TabOrder ;
__property Tabs ;
__property TabStop ;
__property TabWidth ;
__property Visible ;
__property OnChange ;
__property OnChanging ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TCustomTabControl.Create */ __fastcall virtual TTabControl(Classes::TComponent* AOwner) : Comctrls::
TCustomTabControl(AOwner) { }
/* TCustomTabControl.Destroy */ __fastcall virtual ~TTabControl(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TTabControl(HWND ParentWindow) : Comctrls::TCustomTabControl(
ParentWindow) { }
};
class __declspec(delphiclass) TTabSheet;
class __declspec(delphiclass) TPageControl;
class __declspec(pascalimplementation) TPageControl : public TCustomTabControl
{
typedef TCustomTabControl inherited;
private:
Classes::TList* FPages;
TTabSheet* FActivePage;
void __fastcall ChangeActivePage(TTabSheet* Page);
void __fastcall DeleteTab(TTabSheet* Page);
TTabSheet* __fastcall GetPage(int Index);
int __fastcall GetPageCount(void);
void __fastcall InsertPage(TTabSheet* Page);
void __fastcall InsertTab(TTabSheet* Page);
void __fastcall MoveTab(int CurIndex, int NewIndex);
void __fastcall RemovePage(TTabSheet* Page);
void __fastcall SetActivePage(TTabSheet* Page);
void __fastcall UpdateTab(TTabSheet* Page);
void __fastcall UpdateActivePage(void);
HIDESBASE MESSAGE void __fastcall CMDesignHitTest(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall CMDialogKey(Messages::TWMKey &Message);
protected:
virtual void __fastcall Change(void);
virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
virtual void __fastcall SetChildOrder(Classes::TComponent* Child, int Order);
virtual void __fastcall ShowControl(Controls::TControl* AControl);
public:
__fastcall virtual TPageControl(Classes::TComponent* AOwner);
__fastcall virtual ~TPageControl(void);
TTabSheet* __fastcall FindNextPage(TTabSheet* CurPage, bool GoForward, bool CheckTabVisible);
void __fastcall SelectNextPage(bool GoForward);
__property int PageCount = {read=GetPageCount, nodefault};
__property TTabSheet* Pages[int Index] = {read=GetPage};
__published:
__property TTabSheet* ActivePage = {read=FActivePage, write=SetActivePage, nodefault};
__property Align ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property MultiLine ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property TabHeight ;
__property TabOrder ;
__property TabStop ;
__property TabWidth ;
__property Visible ;
__property OnChange ;
__property OnChanging ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TWinControl.CreateParented */ __fastcall TPageControl(HWND ParentWindow) : Comctrls::TCustomTabControl(
ParentWindow) { }
};
class __declspec(pascalimplementation) TTabSheet : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
TPageControl* FPageControl;
bool FTabVisible;
bool FTabShowing;
int __fastcall GetPageIndex(void);
int __fastcall GetTabIndex(void);
void __fastcall SetPageControl(TPageControl* APageControl);
void __fastcall SetPageIndex(int Value);
void __fastcall SetTabShowing(bool Value);
void __fastcall SetTabVisible(bool Value);
void __fastcall UpdateTabShowing(void);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
protected:
virtual void __fastcall ReadState(Classes::TReader* Reader);
public:
__fastcall virtual TTabSheet(Classes::TComponent* AOwner);
__fastcall virtual ~TTabSheet(void);
__property TPageControl* PageControl = {read=FPageControl, write=SetPageControl, nodefault};
__property int TabIndex = {read=GetTabIndex, nodefault};
__published:
__property Caption ;
__property Enabled ;
__property Font ;
__property Height = {stored=false};
__property Left = {stored=false};
__property int PageIndex = {read=GetPageIndex, write=SetPageIndex, stored=false, nodefault};
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property bool TabVisible = {read=FTabVisible, write=SetTabVisible, default=1};
__property Top = {stored=false};
__property Visible = {stored=false, default=1};
__property Width = {stored=false};
__property OnDragDrop ;
__property OnDragOver ;
__property OnEnter ;
__property OnExit ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
public:
/* TWinControl.CreateParented */ __fastcall TTabSheet(HWND ParentWindow) : Controls::TWinControl(ParentWindow
) { }
};
enum TStatusPanelStyle { psText, psOwnerDraw };
enum TStatusPanelBevel { pbNone, pbLowered, pbRaised };
class __declspec(delphiclass) TStatusPanel;
class __declspec(pascalimplementation) TStatusPanel : public Classes::TCollectionItem
{
typedef Classes::TCollectionItem inherited;
private:
System::AnsiString FText;
int FWidth;
TAlignment FAlignment;
TStatusPanelBevel FBevel;
TStatusPanelStyle FStyle;
void __fastcall SetAlignment(Classes::TAlignment Value);
void __fastcall SetBevel(TStatusPanelBevel Value);
void __fastcall SetStyle(TStatusPanelStyle Value);
void __fastcall SetText(const System::AnsiString Value);
void __fastcall SetWidth(int Value);
public:
__fastcall virtual TStatusPanel(Classes::TCollection* Collection);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__published:
__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
__property TStatusPanelBevel Bevel = {read=FBevel, write=SetBevel, default=1};
__property TStatusPanelStyle Style = {read=FStyle, write=SetStyle, default=0};
__property System::AnsiString Text = {read=FText, write=SetText, nodefault};
__property int Width = {read=FWidth, write=SetWidth, nodefault};
public:
/* TCollectionItem.Destroy */ __fastcall virtual ~TStatusPanel(void) { }
};
class __declspec(delphiclass) TStatusPanels;
class __declspec(delphiclass) TStatusBar;
typedef void __fastcall (__closure *TDrawPanelEvent)(TStatusBar* StatusBar, TStatusPanel* Panel, const
Windows::TRect &Rect);
class __declspec(pascalimplementation) TStatusBar : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
TStatusPanels* FPanels;
Graphics::TCanvas* FCanvas;
System::AnsiString FSimpleText;
bool FSimplePanel;
bool FSizeGrip;
TDrawPanelEvent FOnDrawPanel;
Classes::TNotifyEvent FOnResize;
void __fastcall SetPanels(TStatusPanels* Value);
void __fastcall SetSimplePanel(bool Value);
void __fastcall SetSimpleText(const System::AnsiString Value);
void __fastcall SetSizeGrip(bool Value);
void __fastcall UpdatePanel(int Index);
void __fastcall UpdatePanels(void);
MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DrawPanel(TStatusPanel* Panel, const Windows::TRect &Rect);
virtual void __fastcall Resize(void);
public:
__fastcall virtual TStatusBar(Classes::TComponent* AOwner);
__fastcall virtual ~TStatusBar(void);
__property Graphics::TCanvas* Canvas = {read=FCanvas, nodefault};
__published:
__property Align ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property TStatusPanels* Panels = {read=FPanels, write=SetPanels, nodefault};
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property bool SimplePanel = {read=FSimplePanel, write=SetSimplePanel, nodefault};
__property System::AnsiString SimpleText = {read=FSimpleText, write=SetSimpleText, nodefault};
__property bool SizeGrip = {read=FSizeGrip, write=SetSizeGrip, default=1};
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property TDrawPanelEvent OnDrawPanel = {read=FOnDrawPanel, write=FOnDrawPanel};
__property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize};
__property OnStartDrag ;
public:
/* TWinControl.CreateParented */ __fastcall TStatusBar(HWND ParentWindow) : Controls::TWinControl(ParentWindow
) { }
};
class __declspec(pascalimplementation) TStatusPanels : public Classes::TCollection
{
typedef Classes::TCollection inherited;
private:
TStatusBar* FStatusBar;
HIDESBASE TStatusPanel* __fastcall GetItem(int Index);
HIDESBASE void __fastcall SetItem(int Index, TStatusPanel* Value);
protected:
virtual void __fastcall Update(Classes::TCollectionItem* Item);
public:
__fastcall TStatusPanels(TStatusBar* StatusBar);
HIDESBASE TStatusPanel* __fastcall Add(void);
__property TStatusPanel* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
public:
/* TCollection.Destroy */ __fastcall virtual ~TStatusPanels(void) { }
};
enum THeaderSectionStyle { hsText, hsOwnerDraw };
class __declspec(delphiclass) THeaderSection;
class __declspec(pascalimplementation) THeaderSection : public Classes::TCollectionItem
{
typedef Classes::TCollectionItem inherited;
private:
System::AnsiString FText;
int FWidth;
int FMinWidth;
int FMaxWidth;
TAlignment FAlignment;
THeaderSectionStyle FStyle;
bool FAllowClick;
int __fastcall GetLeft(void);
int __fastcall GetRight(void);
void __fastcall SetAlignment(Classes::TAlignment Value);
void __fastcall SetMaxWidth(int Value);
void __fastcall SetMinWidth(int Value);
void __fastcall SetStyle(THeaderSectionStyle Value);
void __fastcall SetText(const System::AnsiString Value);
void __fastcall SetWidth(int Value);
public:
__fastcall virtual THeaderSection(Classes::TCollection* Collection);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__property int Left = {read=GetLeft, nodefault};
__property int Right = {read=GetRight, nodefault};
__published:
__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
__property bool AllowClick = {read=FAllowClick, write=FAllowClick, default=1};
__property int MaxWidth = {read=FMaxWidth, write=SetMaxWidth, default=10000};
__property int MinWidth = {read=FMinWidth, write=SetMinWidth, default=0};
__property THeaderSectionStyle Style = {read=FStyle, write=SetStyle, default=0};
__property System::AnsiString Text = {read=FText, write=SetText, nodefault};
__property int Width = {read=FWidth, write=SetWidth, nodefault};
public:
/* TCollectionItem.Destroy */ __fastcall virtual ~THeaderSection(void) { }
};
class __declspec(delphiclass) THeaderSections;
class __declspec(delphiclass) THeaderControl;
typedef void __fastcall (__closure *TDrawSectionEvent)(THeaderControl* HeaderControl, THeaderSection*
Section, const Windows::TRect &Rect, bool Pressed);
typedef void __fastcall (__closure *TSectionNotifyEvent)(THeaderControl* HeaderControl, THeaderSection*
Section);
enum TSectionTrackState { tsTrackBegin, tsTrackMove, tsTrackEnd };
typedef void __fastcall (__closure *TSectionTrackEvent)(THeaderControl* HeaderControl, THeaderSection*
Section, int Width, TSectionTrackState State);
class __declspec(pascalimplementation) THeaderControl : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
THeaderSections* FSections;
Graphics::TCanvas* FCanvas;
TDrawSectionEvent FOnDrawSection;
Classes::TNotifyEvent FOnResize;
TSectionNotifyEvent FOnSectionClick;
TSectionNotifyEvent FOnSectionResize;
TSectionTrackEvent FOnSectionTrack;
void __fastcall SetSections(THeaderSections* Value);
void __fastcall UpdateItem(int Message, int Index);
void __fastcall UpdateSection(int Index);
void __fastcall UpdateSections(void);
MESSAGE void __fastcall CNDrawItem(Messages::TWMDrawItem &Message);
MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DrawSection(THeaderSection* Section, const Windows::TRect &Rect, bool Pressed
);
virtual void __fastcall Resize(void);
virtual void __fastcall SectionClick(THeaderSection* Section);
virtual void __fastcall SectionResize(THeaderSection* Section);
virtual void __fastcall SectionTrack(THeaderSection* Section, int Width, TSectionTrackState State);
public:
__fastcall virtual THeaderControl(Classes::TComponent* AOwner);
__fastcall virtual ~THeaderControl(void);
__property Graphics::TCanvas* Canvas = {read=FCanvas, nodefault};
__published:
__property Align ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property THeaderSections* Sections = {read=FSections, write=SetSections, nodefault};
__property ShowHint ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property Visible ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property TDrawSectionEvent OnDrawSection = {read=FOnDrawSection, write=FOnDrawSection};
__property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize};
__property TSectionNotifyEvent OnSectionClick = {read=FOnSectionClick, write=FOnSectionClick};
__property TSectionNotifyEvent OnSectionResize = {read=FOnSectionResize, write=FOnSectionResize};
__property TSectionTrackEvent OnSectionTrack = {read=FOnSectionTrack, write=FOnSectionTrack};
__property OnStartDrag ;
public:
/* TWinControl.CreateParented */ __fastcall THeaderControl(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
};
class __declspec(pascalimplementation) THeaderSections : public Classes::TCollection
{
typedef Classes::TCollection inherited;
private:
THeaderControl* FHeaderControl;
HIDESBASE THeaderSection* __fastcall GetItem(int Index);
HIDESBASE void __fastcall SetItem(int Index, THeaderSection* Value);
protected:
virtual void __fastcall Update(Classes::TCollectionItem* Item);
public:
__fastcall THeaderSections(THeaderControl* HeaderControl);
HIDESBASE THeaderSection* __fastcall Add(void);
__property THeaderSection* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
public:
/* TCollection.Destroy */ __fastcall virtual ~THeaderSections(void) { }
};
enum TNodeState { nsCut, nsDropHilited, nsFocused, nsSelected, nsExpanded };
enum TNodeAttachMode { naAdd, naAddFirst, naAddChild, naAddChildFirst, naInsert };
enum TAddMode { taAddFirst, taAdd, taInsert };
struct TNodeInfo;
typedef TNodeInfo *PNodeInfo;
#pragma pack(push, 1)
struct TNodeInfo
{
int ImageIndex;
int SelectedIndex;
int StateIndex;
int OverlayIndex;
void *Data;
int Count;
System::SmallString<255> Text;
} ;
#pragma pack(pop)
class __declspec(delphiclass) TTreeNode;
class __declspec(delphiclass) TTreeNodes;
class __declspec(delphiclass) TCustomTreeView;
enum TSortType { stNone, stData, stText, stBoth };
typedef void __fastcall (__closure *TTVEditingEvent)(System::TObject* Sender, TTreeNode* Node, bool
&AllowEdit);
typedef void __fastcall (__closure *TTVEditedEvent)(System::TObject* Sender, TTreeNode* Node, System::AnsiString &
S);
typedef void __fastcall (__closure *TTVExpandedEvent)(System::TObject* Sender, TTreeNode* Node);
typedef void __fastcall (__closure *TTVExpandingEvent)(System::TObject* Sender, TTreeNode* Node, bool
&AllowExpansion);
typedef void __fastcall (__closure *TTVCollapsingEvent)(System::TObject* Sender, TTreeNode* Node, bool
&AllowCollapse);
typedef void __fastcall (__closure *TTVChangingEvent)(System::TObject* Sender, TTreeNode* Node, bool
&AllowChange);
typedef void __fastcall (__closure *TTVChangedEvent)(System::TObject* Sender, TTreeNode* Node);
typedef void __fastcall (__closure *TTVCompareEvent)(System::TObject* Sender, TTreeNode* Node1, TTreeNode*
Node2, int Data, int &Compare);
enum THitTest { htAbove, htBelow, htNowhere, htOnItem, htOnButton, htOnIcon, htOnIndent, htOnLabel,
htOnRight, htOnStateIcon, htToLeft, htToRight };
typedef Set<THitTest, htAbove, htToRight> THitTests;
class __declspec(pascalimplementation) TCustomTreeView : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
bool FShowLines;
bool FShowRoot;
bool FShowButtons;
TFormBorderStyle FBorderStyle;
bool FReadOnly;
Controls::TImageList* FImages;
Controls::TImageList* FStateImages;
Controls::TChangeLink* FImageChangeLink;
Controls::TChangeLink* FStateChangeLink;
Controls::TImageList* FDragImage;
TTreeNodes* FTreeNodes;
TSortType FSortType;
Classes::TStringList* FSaveItems;
int FSaveTopIndex;
int FSaveIndex;
int FSaveIndent;
bool FHideSelection;
Classes::TMemoryStream* FMemStream;
void *FEditInstance;
void *FDefEditProc;
HWND FEditHandle;
bool FDragged;
bool FRClicked;
TTreeNode* FLastDropTarget;
TTreeNode* FDragNode;
TTVEditingEvent FOnEditing;
TTVEditedEvent FOnEdited;
TTVExpandedEvent FOnExpanded;
TTVExpandingEvent FOnExpanding;
TTVExpandedEvent FOnCollapsed;
TTVCollapsingEvent FOnCollapsing;
TTVChangingEvent FOnChanging;
TTVChangedEvent FOnChange;
TTVCompareEvent FOnCompare;
TTVExpandedEvent FOnDeletion;
TTVExpandedEvent FOnGetImageIndex;
TTVExpandedEvent FOnGetSelectedIndex;
HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMDrag(Controls::TCMDrag &Message);
MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
void __fastcall EditWndProc(Messages::TMessage &Message);
void __fastcall DoDragOver(Controls::TDragObject* Source, int X, int Y);
void __fastcall GetImageIndex(TTreeNode* Node);
void __fastcall GetSelectedIndex(TTreeNode* Node);
TTreeNode* __fastcall GetDropTarget(void);
int __fastcall GetIndent(void);
TTreeNode* __fastcall GetNodeFromItem(const TV_ITEMA &Item);
TTreeNode* __fastcall GetSelection(void);
TTreeNode* __fastcall GetTopItem(void);
void __fastcall ImageListChange(System::TObject* Sender);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall SetButtonStyle(bool Value);
void __fastcall SetDropTarget(TTreeNode* Value);
void __fastcall SetHideSelection(bool Value);
void __fastcall SetImageList(int Value, int Flags);
void __fastcall SetIndent(int Value);
void __fastcall SetImages(Controls::TImageList* Value);
void __fastcall SetLineStyle(bool Value);
void __fastcall SetReadOnly(bool Value);
void __fastcall SetRootStyle(bool Value);
void __fastcall SetSelection(TTreeNode* Value);
void __fastcall SetSortType(TSortType Value);
void __fastcall SetStateImages(Controls::TImageList* Value);
void __fastcall SetStyle(int Value, bool UseStyle);
void __fastcall SetTreeNodes(TTreeNodes* Value);
void __fastcall SetTopItem(TTreeNode* Value);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMRButtonDown(Messages::TWMMouse &Message);
protected:
virtual bool __fastcall CanEdit(TTreeNode* Node);
virtual bool __fastcall CanChange(TTreeNode* Node);
virtual bool __fastcall CanCollapse(TTreeNode* Node);
virtual bool __fastcall CanExpand(TTreeNode* Node);
virtual void __fastcall Change(TTreeNode* Node);
virtual void __fastcall Collapse(TTreeNode* Node);
virtual TTreeNode* __fastcall CreateNode(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DestroyWnd(void);
HIDESBASE virtual void __fastcall DoEndDrag(System::TObject* Target, int X, int Y);
virtual void __fastcall DoStartDrag(Controls::TDragObject* &DragObject);
virtual void __fastcall Edit(const TV_ITEMA &Item);
virtual void __fastcall Expand(TTreeNode* Node);
virtual Controls::TCustomImageList* __fastcall GetDragImages(void);
virtual void __fastcall Loaded(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall SetDragMode(Controls::TDragMode Value);
virtual void __fastcall WndProc(Messages::TMessage &Message);
__property TTVEditingEvent OnEditing = {read=FOnEditing, write=FOnEditing};
__property TTVEditedEvent OnEdited = {read=FOnEdited, write=FOnEdited};
__property TTVExpandingEvent OnExpanding = {read=FOnExpanding, write=FOnExpanding};
__property TTVExpandedEvent OnExpanded = {read=FOnExpanded, write=FOnExpanded};
__property TTVCollapsingEvent OnCollapsing = {read=FOnCollapsing, write=FOnCollapsing};
__property TTVExpandedEvent OnCollapsed = {read=FOnCollapsed, write=FOnCollapsed};
__property TTVChangingEvent OnChanging = {read=FOnChanging, write=FOnChanging};
__property TTVChangedEvent OnChange = {read=FOnChange, write=FOnChange};
__property TTVCompareEvent OnCompare = {read=FOnCompare, write=FOnCompare};
__property TTVExpandedEvent OnDeletion = {read=FOnDeletion, write=FOnDeletion};
__property TTVExpandedEvent OnGetImageIndex = {read=FOnGetImageIndex, write=FOnGetImageIndex};
__property TTVExpandedEvent OnGetSelectedIndex = {read=FOnGetSelectedIndex, write=FOnGetSelectedIndex
};
__property bool ShowButtons = {read=FShowButtons, write=SetButtonStyle, default=1};
__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
__property bool ShowLines = {read=FShowLines, write=SetLineStyle, default=1};
__property bool ShowRoot = {read=FShowRoot, write=SetRootStyle, default=1};
__property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, default=0};
__property int Indent = {read=GetIndent, write=SetIndent, nodefault};
__property TTreeNodes* Items = {read=FTreeNodes, write=SetTreeNodes, nodefault};
__property TSortType SortType = {read=FSortType, write=SetSortType, default=0};
__property bool HideSelection = {read=FHideSelection, write=SetHideSelection, default=1};
__property Controls::TImageList* Images = {read=FImages, write=SetImages, nodefault};
__property Controls::TImageList* StateImages = {read=FStateImages, write=SetStateImages, nodefault}
;
public:
__fastcall virtual TCustomTreeView(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomTreeView(void);
bool __fastcall AlphaSort(void);
bool __fastcall CustomSort(Commctrl::TTVCompare SortProc, long Data);
void __fastcall FullCollapse(void);
void __fastcall FullExpand(void);
THitTests __fastcall GetHitTestInfoAt(int X, int Y);
TTreeNode* __fastcall GetNodeAt(int X, int Y);
bool __fastcall IsEditing(void);
void __fastcall LoadFromFile(const System::AnsiString FileName);
void __fastcall LoadFromStream(Classes::TStream* Stream);
void __fastcall SaveToFile(const System::AnsiString FileName);
void __fastcall SaveToStream(Classes::TStream* Stream);
__property TTreeNode* DropTarget = {read=GetDropTarget, write=SetDropTarget, nodefault};
__property TTreeNode* Selected = {read=GetSelection, write=SetSelection, nodefault};
__property TTreeNode* TopItem = {read=GetTopItem, write=SetTopItem, nodefault};
public:
/* TWinControl.CreateParented */ __fastcall TCustomTreeView(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
};
class __declspec(pascalimplementation) TTreeNodes : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TCustomTreeView* FOwner;
int FUpdateCount;
void __fastcall AddedNode(TTreeNode* Value);
HWND __fastcall GetHandle(void);
TTreeNode* __fastcall GetNodeFromIndex(int Index);
void __fastcall ReadData(Classes::TStream* Stream);
void __fastcall Repaint(TTreeNode* Node);
void __fastcall WriteData(Classes::TStream* Stream);
protected:
Commctrl::HTreeItem __fastcall AddItem(Commctrl::HTreeItem Parent, Commctrl::HTreeItem Target, const
TV_ITEMA &Item, TAddMode AddMode);
TTreeNode* __fastcall InternalAddObject(TTreeNode* Node, const System::AnsiString S, void * Ptr, TAddMode
AddMode);
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
TV_ITEMA __fastcall CreateItem(TTreeNode* Node);
int __fastcall GetCount(void);
void __fastcall SetItem(int Index, TTreeNode* Value);
void __fastcall SetUpdateState(bool Updating);
public:
__fastcall TTreeNodes(TCustomTreeView* AOwner);
__fastcall virtual ~TTreeNodes(void);
TTreeNode* __fastcall AddChildFirst(TTreeNode* Node, const System::AnsiString S);
TTreeNode* __fastcall AddChild(TTreeNode* Node, const System::AnsiString S);
TTreeNode* __fastcall AddChildObjectFirst(TTreeNode* Node, const System::AnsiString S, void * Ptr);
TTreeNode* __fastcall AddChildObject(TTreeNode* Node, const System::AnsiString S, void * Ptr);
TTreeNode* __fastcall AddFirst(TTreeNode* Node, const System::AnsiString S);
TTreeNode* __fastcall Add(TTreeNode* Node, const System::AnsiString S);
TTreeNode* __fastcall AddObjectFirst(TTreeNode* Node, const System::AnsiString S, void * Ptr);
TTreeNode* __fastcall AddObject(TTreeNode* Node, const System::AnsiString S, void * Ptr);
virtual void __fastcall Assign(Classes::TPersistent* Source);
void __fastcall BeginUpdate(void);
void __fastcall Clear(void);
void __fastcall Delete(TTreeNode* Node);
void __fastcall EndUpdate(void);
TTreeNode* __fastcall GetFirstNode(void);
TTreeNode* __fastcall GetNode(Commctrl::HTreeItem ItemId);
TTreeNode* __fastcall Insert(TTreeNode* Node, const System::AnsiString S);
TTreeNode* __fastcall InsertObject(TTreeNode* Node, const System::AnsiString S, void * Ptr);
__property int Count = {read=GetCount, nodefault};
__property HWND Handle = {read=GetHandle, nodefault};
__property TTreeNode* Item[int Index] = {read=GetNodeFromIndex/*, default*/};
__property TCustomTreeView* Owner = {read=FOwner, nodefault};
};
class __declspec(pascalimplementation) TTreeNode : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TTreeNodes* FOwner;
System::AnsiString FText;
void *FData;
Commctrl::_TreeItem *FItemId;
int FImageIndex;
int FSelectedIndex;
int FOverlayIndex;
int FStateIndex;
bool FDeleting;
void __fastcall ExpandItem(bool Expand, bool Recurse);
int __fastcall GetAbsoluteIndex(void);
bool __fastcall GetExpanded(void);
int __fastcall GetLevel(void);
TTreeNode* __fastcall GetParent(void);
bool __fastcall GetChildren(void);
bool __fastcall GetCut(void);
bool __fastcall GetDropTarget(void);
bool __fastcall GetFocused(void);
int __fastcall GetIndex(void);
TTreeNode* __fastcall GetItem(int Index);
bool __fastcall GetSelected(void);
bool __fastcall GetState(TNodeState NodeState);
int __fastcall GetCount(void);
TCustomTreeView* __fastcall GetTreeView(void);
bool __fastcall HasVisibleParent(void);
void __fastcall InternalMove(TTreeNode* ParentNode, TTreeNode* Node, Commctrl::HTreeItem HItem, TAddMode
AddMode);
bool __fastcall IsEqual(TTreeNode* Node);
bool __fastcall IsNodeVisible(void);
void __fastcall ReadData(Classes::TStream* Stream, PNodeInfo Info);
void __fastcall SetChildren(bool Value);
void __fastcall SetCut(bool Value);
void __fastcall SetData(void * Value);
void __fastcall SetDropTarget(bool Value);
void __fastcall SetItem(int Index, TTreeNode* Value);
void __fastcall SetExpanded(bool Value);
void __fastcall SetFocused(bool Value);
void __fastcall SetImageIndex(int Value);
void __fastcall SetOverlayIndex(int Value);
void __fastcall SetSelectedIndex(int Value);
void __fastcall SetSelected(bool Value);
void __fastcall SetStateIndex(int Value);
void __fastcall SetText(const System::AnsiString S);
void __fastcall WriteData(Classes::TStream* Stream, PNodeInfo Info);
public:
__fastcall TTreeNode(TTreeNodes* AOwner);
__fastcall virtual ~TTreeNode(void);
bool __fastcall AlphaSort(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
void __fastcall Collapse(bool Recurse);
bool __fastcall CustomSort(Commctrl::TTVCompare SortProc, long Data);
void __fastcall Delete(void);
void __fastcall DeleteChildren(void);
Windows::TRect __fastcall DisplayRect(bool TextOnly);
bool __fastcall EditText(void);
void __fastcall EndEdit(bool Cancel);
void __fastcall Expand(bool Recurse);
TTreeNode* __fastcall getFirstChild(void);
HWND __fastcall GetHandle(void);
TTreeNode* __fastcall GetLastChild(void);
TTreeNode* __fastcall GetNext(void);
TTreeNode* __fastcall GetNextChild(TTreeNode* Value);
TTreeNode* __fastcall getNextSibling(void);
TTreeNode* __fastcall GetNextVisible(void);
TTreeNode* __fastcall GetPrev(void);
TTreeNode* __fastcall GetPrevChild(TTreeNode* Value);
TTreeNode* __fastcall getPrevSibling(void);
TTreeNode* __fastcall GetPrevVisible(void);
bool __fastcall HasAsParent(TTreeNode* Value);
int __fastcall IndexOf(TTreeNode* Value);
void __fastcall MakeVisible(void);
void __fastcall MoveTo(TTreeNode* Destination, TNodeAttachMode Mode);
__property int AbsoluteIndex = {read=GetAbsoluteIndex, nodefault};
__property int Count = {read=GetCount, nodefault};
__property bool Cut = {read=GetCut, write=SetCut, nodefault};
__property void * Data = {read=FData, write=SetData, nodefault};
__property bool Deleting = {read=FDeleting, nodefault};
__property bool Focused = {read=GetFocused, write=SetFocused, nodefault};
__property bool DropTarget = {read=GetDropTarget, write=SetDropTarget, nodefault};
__property bool Selected = {read=GetSelected, write=SetSelected, nodefault};
__property bool Expanded = {read=GetExpanded, write=SetExpanded, nodefault};
__property HWND Handle = {read=GetHandle, nodefault};
__property bool HasChildren = {read=GetChildren, write=SetChildren, nodefault};
__property int ImageIndex = {read=FImageIndex, write=SetImageIndex, nodefault};
__property int Index = {read=GetIndex, nodefault};
__property bool IsVisible = {read=IsNodeVisible, nodefault};
__property TTreeNode* Item[int Index] = {read=GetItem, write=SetItem/*, default*/};
__property Commctrl::HTreeItem ItemId = {read=FItemId, nodefault};
__property int Level = {read=GetLevel, nodefault};
__property int OverlayIndex = {read=FOverlayIndex, write=SetOverlayIndex, nodefault};
__property TTreeNodes* Owner = {read=FOwner, nodefault};
__property TTreeNode* Parent = {read=GetParent, nodefault};
__property int SelectedIndex = {read=FSelectedIndex, write=SetSelectedIndex, nodefault};
__property int StateIndex = {read=FStateIndex, write=SetStateIndex, nodefault};
__property System::AnsiString Text = {read=FText, write=SetText, nodefault};
__property TCustomTreeView* TreeView = {read=GetTreeView, nodefault};
};
class __declspec(delphiclass) ETreeViewError;
class __declspec(pascalimplementation) ETreeViewError : public Sysutils::Exception
{
typedef Sysutils::Exception inherited;
public:
/* Exception.Create */ __fastcall ETreeViewError(const System::AnsiString Msg) : Sysutils::Exception(
Msg) { }
/* Exception.CreateFmt */ __fastcall ETreeViewError(const System::AnsiString Msg, const System::TVarRec
* Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
/* Exception.CreateRes */ __fastcall ETreeViewError(int Ident) : Sysutils::Exception(Ident) { }
/* Exception.CreateResFmt */ __fastcall ETreeViewError(int Ident, const System::TVarRec * Args, const
int Args_Size) : Sysutils::Exception(Ident, Args, Args_Size) { }
/* Exception.CreateHelp */ __fastcall ETreeViewError(const System::AnsiString Msg, int AHelpContext
) : Sysutils::Exception(Msg, AHelpContext) { }
/* Exception.CreateFmtHelp */ __fastcall ETreeViewError(const System::AnsiString Msg, const System::TVarRec
* Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext
) { }
/* Exception.CreateResHelp */ __fastcall ETreeViewError(int Ident, int AHelpContext) : Sysutils::Exception(
Ident, AHelpContext) { }
/* Exception.CreateResFmtHelp */ __fastcall ETreeViewError(int Ident, const System::TVarRec * Args,
const int Args_Size, int AHelpContext) : Sysutils::Exception(Ident, Args, Args_Size, AHelpContext)
{ }
public:
/* TObject.Destroy */ __fastcall virtual ~ETreeViewError(void) { }
};
class __declspec(delphiclass) TTreeView;
class __declspec(pascalimplementation) TTreeView : public TCustomTreeView
{
typedef TCustomTreeView inherited;
__published:
__property ShowButtons ;
__property BorderStyle ;
__property DragCursor ;
__property ShowLines ;
__property ShowRoot ;
__property ReadOnly ;
__property DragMode ;
__property HideSelection ;
__property Indent ;
__property Items ;
__property OnEditing ;
__property OnEdited ;
__property OnExpanding ;
__property OnExpanded ;
__property OnCollapsing ;
__property OnCompare ;
__property OnCollapsed ;
__property OnChanging ;
__property OnChange ;
__property OnDeletion ;
__property OnGetImageIndex ;
__property OnGetSelectedIndex ;
__property Align ;
__property Enabled ;
__property Font ;
__property Color ;
__property ParentColor ;
__property ParentCtl3D ;
__property Ctl3D ;
__property SortType ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnEnter ;
__property OnExit ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnStartDrag ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnDblClick ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property PopupMenu ;
__property ParentFont ;
__property ParentShowHint ;
__property ShowHint ;
__property Images ;
__property StateImages ;
public:
/* TCustomTreeView.Create */ __fastcall virtual TTreeView(Classes::TComponent* AOwner) : Comctrls::
TCustomTreeView(AOwner) { }
/* TCustomTreeView.Destroy */ __fastcall virtual ~TTreeView(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TTreeView(HWND ParentWindow) : Comctrls::TCustomTreeView(
ParentWindow) { }
};
enum TTrackBarOrientation { trHorizontal, trVertical };
enum TTickMark { tmBottomRight, tmTopLeft, tmBoth };
enum TTickStyle { tsNone, tsAuto, tsManual };
class __declspec(delphiclass) TTrackBar;
class __declspec(pascalimplementation) TTrackBar : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
TTrackBarOrientation FOrientation;
TTickMark FTickMarks;
TTickStyle FTickStyle;
int FLineSize;
int FPageSize;
int FMin;
int FMax;
int FFrequency;
int FPosition;
int FSelStart;
int FSelEnd;
Classes::TNotifyEvent FOnChange;
void __fastcall SetOrientation(TTrackBarOrientation Value);
void __fastcall SetParams(int APosition, int AMin, int AMax);
void __fastcall SetPosition(int Value);
void __fastcall SetMin(int Value);
void __fastcall SetMax(int Value);
void __fastcall SetFrequency(int Value);
void __fastcall SetTickStyle(TTickStyle Value);
void __fastcall SetTickMarks(TTickMark Value);
void __fastcall SetLineSize(int Value);
void __fastcall SetPageSize(int Value);
void __fastcall SetSelStart(int Value);
void __fastcall SetSelEnd(int Value);
void __fastcall UpdateSelection(void);
MESSAGE void __fastcall CNHScroll(Messages::TWMScroll &Message);
MESSAGE void __fastcall CNVScroll(Messages::TWMScroll &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DestroyWnd(void);
public:
__fastcall virtual TTrackBar(Classes::TComponent* AOwner);
void __fastcall SetTick(int Value);
__published:
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property int LineSize = {read=FLineSize, write=SetLineSize, default=1};
__property int Max = {read=FMax, write=SetMax, default=10};
__property int Min = {read=FMin, write=SetMin, default=0};
__property TTrackBarOrientation Orientation = {read=FOrientation, write=SetOrientation, nodefault};
__property ParentCtl3D ;
__property ParentShowHint ;
__property int PageSize = {read=FPageSize, write=SetPageSize, default=2};
__property PopupMenu ;
__property int Frequency = {read=FFrequency, write=SetFrequency, nodefault};
__property int Position = {read=FPosition, write=SetPosition, nodefault};
__property int SelEnd = {read=FSelEnd, write=SetSelEnd, nodefault};
__property int SelStart = {read=FSelStart, write=SetSelStart, nodefault};
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property TTickMark TickMarks = {read=FTickMarks, write=SetTickMarks, nodefault};
__property TTickStyle TickStyle = {read=FTickStyle, write=SetTickStyle, nodefault};
__property Visible ;
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnStartDrag ;
public:
/* TWinControl.CreateParented */ __fastcall TTrackBar(HWND ParentWindow) : Controls::TWinControl(ParentWindow
) { }
/* TWinControl.Destroy */ __fastcall virtual ~TTrackBar(void) { }
};
typedef Word TProgressRange;
class __declspec(delphiclass) TProgressBar;
class __declspec(pascalimplementation) TProgressBar : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
TProgressRange FMin;
TProgressRange FMax;
TProgressRange FStep;
TProgressRange FPosition;
TProgressRange __fastcall GetPosition(void);
void __fastcall SetParams(TProgressRange AMin, TProgressRange AMax);
void __fastcall SetMin(TProgressRange Value);
void __fastcall SetMax(TProgressRange Value);
void __fastcall SetPosition(TProgressRange Value);
void __fastcall SetStep(TProgressRange Value);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
public:
__fastcall virtual TProgressBar(Classes::TComponent* AOwner);
void __fastcall StepIt(void);
void __fastcall StepBy(TProgressRange Delta);
__published:
__property Align ;
__property Enabled ;
__property Hint ;
__property TProgressRange Min = {read=FMin, write=SetMin, nodefault};
__property TProgressRange Max = {read=FMax, write=SetMax, nodefault};
__property ParentShowHint ;
__property PopupMenu ;
__property TProgressRange Position = {read=GetPosition, write=SetPosition, default=0};
__property TProgressRange Step = {read=FStep, write=SetStep, default=10};
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
public:
/* TWinControl.CreateParented */ __fastcall TProgressBar(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
/* TWinControl.Destroy */ __fastcall virtual ~TProgressBar(void) { }
};
enum TAttributeType { atSelected, atDefaultText };
enum TConsistentAttribute { caBold, caColor, caFace, caItalic, caSize, caStrikeOut, caUnderline, caProtected
};
typedef Set<TConsistentAttribute, caBold, caProtected> TConsistentAttributes;
class __declspec(delphiclass) TTextAttributes;
class __declspec(delphiclass) TCustomRichEdit;
class __declspec(delphiclass) TParaAttributes;
enum TNumberingStyle { nsNone, nsBullet };
class __declspec(pascalimplementation) TParaAttributes : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TCustomRichEdit* RichEdit;
void __fastcall GetAttributes(PARAFORMAT &Paragraph);
Classes::TAlignment __fastcall GetAlignment(void);
long __fastcall GetFirstIndent(void);
long __fastcall GetLeftIndent(void);
long __fastcall GetRightIndent(void);
TNumberingStyle __fastcall GetNumbering(void);
long __fastcall GetTab(Byte Index);
int __fastcall GetTabCount(void);
void __fastcall InitPara(PARAFORMAT &Paragraph);
void __fastcall SetAlignment(Classes::TAlignment Value);
void __fastcall SetAttributes(PARAFORMAT &Paragraph);
void __fastcall SetFirstIndent(long Value);
void __fastcall SetLeftIndent(long Value);
void __fastcall SetRightIndent(long Value);
void __fastcall SetNumbering(TNumberingStyle Value);
void __fastcall SetTab(Byte Index, long Value);
void __fastcall SetTabCount(int Value);
public:
__fastcall TParaAttributes(TCustomRichEdit* AOwner);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__property Classes::TAlignment Alignment = {read=GetAlignment, write=SetAlignment, nodefault};
__property long FirstIndent = {read=GetFirstIndent, write=SetFirstIndent, nodefault};
__property long LeftIndent = {read=GetLeftIndent, write=SetLeftIndent, nodefault};
__property TNumberingStyle Numbering = {read=GetNumbering, write=SetNumbering, nodefault};
__property long RightIndent = {read=GetRightIndent, write=SetRightIndent, nodefault};
__property long Tab[Byte Index] = {read=GetTab, write=SetTab};
__property int TabCount = {read=GetTabCount, write=SetTabCount, nodefault};
public:
/* TObject.Destroy */ __fastcall virtual ~TParaAttributes(void) { }
};
typedef System::TMetaClass*TConversionClass;
typedef void __fastcall (__closure *TRichEditResizeEvent)(System::TObject* Sender, const Windows::TRect
&Rect);
typedef void __fastcall (__closure *TRichEditProtectChange)(System::TObject* Sender, int StartPos, int
EndPos, bool &AllowChange);
typedef void __fastcall (__closure *TRichEditSaveClipboard)(System::TObject* Sender, int NumObjects,
int NumChars, bool &SaveClipboard);
enum TSearchType { stWholeWord, stMatchCase };
typedef Set<TSearchType, stWholeWord, stMatchCase> TSearchTypes;
class __declspec(pascalimplementation) TCustomRichEdit : public Stdctrls::TCustomMemo
{
typedef Stdctrls::TCustomMemo inherited;
private:
int FLibHandle;
bool FHideScrollBars;
TTextAttributes* FSelAttributes;
TTextAttributes* FDefAttributes;
TParaAttributes* FParagraph;
int FScreenLogPixels;
Classes::TStrings* FRichEditStrings;
Classes::TMemoryStream* FMemStream;
Classes::TNotifyEvent FOnSelChange;
bool FHideSelection;
bool FModified;
System::TMetaClass*FDefaultConverter;
TRichEditResizeEvent FOnResizeRequest;
TRichEditProtectChange FOnProtectChange;
TRichEditSaveClipboard FOnSaveClipboard;
Windows::TRect FPageRect;
HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
bool __fastcall GetPlainText(void);
bool __fastcall ProtectChange(int StartPos, int EndPos);
bool __fastcall SaveClipboard(int NumObj, int NumChars);
void __fastcall SetHideScrollBars(bool Value);
HIDESBASE void __fastcall SetHideSelection(bool Value);
void __fastcall SetPlainText(bool Value);
void __fastcall SetRichEditStrings(Classes::TStrings* Value);
void __fastcall SetDefAttributes(TTextAttributes* Value);
void __fastcall SetSelAttributes(TTextAttributes* Value);
HIDESBASE MESSAGE void __fastcall WMNCDestroy(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
HIDESBASE MESSAGE void __fastcall WMSetFont(Messages::TWMSetFont &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DestroyWnd(void);
virtual void __fastcall RequestSize(const Windows::TRect &Rect);
virtual void __fastcall SelectionChange(void);
__property bool HideSelection = {read=FHideSelection, write=SetHideSelection, default=1};
__property bool HideScrollBars = {read=FHideScrollBars, write=SetHideScrollBars, default=1};
__property Classes::TStrings* Lines = {read=FRichEditStrings, write=SetRichEditStrings, nodefault};
__property TRichEditSaveClipboard OnSaveClipboard = {read=FOnSaveClipboard, write=FOnSaveClipboard}
;
__property Classes::TNotifyEvent OnSelectionChange = {read=FOnSelChange, write=FOnSelChange};
__property TRichEditProtectChange OnProtectChange = {read=FOnProtectChange, write=FOnProtectChange}
;
__property TRichEditResizeEvent OnResizeRequest = {read=FOnResizeRequest, write=FOnResizeRequest};
__property bool PlainText = {read=GetPlainText, write=SetPlainText, default=0};
public:
__fastcall virtual TCustomRichEdit(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomRichEdit(void);
int __fastcall FindText(const System::AnsiString SearchStr, int StartPos, int Length, TSearchTypes
Options);
void __fastcall Print(const System::AnsiString Caption);
static /* class method */ void __fastcall RegisterConversionFormat(const System::TMetaClass* const vmt,
const System::AnsiString AExtension, System::TMetaClass* AConversionClass);
__property System::TMetaClass* DefaultConverter = {read=FDefaultConverter, write=FDefaultConverter,
nodefault};
__property TTextAttributes* DefAttributes = {read=FDefAttributes, write=SetDefAttributes, nodefault
};
__property TTextAttributes* SelAttributes = {read=FSelAttributes, write=SetSelAttributes, nodefault
};
__property Windows::TRect PageRect = {read=FPageRect, write=FPageRect};
__property TParaAttributes* Paragraph = {read=FParagraph, nodefault};
public:
/* TWinControl.CreateParented */ __fastcall TCustomRichEdit(HWND ParentWindow) : Stdctrls::TCustomMemo(
ParentWindow) { }
};
class __declspec(pascalimplementation) TTextAttributes : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TCustomRichEdit* RichEdit;
TAttributeType FType;
void __fastcall GetAttributes(CHARFORMAT &Format);
Graphics::TColor __fastcall GetColor(void);
TConsistentAttributes __fastcall GetConsistentAttributes(void);
int __fastcall GetHeight(void);
Graphics::TFontName __fastcall GetName(void);
Graphics::TFontPitch __fastcall GetPitch(void);
bool __fastcall GetProtected(void);
int __fastcall GetSize(void);
Graphics::TFontStyles __fastcall GetStyle(void);
void __fastcall SetAttributes(CHARFORMAT &Format);
void __fastcall SetColor(Graphics::TColor Value);
void __fastcall SetHeight(int Value);
void __fastcall SetName( Graphics::TFontName &Value);
void __fastcall SetPitch(Graphics::TFontPitch Value);
void __fastcall SetProtected(bool Value);
void __fastcall SetSize(int Value);
void __fastcall SetStyle(Graphics::TFontStyles Value);
protected:
void __fastcall InitFormat(CHARFORMAT &Format);
virtual void __fastcall AssignTo(Classes::TPersistent* Dest);
public:
__fastcall TTextAttributes(TCustomRichEdit* AOwner, TAttributeType AttributeType);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__property Graphics::TColor Color = {read=GetColor, write=SetColor, nodefault};
__property TConsistentAttributes ConsistentAttributes = {read=GetConsistentAttributes, nodefault};
__property Graphics::TFontName Name = {read=GetName, write=SetName};
__property Graphics::TFontPitch Pitch = {read=GetPitch, write=SetPitch, nodefault};
__property bool Protected = {read=GetProtected, write=SetProtected, nodefault};
__property int Size = {read=GetSize, write=SetSize, nodefault};
__property Graphics::TFontStyles Style = {read=GetStyle, write=SetStyle, nodefault};
__property int Height = {read=GetHeight, write=SetHeight, nodefault};
public:
/* TObject.Destroy */ __fastcall virtual ~TTextAttributes(void) { }
};
class __declspec(delphiclass) TConversion;
class __declspec(pascalimplementation) TConversion : public System::TObject
{
typedef System::TObject inherited;
public:
virtual int __fastcall ConvertReadStream(Classes::TStream* Stream, char * Buffer, int BufSize);
virtual int __fastcall ConvertWriteStream(Classes::TStream* Stream, char * Buffer, int BufSize);
public:
/* TObject.Create */ __fastcall TConversion(void) : System::TObject() { }
/* TObject.Destroy */ __fastcall virtual ~TConversion(void) { }
};
struct TConversionFormat;
typedef TConversionFormat *PConversionFormat;
struct TConversionFormat
{
System::TMetaClass*ConversionClass;
System::AnsiString Extension;
TConversionFormat *Next;
} ;
struct TRichEditStreamInfo
{
TConversion* Converter;
Classes::TStream* Stream;
} ;
typedef TRichEditStreamInfo *PRichEditStreamInfo;
class __declspec(delphiclass) TRichEdit;
class __declspec(pascalimplementation) TRichEdit : public TCustomRichEdit
{
typedef TCustomRichEdit inherited;
__published:
__property Align ;
__property Alignment ;
__property BorderStyle ;
__property Color ;
__property Ctl3D ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property HideSelection ;
__property HideScrollBars ;
__property ImeMode ;
__property ImeName ;
__property Lines ;
__property MaxLength ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property PlainText ;
__property PopupMenu ;
__property ReadOnly ;
__property ScrollBars ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property WantTabs ;
__property WantReturns ;
__property WordWrap ;
__property OnChange ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnResizeRequest ;
__property OnSelectionChange ;
__property OnStartDrag ;
__property OnProtectChange ;
__property OnSaveClipboard ;
public:
/* TCustomRichEdit.Create */ __fastcall virtual TRichEdit(Classes::TComponent* AOwner) : Comctrls::
TCustomRichEdit(AOwner) { }
/* TCustomRichEdit.Destroy */ __fastcall virtual ~TRichEdit(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TRichEdit(HWND ParentWindow) : Comctrls::TCustomRichEdit(
ParentWindow) { }
};
enum TUDAlignButton { udLeft, udRight };
enum TUDOrientation { udHorizontal, udVertical };
enum TUDBtnType { btNext, btPrev };
typedef void __fastcall (__closure *TUDClickEvent)(System::TObject* Sender, TUDBtnType Button);
typedef void __fastcall (__closure *TUDChangingEvent)(System::TObject* Sender, bool &AllowChange);
class __declspec(delphiclass) TCustomUpDown;
class __declspec(pascalimplementation) TCustomUpDown : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
bool FArrowKeys;
Controls::TWinControl* FAssociate;
short FMin;
short FMax;
int FIncrement;
short FPosition;
bool FThousands;
bool FWrap;
TUDClickEvent FOnClick;
TUDAlignButton FAlignButton;
TUDOrientation FOrientation;
TUDChangingEvent FOnChanging;
void __fastcall UndoAutoResizing(Controls::TWinControl* Value);
void __fastcall SetAssociate(Controls::TWinControl* Value);
short __fastcall GetPosition(void);
void __fastcall SetMin(short Value);
void __fastcall SetMax(short Value);
void __fastcall SetIncrement(int Value);
void __fastcall SetPosition(short Value);
void __fastcall SetAlignButton(TUDAlignButton Value);
void __fastcall SetOrientation(TUDOrientation Value);
void __fastcall SetArrowKeys(bool Value);
void __fastcall SetThousands(bool Value);
void __fastcall SetWrap(bool Value);
MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
HIDESBASE MESSAGE void __fastcall WMHScroll(Messages::TWMScroll &Message);
HIDESBASE MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &Message);
protected:
bool __fastcall CanChange(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
HIDESBASE virtual void __fastcall Click(TUDBtnType Button);
__property TUDAlignButton AlignButton = {read=FAlignButton, write=SetAlignButton, default=1};
__property bool ArrowKeys = {read=FArrowKeys, write=SetArrowKeys, default=1};
__property Controls::TWinControl* Associate = {read=FAssociate, write=SetAssociate, nodefault};
__property short Min = {read=FMin, write=SetMin, nodefault};
__property short Max = {read=FMax, write=SetMax, default=100};
__property int Increment = {read=FIncrement, write=SetIncrement, default=1};
__property TUDOrientation Orientation = {read=FOrientation, write=SetOrientation, default=1};
__property short Position = {read=GetPosition, write=SetPosition, nodefault};
__property bool Thousands = {read=FThousands, write=SetThousands, default=1};
__property bool Wrap = {read=FWrap, write=SetWrap, nodefault};
__property TUDChangingEvent OnChanging = {read=FOnChanging, write=FOnChanging};
__property TUDClickEvent OnClick = {read=FOnClick, write=FOnClick};
public:
__fastcall virtual TCustomUpDown(Classes::TComponent* AOwner);
public:
/* TWinControl.CreateParented */ __fastcall TCustomUpDown(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
/* TWinControl.Destroy */ __fastcall virtual ~TCustomUpDown(void) { }
};
class __declspec(delphiclass) TUpDown;
class __declspec(pascalimplementation) TUpDown : public TCustomUpDown
{
typedef TCustomUpDown inherited;
__published:
__property AlignButton ;
__property Associate ;
__property ArrowKeys ;
__property Enabled ;
__property Hint ;
__property Min ;
__property Max ;
__property Increment ;
__property Orientation ;
__property ParentShowHint ;
__property PopupMenu ;
__property Position ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Thousands ;
__property Visible ;
__property Wrap ;
__property OnChanging ;
__property OnClick ;
__property OnEnter ;
__property OnExit ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
public:
/* TCustomUpDown.Create */ __fastcall virtual TUpDown(Classes::TComponent* AOwner) : Comctrls::TCustomUpDown(
AOwner) { }
public:
/* TWinControl.CreateParented */ __fastcall TUpDown(HWND ParentWindow) : Comctrls::TCustomUpDown(ParentWindow
) { }
/* TWinControl.Destroy */ __fastcall virtual ~TUpDown(void) { }
};
enum THKModifier { hkShift, hkCtrl, hkAlt, hkExt };
typedef Set<THKModifier, hkShift, hkExt> THKModifiers;
enum THKInvalidKey { hcNone, hcShift, hcCtrl, hcAlt, hcShiftCtrl, hcShiftAlt, hcCtrlAlt, hcShiftCtrlAlt
};
typedef Set<THKInvalidKey, hcNone, hcShiftCtrlAlt> THKInvalidKeys;
class __declspec(delphiclass) TCustomHotKey;
class __declspec(pascalimplementation) TCustomHotKey : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
bool FAutoSize;
THKModifiers FModifiers;
THKInvalidKeys FInvalidKeys;
Word FHotKey;
Classes::TShiftState FShiftState;
void __fastcall AdjustHeight(void);
void __fastcall SetAutoSize(bool Value);
void __fastcall SetInvalidKeys(THKInvalidKeys Value);
void __fastcall SetModifiers(THKModifiers Value);
void __fastcall UpdateHeight(void);
Menus::TShortCut __fastcall GetHotKey(void);
void __fastcall SetHotKey(Menus::TShortCut Value);
void __fastcall ShortCutToHotKey(Menus::TShortCut Value);
Menus::TShortCut __fastcall HotKeyToShortCut(long Value);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
__property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=1};
__property THKInvalidKeys InvalidKeys = {read=FInvalidKeys, write=SetInvalidKeys, nodefault};
__property THKModifiers Modifiers = {read=FModifiers, write=SetModifiers, nodefault};
__property Menus::TShortCut HotKey = {read=GetHotKey, write=SetHotKey, nodefault};
__property TabStop ;
public:
__fastcall virtual TCustomHotKey(Classes::TComponent* AOwner);
public:
/* TWinControl.CreateParented */ __fastcall TCustomHotKey(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
/* TWinControl.Destroy */ __fastcall virtual ~TCustomHotKey(void) { }
};
class __declspec(delphiclass) THotKey;
class __declspec(pascalimplementation) THotKey : public TCustomHotKey
{
typedef TCustomHotKey inherited;
__published:
__property AutoSize ;
__property Enabled ;
__property Hint ;
__property HotKey ;
__property InvalidKeys ;
__property Modifiers ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnEnter ;
__property OnExit ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
public:
/* TCustomHotKey.Create */ __fastcall virtual THotKey(Classes::TComponent* AOwner) : Comctrls::TCustomHotKey(
AOwner) { }
public:
/* TWinControl.CreateParented */ __fastcall THotKey(HWND ParentWindow) : Comctrls::TCustomHotKey(ParentWindow
) { }
/* TWinControl.Destroy */ __fastcall virtual ~THotKey(void) { }
};
typedef int TWidth;
class __declspec(delphiclass) TListColumn;
class __declspec(pascalimplementation) TListColumn : public Classes::TCollectionItem
{
typedef Classes::TCollectionItem inherited;
private:
System::AnsiString FCaption;
TAlignment FAlignment;
TWidth FWidth;
void __fastcall DoChange(void);
TWidth __fastcall GetWidth(void);
void __fastcall ReadData(Classes::TReader* Reader);
void __fastcall SetAlignment(Classes::TAlignment Value);
void __fastcall SetCaption(const System::AnsiString Value);
void __fastcall SetWidth(TWidth Value);
void __fastcall WriteData(Classes::TWriter* Writer);
protected:
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
public:
__fastcall virtual TListColumn(Classes::TCollection* Collection);
__fastcall virtual ~TListColumn(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
__property TWidth WidthType = {read=FWidth, nodefault};
__published:
__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=0};
__property System::AnsiString Caption = {read=FCaption, write=SetCaption, nodefault};
__property TWidth Width = {read=GetWidth, write=SetWidth, default=50};
};
class __declspec(delphiclass) TListColumns;
class __declspec(delphiclass) TCustomListView;
enum TViewStyle { vsIcon, vsSmallIcon, vsList, vsReport };
class __declspec(delphiclass) TListItems;
class __declspec(delphiclass) TListItem;
class __declspec(pascalimplementation) TListItems : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TCustomListView* FOwner;
int FUpdateCount;
bool FNoRedraw;
void __fastcall ReadData(Classes::TStream* Stream);
void __fastcall WriteData(Classes::TStream* Stream);
protected:
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
LV_ITEMA __fastcall CreateItem(int Index, TListItem* ListItem);
int __fastcall GetCount(void);
HWND __fastcall GetHandle(void);
TListItem* __fastcall GetItem(int Index);
void __fastcall SetItem(int Index, TListItem* Value);
void __fastcall SetUpdateState(bool Updating);
public:
__fastcall TListItems(TCustomListView* AOwner);
__fastcall virtual ~TListItems(void);
TListItem* __fastcall Add(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
void __fastcall BeginUpdate(void);
void __fastcall Clear(void);
void __fastcall Delete(int Index);
void __fastcall EndUpdate(void);
int __fastcall IndexOf(TListItem* Value);
TListItem* __fastcall Insert(int Index);
__property int Count = {read=GetCount, nodefault};
__property HWND Handle = {read=GetHandle, nodefault};
__property TListItem* Item[int Index] = {read=GetItem, write=SetItem/*, default*/};
__property TCustomListView* Owner = {read=FOwner, nodefault};
};
class __declspec(delphiclass) TIconOptions;
enum TIconArrangement { iaTop, iaLeft };
class __declspec(pascalimplementation) TIconOptions : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TCustomListView* FListView;
TIconArrangement FArrangement;
bool FAutoArrange;
bool FWrapText;
void __fastcall SetArrangement(TIconArrangement Value);
void __fastcall SetAutoArrange(bool Value);
void __fastcall SetWrapText(bool Value);
public:
__fastcall TIconOptions(TCustomListView* AOwner);
__published:
__property TIconArrangement Arrangement = {read=FArrangement, write=SetArrangement, default=0};
__property bool AutoArrange = {read=FAutoArrange, write=SetAutoArrange, default=0};
__property bool WrapText = {read=FWrapText, write=SetWrapText, default=1};
public:
/* TObject.Destroy */ __fastcall virtual ~TIconOptions(void) { }
};
enum TItemChange { ctText, ctImage, ctState };
typedef void __fastcall (__closure *TLVChangeEvent)(System::TObject* Sender, TListItem* Item, TItemChange
Change);
typedef void __fastcall (__closure *TLVChangingEvent)(System::TObject* Sender, TListItem* Item, TItemChange
Change, bool &AllowChange);
typedef void __fastcall (__closure *TLVColumnClickEvent)(System::TObject* Sender, TListColumn* Column
);
typedef void __fastcall (__closure *TLVDeletedEvent)(System::TObject* Sender, TListItem* Item);
typedef void __fastcall (__closure *TLVEditingEvent)(System::TObject* Sender, TListItem* Item, bool
&AllowEdit);
typedef void __fastcall (__closure *TLVEditedEvent)(System::TObject* Sender, TListItem* Item, System::AnsiString &
S);
typedef void __fastcall (__closure *TLVCompareEvent)(System::TObject* Sender, TListItem* Item1, TListItem*
Item2, int Data, int &Compare);
enum TListArrangement { arAlignBottom, arAlignLeft, arAlignRight, arAlignTop, arDefault, arSnapToGrid
};
enum TSearchDirection { sdLeft, sdRight, sdAbove, sdBelow, sdAll };
enum TItemState { isNone, isCut, isDropHilited, isFocused, isSelected };
typedef Set<TItemState, isNone, isSelected> TItemStates;
class __declspec(pascalimplementation) TCustomListView : public Controls::TWinControl
{
typedef Controls::TWinControl inherited;
private:
TFormBorderStyle FBorderStyle;
TViewStyle FViewStyle;
bool FReadOnly;
Controls::TImageList* FLargeImages;
Controls::TImageList* FSmallImages;
Controls::TImageList* FStateImages;
Controls::TImageList* FDragImage;
bool FShareImages;
bool FMultiSelect;
TSortType FSortType;
bool FColumnClick;
bool FShowColumnHeaders;
TListItems* FListItems;
bool FClicked;
bool FRClicked;
TIconOptions* FIconOptions;
bool FHideSelection;
TListColumns* FListColumns;
Classes::TMemoryStream* FMemStream;
void *FEditInstance;
void *FDefEditProc;
HWND FEditHandle;
void *FHeaderInstance;
void *FDefHeaderProc;
HWND FHeaderHandle;
int FAllocBy;
int FDragIndex;
TListItem* FLastDropTarget;
Controls::TChangeLink* FLargeChangeLink;
Controls::TChangeLink* FSmallChangeLink;
Controls::TChangeLink* FStateChangeLink;
TLVChangeEvent FOnChange;
TLVChangingEvent FOnChanging;
TLVColumnClickEvent FOnColumnClick;
TLVDeletedEvent FOnDeletion;
TLVEditingEvent FOnEditing;
TLVEditedEvent FOnEdited;
TLVDeletedEvent FOnInsert;
TLVCompareEvent FOnCompare;
HIDESBASE MESSAGE void __fastcall CMColorChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMDrag(Controls::TCMDrag &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CNNotify(Messages::TWMNotify &Message);
void __fastcall DoDragOver(Controls::TDragObject* Source, int X, int Y);
void __fastcall EditWndProc(Messages::TMessage &Message);
Windows::TRect __fastcall GetBoundingRect(void);
TListColumn* __fastcall GetColumnFromIndex(int Index);
TListItem* __fastcall GetDropTarget(void);
TListItem* __fastcall GetFocused(void);
TListItem* __fastcall GetItem(const LV_ITEMA &Value);
int __fastcall GetSelCount(void);
TListItem* __fastcall GetSelection(void);
TListItem* __fastcall GetTopItem(void);
POINT __fastcall GetViewOrigin(void);
int __fastcall GetVisibleRowCount(void);
void __fastcall HeaderWndProc(Messages::TMessage &Message);
void __fastcall ImageListChange(System::TObject* Sender);
virtual void __fastcall InsertItem(TListItem* Item);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall SetColumnClick(bool Value);
void __fastcall SetColumnHeaders(bool Value);
void __fastcall SetDropTarget(TListItem* Value);
void __fastcall SetFocused(TListItem* Value);
void __fastcall SetHideSelection(bool Value);
void __fastcall SetIconArrangement(TIconArrangement Value);
void __fastcall SetIconOptions(TIconOptions* Value);
void __fastcall SetImageList(int Value, int Flags);
void __fastcall SetLargeImages(Controls::TImageList* Value);
void __fastcall SetAllocBy(int Value);
void __fastcall SetItems(TListItems* Value);
void __fastcall SetListColumns(TListColumns* Value);
void __fastcall SetMultiSelect(bool Value);
void __fastcall SetReadOnly(bool Value);
void __fastcall SetSmallImages(Controls::TImageList* Value);
void __fastcall SetSortType(TSortType Value);
void __fastcall SetSelection(TListItem* Value);
void __fastcall SetStateImages(Controls::TImageList* Value);
void __fastcall SetTextBkColor(Graphics::TColor Value);
void __fastcall SetTextColor(Graphics::TColor Value);
void __fastcall SetViewStyle(TViewStyle Value);
bool __fastcall ValidHeaderHandle(void);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMNotify(Messages::TWMNotify &Message);
HIDESBASE MESSAGE void __fastcall WMParentNotify(Messages::TWMParentNotify &Message);
HIDESBASE MESSAGE void __fastcall WMRButtonDown(Messages::TWMMouse &Message);
protected:
virtual bool __fastcall CanChange(TListItem* Item, int Change);
virtual bool __fastcall CanEdit(TListItem* Item);
virtual void __fastcall Change(TListItem* Item, int Change);
virtual void __fastcall ColClick(TListColumn* Column);
bool __fastcall ColumnsShowing(void);
virtual TListItem* __fastcall CreateListItem(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall Delete(TListItem* Item);
virtual void __fastcall DestroyWnd(void);
HIDESBASE virtual void __fastcall DoEndDrag(System::TObject* Target, int X, int Y);
virtual void __fastcall DoStartDrag(Controls::TDragObject* &DragObject);
virtual void __fastcall Edit(const LV_ITEMA &Item);
virtual Controls::TCustomImageList* __fastcall GetDragImages(void);
int __fastcall GetItemIndex(TListItem* Value);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
void __fastcall UpdateColumn(int Index);
void __fastcall UpdateColumns(void);
virtual void __fastcall WndProc(Messages::TMessage &Message);
__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
__property TListColumns* Columns = {read=FListColumns, write=SetListColumns, nodefault};
__property bool ColumnClick = {read=FColumnClick, write=SetColumnClick, default=1};
__property bool ReadOnly = {read=FReadOnly, write=SetReadOnly, nodefault};
__property bool HideSelection = {read=FHideSelection, write=SetHideSelection, default=1};
__property TIconOptions* IconOptions = {read=FIconOptions, write=SetIconOptions, nodefault};
__property TListItems* Items = {read=FListItems, write=SetItems, nodefault};
__property int AllocBy = {read=FAllocBy, write=SetAllocBy, default=0};
__property Controls::TImageList* LargeImages = {read=FLargeImages, write=SetLargeImages, nodefault}
;
__property bool MultiSelect = {read=FMultiSelect, write=SetMultiSelect, default=0};
__property TLVChangeEvent OnChange = {read=FOnChange, write=FOnChange};
__property TLVChangingEvent OnChanging = {read=FOnChanging, write=FOnChanging};
__property TLVColumnClickEvent OnColumnClick = {read=FOnColumnClick, write=FOnColumnClick};
__property TLVCompareEvent OnCompare = {read=FOnCompare, write=FOnCompare};
__property TLVDeletedEvent OnDeletion = {read=FOnDeletion, write=FOnDeletion};
__property TLVEditedEvent OnEdited = {read=FOnEdited, write=FOnEdited};
__property TLVEditingEvent OnEditing = {read=FOnEditing, write=FOnEditing};
__property TLVDeletedEvent OnInsert = {read=FOnInsert, write=FOnInsert};
__property bool ShowColumnHeaders = {read=FShowColumnHeaders, write=SetColumnHeaders, default=1};
__property Controls::TImageList* SmallImages = {read=FSmallImages, write=SetSmallImages, nodefault}
;
__property TSortType SortType = {read=FSortType, write=SetSortType, default=0};
__property Controls::TImageList* StateImages = {read=FStateImages, write=SetStateImages, nodefault}
;
__property TViewStyle ViewStyle = {read=FViewStyle, write=SetViewStyle, default=0};
public:
__fastcall virtual TCustomListView(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomListView(void);
bool __fastcall AlphaSort(void);
void __fastcall Arrange(TListArrangement Code);
TListItem* __fastcall FindCaption(int StartIndex, System::AnsiString Value, bool Partial, bool Inclusive
, bool Wrap);
TListItem* __fastcall FindData(int StartIndex, void * Value, bool Inclusive, bool Wrap);
TListItem* __fastcall GetItemAt(int X, int Y);
TListItem* __fastcall GetNearestItem(const POINT &Point, TSearchDirection Direction);
TListItem* __fastcall GetNextItem(TListItem* StartItem, TSearchDirection Direction, TItemStates States
);
System::AnsiString __fastcall GetSearchString(void);
bool __fastcall IsEditing(void);
void __fastcall Scroll(int DX, int DY);
__property TListColumn* Column[int Index] = {read=GetColumnFromIndex};
__property TListItem* DropTarget = {read=GetDropTarget, write=SetDropTarget, nodefault};
__property TListItem* ItemFocused = {read=GetFocused, write=SetFocused, nodefault};
__property int SelCount = {read=GetSelCount, nodefault};
__property TListItem* Selected = {read=GetSelection, write=SetSelection, nodefault};
bool __fastcall CustomSort(Commctrl::TLVCompare SortProc, long lParam);
int __fastcall StringWidth( System::AnsiString S);
void __fastcall UpdateItems(int FirstIndex, int LastIndex);
__property TListItem* TopItem = {read=GetTopItem, nodefault};
__property POINT ViewOrigin = {read=GetViewOrigin};
__property int VisibleRowCount = {read=GetVisibleRowCount, nodefault};
__property Windows::TRect BoundingRect = {read=GetBoundingRect};
public:
/* TWinControl.CreateParented */ __fastcall TCustomListView(HWND ParentWindow) : Controls::TWinControl(
ParentWindow) { }
};
class __declspec(pascalimplementation) TListColumns : public Classes::TCollection
{
typedef Classes::TCollection inherited;
private:
TCustomListView* FOwner;
HIDESBASE TListColumn* __fastcall GetItem(int Index);
HIDESBASE void __fastcall SetItem(int Index, TListColumn* Value);
protected:
virtual void __fastcall Update(Classes::TCollectionItem* Item);
public:
__fastcall TListColumns(TCustomListView* AOwner);
HIDESBASE TListColumn* __fastcall Add(void);
__property TCustomListView* Owner = {read=FOwner, nodefault};
__property TListColumn* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
public:
/* TCollection.Destroy */ __fastcall virtual ~TListColumns(void) { }
};
enum TDisplayCode { drBounds, drIcon, drLabel, drSelectBounds };
class __declspec(pascalimplementation) TListItem : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
TListItems* FOwner;
Classes::TStrings* FSubItems;
void *FData;
int FImageIndex;
int FOverlayIndex;
int FStateIndex;
System::AnsiString FCaption;
bool FDeleting;
bool FProcessedDeleting;
HWND __fastcall GetHandle(void);
int __fastcall GetIndex(void);
TCustomListView* __fastcall GetListView(void);
int __fastcall GetLeft(void);
bool __fastcall GetState(int Index);
int __fastcall GetTop(void);
bool __fastcall IsEqual(TListItem* Item);
void __fastcall SetCaption(const System::AnsiString Value);
void __fastcall SetData(void * Value);
void __fastcall SetImage(int Index, int Value);
void __fastcall SetLeft(int Value);
void __fastcall SetState(int Index, bool State);
void __fastcall SetSubItems(Classes::TStrings* Value);
void __fastcall SetTop(int Value);
protected:
virtual void __fastcall Assign(Classes::TPersistent* Source);
public:
__fastcall TListItem(TListItems* AOwner);
__fastcall virtual ~TListItem(void);
void __fastcall CancelEdit(void);
void __fastcall Delete(void);
Windows::TRect __fastcall DisplayRect(TDisplayCode Code);
bool __fastcall EditCaption(void);
POINT __fastcall GetPosition(void);
void __fastcall MakeVisible(bool PartialOK);
void __fastcall Update(void);
void __fastcall SetPosition(const POINT &Value);
__property System::AnsiString Caption = {read=FCaption, write=SetCaption, nodefault};
__property bool Cut = {read=GetState, write=SetState, index=0, nodefault};
__property void * Data = {read=FData, write=SetData, nodefault};
__property bool DropTarget = {read=GetState, write=SetState, index=1, nodefault};
__property bool Focused = {read=GetState, write=SetState, index=2, nodefault};
__property HWND Handle = {read=GetHandle, nodefault};
__property int ImageIndex = {read=FImageIndex, write=SetImage, index=0, nodefault};
__property int Index = {read=GetIndex, nodefault};
__property int Left = {read=GetLeft, write=SetLeft, nodefault};
__property TCustomListView* ListView = {read=GetListView, nodefault};
__property TListItems* Owner = {read=FOwner, nodefault};
__property int OverlayIndex = {read=FOverlayIndex, write=SetImage, index=1, nodefault};
__property bool Selected = {read=GetState, write=SetState, index=3, nodefault};
__property int StateIndex = {read=FStateIndex, write=SetImage, index=2, nodefault};
__property Classes::TStrings* SubItems = {read=FSubItems, write=SetSubItems, nodefault};
__property int Top = {read=GetTop, write=SetTop, nodefault};
};
class __declspec(delphiclass) TListView;
class __declspec(pascalimplementation) TListView : public TCustomListView
{
typedef TCustomListView inherited;
__published:
__property Align ;
__property BorderStyle ;
__property Color ;
__property ColumnClick ;
__property OnClick ;
__property OnDblClick ;
__property Columns ;
__property Ctl3D ;
__property DragMode ;
__property ReadOnly ;
__property Font ;
__property HideSelection ;
__property IconOptions ;
__property Items ;
__property AllocBy ;
__property MultiSelect ;
__property OnChange ;
__property OnChanging ;
__property OnColumnClick ;
__property OnCompare ;
__property OnDeletion ;
__property OnEdited ;
__property OnEditing ;
__property OnEnter ;
__property OnExit ;
__property OnInsert ;
__property OnDragDrop ;
__property OnDragOver ;
__property DragCursor ;
__property OnStartDrag ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property ParentShowHint ;
__property ShowHint ;
__property PopupMenu ;
__property ShowColumnHeaders ;
__property SortType ;
__property TabOrder ;
__property TabStop ;
__property ViewStyle ;
__property Visible ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property LargeImages ;
__property SmallImages ;
__property StateImages ;
public:
/* TCustomListView.Create */ __fastcall virtual TListView(Classes::TComponent* AOwner) : Comctrls::
TCustomListView(AOwner) { }
/* TCustomListView.Destroy */ __fastcall virtual ~TListView(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TListView(HWND ParentWindow) : Comctrls::TCustomListView(
ParentWindow) { }
};
//-- var, const, procedure ---------------------------------------------------
#define ColumnHeaderWidth (Shortint)(-2)
#define ColumnTextWidth (Shortint)(-1)
//-- template instantiations -------------------------------------------------
template class TItemStates ;
template class Classes::TShiftState ;
template class THKInvalidKeys ;
template class THKModifiers ;
template class TSearchTypes ;
template class TConsistentAttributes ;
template class THitTests ;
template class SmallString<255> ;
} /* namespace Comctrls */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Comctrls;
#endif
//-- end unit ----------------------------------------------------------------
#endif // ComCtrls