📄 slstbox.hpp
字号:
// CodeGear C++ Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Slstbox.pas' rev: 11.00
#ifndef SlstboxHPP
#define SlstboxHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <Sysinit.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <Stdctrls.hpp> // Pascal unit
#include <Extctrls.hpp> // Pascal unit
#include <Comctrls.hpp> // Pascal unit
#include <Shellapi.hpp> // Pascal unit
#include <Richedit.hpp> // Pascal unit
#include <Inifiles.hpp> // Pascal unit
#include <Picturecontainer.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Slstbox
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS ESectionListBoxError;
class PASCALIMPLEMENTATION ESectionListBoxError : public Sysutils::Exception
{
typedef Sysutils::Exception inherited;
public:
#pragma option push -w-inl
/* Exception.Create */ inline __fastcall ESectionListBoxError(const AnsiString Msg) : Sysutils::Exception(Msg) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateFmt */ inline __fastcall ESectionListBoxError(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateRes */ inline __fastcall ESectionListBoxError(int Ident)/* overload */ : Sysutils::Exception(Ident) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateResFmt */ inline __fastcall ESectionListBoxError(int Ident, System::TVarRec const * Args, const int Args_Size)/* overload */ : Sysutils::Exception(Ident, Args, Args_Size) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateHelp */ inline __fastcall ESectionListBoxError(const AnsiString Msg, int AHelpContext) : Sysutils::Exception(Msg, AHelpContext) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateFmtHelp */ inline __fastcall ESectionListBoxError(const AnsiString Msg, System::TVarRec const * Args, const int Args_Size, int AHelpContext) : Sysutils::Exception(Msg, Args, Args_Size, AHelpContext) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateResHelp */ inline __fastcall ESectionListBoxError(int Ident, int AHelpContext)/* overload */ : Sysutils::Exception(Ident, AHelpContext) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateResFmtHelp */ inline __fastcall ESectionListBoxError(System::PResStringRec ResStringRec, System::TVarRec const * Args, const int Args_Size, int AHelpContext)/* overload */ : Sysutils::Exception(ResStringRec, Args, Args_Size, AHelpContext) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TObject.Destroy */ inline __fastcall virtual ~ESectionListBoxError(void) { }
#pragma option pop
};
#pragma option push -b-
enum TListNodeType { lnFlat, ln3D, lnGlyph };
#pragma option pop
#pragma option push -b-
enum TSListScrollStyle { slsNormal, slsFlat, slsEncarta };
#pragma option pop
#pragma option push -b-
enum TListSectionState { lssExpanded, lssContracted };
#pragma option pop
#pragma option push -b-
enum TActiveSection { asFull, asNodeOnly };
#pragma option pop
#pragma option push -b-
enum TSectionFocus { sfDash, sf3D, sfNone };
#pragma option pop
#pragma option push -b-
enum TSectionLines { slNone, slVertical, slHorizontal, slBoth };
#pragma option pop
#pragma option push -b-
enum TSectionControlType { scText, scCheckbox, scRadiobutton };
#pragma option pop
#pragma option push -b-
enum TSortDirection { sdNone, sdAscending, sdDescending };
#pragma option pop
#pragma option push -b-
enum TFontUsage { fuSubItems, fuSection, fuBoth };
#pragma option pop
#pragma option push -b-
enum TVAlignment { vtaCenter, vtaTop, vtaBottom };
#pragma option pop
typedef void __fastcall (__closure *TExpandSectionEvent)(System::TObject* Sender, int SectionIdx);
typedef void __fastcall (__closure *TContractSectionEvent)(System::TObject* Sender, int SectionIdx);
typedef void __fastcall (__closure *TSubItemClickEvent)(System::TObject* Sender, int SectionIdx, int subitemidx);
typedef void __fastcall (__closure *TInsertSubItemEvent)(System::TObject* Sender, int SectionIdx, int subitemidx, AnsiString &subitem);
class DELPHICLASS TListSection;
typedef void __fastcall (__closure *TInsertSectionEvent)(System::TObject* Sender, int SectionIdx, TListSection* section);
typedef void __fastcall (__closure *TDeleteSubItemEvent)(System::TObject* Sender, int SectionIdx, int subitemidx, bool &allow);
typedef void __fastcall (__closure *TDeleteSectionEvent)(System::TObject* Sender, int SectionIdx, bool &allow);
typedef void __fastcall (__closure *TDrawItemEvent)(System::TObject* Sender, TListSection* section, int SectionIdx, int subitemidx, Graphics::TCanvas* Canvas, const Types::TRect &arect, Windows::TOwnerDrawState astate);
typedef void __fastcall (__closure *TDrawItemPropEvent)(System::TObject* Sender, TListSection* section, int SectionIdx, int subitemidx, Graphics::TCanvas* Canvas);
typedef void __fastcall (__closure *TEditEvent)(System::TObject* Sender, int SectionIdx, int subitemidx, AnsiString &s);
typedef void __fastcall (__closure *TAnchorClick)(System::TObject* Sender, int index, AnsiString anchor);
typedef void __fastcall (__closure *TAnchorEvent)(System::TObject* Sender, int index, AnsiString anchor);
class DELPHICLASS TSectionListStrings;
class PASCALIMPLEMENTATION TSectionListStrings : public Classes::TStringList
{
typedef Classes::TStringList inherited;
private:
TListSection* FListSection;
public:
virtual int __fastcall Add(const AnsiString S);
virtual void __fastcall Clear(void);
virtual void __fastcall Delete(int Index);
virtual void __fastcall Insert(int Index, const AnsiString S);
virtual void __fastcall InsertObject(int Index, const AnsiString S, System::TObject* AObject);
__property OnChange ;
public:
#pragma option push -w-inl
/* TStringList.Destroy */ inline __fastcall virtual ~TSectionListStrings(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TObject.Create */ inline __fastcall TSectionListStrings(void) : Classes::TStringList() { }
#pragma option pop
};
class PASCALIMPLEMENTATION TListSection : public Classes::TCollectionItem
{
typedef Classes::TCollectionItem inherited;
private:
Classes::TAlignment FAlignment;
TVAlignment FVAlignment;
bool FAutoEdit;
bool FAutoSize;
AnsiString FCaption;
bool FFixed;
Classes::TStringList* FSubItems;
TListSectionState FState;
Graphics::TColor FColor;
int FImageIndex;
TSectionLines FLines;
Graphics::TFont* FFont;
TFontUsage FFontUsage;
bool FEndEllipsis;
TSectionControlType FControlType;
int FRadioIndex;
TSortDirection FSortDirection;
bool FSortShow;
int FTag;
bool FOwnerdraw;
bool FReadOnly;
int FItemHeight;
void __fastcall SetAlignment(const Classes::TAlignment value);
void __fastcall SetVAlignment(const TVAlignment value);
void __fastcall SetAutoSize(const bool value);
void __fastcall SetCaption(const AnsiString Value);
void __fastcall SetColor(const Graphics::TColor Value);
void __fastcall SetFont(Graphics::TFont* value);
void __fastcall SetImageIndex(const int Value);
void __fastcall SetLines(const TSectionLines Value);
void __fastcall SetFixed(const bool value);
void __fastcall SetState(const TListSectionState value);
void __fastcall SetSubItems(const Classes::TStringList* Value);
void __fastcall AddSubItems(const AnsiString S);
void __fastcall ClearSubItems(void);
void __fastcall DeleteSubItems(int Index);
void __fastcall InsertSubItems(int Index, const AnsiString S);
short __fastcall GetSubItemImageIdx(int i);
void __fastcall SetSubItemImageIdx(int i, const short Value);
bool __fastcall GetSubItemCheckState(int i);
void __fastcall SetSubItemCheckState(int i, const bool Value);
void __fastcall FontChanged(System::TObject* Sender);
void __fastcall SubItemsChanged(System::TObject* Sender);
void __fastcall SetFontUsage(TFontUsage value);
void __fastcall SetEndEllipsis(bool value);
void __fastcall SetRadioIndex(int value);
void __fastcall SetControlType(TSectionControlType value);
void __fastcall SetSortDirection(TSortDirection value);
void __fastcall SetSortShow(bool value);
void __fastcall SetOwnerDraw(bool value);
void __fastcall SetReadOnly(bool value);
void __fastcall SetItemHeight(int value);
void __fastcall QuickSortItems(int left, int right);
protected:
virtual AnsiString __fastcall GetDisplayName();
public:
__fastcall virtual TListSection(Classes::TCollection* Collection);
__fastcall virtual ~TListSection(void);
virtual void __fastcall Assign(Classes::TPersistent* source);
__property short SubItemImageIdx[int i] = {read=GetSubItemImageIdx, write=SetSubItemImageIdx};
__property bool SubItemCheckState[int i] = {read=GetSubItemCheckState, write=SetSubItemCheckState};
void __fastcall SortSubItems(void);
void __fastcall Focus(void);
__published:
__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, nodefault};
__property TVAlignment VAlignment = {read=FVAlignment, write=SetVAlignment, nodefault};
__property bool AutoEdit = {read=FAutoEdit, write=FAutoEdit, nodefault};
__property bool AutoSize = {read=FAutoSize, write=SetAutoSize, nodefault};
__property AnsiString Caption = {read=FCaption, write=SetCaption};
__property bool Fixed = {read=FFixed, write=SetFixed, nodefault};
__property int ImageIndex = {read=FImageIndex, write=SetImageIndex, nodefault};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -