📄 htmlistb.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'HTMListB.pas' rev: 5.00
#ifndef HTMListBHPP
#define HTMListBHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <PictureContainer.hpp> // Pascal unit
#include <ActiveX.hpp> // Pascal unit
#include <ComObj.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Htmlistb
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS EHTMListBoxError;
class PASCALIMPLEMENTATION EHTMListBoxError : public Sysutils::Exception
{
typedef Sysutils::Exception inherited;
public:
#pragma option push -w-inl
/* Exception.Create */ inline __fastcall EHTMListBoxError(const AnsiString Msg) : Sysutils::Exception(
Msg) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateFmt */ inline __fastcall EHTMListBoxError(const AnsiString Msg, const System::TVarRec
* Args, const int Args_Size) : Sysutils::Exception(Msg, Args, Args_Size) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateRes */ inline __fastcall EHTMListBoxError(int Ident)/* overload */ : Sysutils::Exception(
Ident) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateResFmt */ inline __fastcall EHTMListBoxError(int Ident, const System::TVarRec *
Args, const int Args_Size)/* overload */ : Sysutils::Exception(Ident, Args, Args_Size) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateHelp */ inline __fastcall EHTMListBoxError(const AnsiString Msg, int AHelpContext
) : Sysutils::Exception(Msg, AHelpContext) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateFmtHelp */ inline __fastcall EHTMListBoxError(const AnsiString Msg, const System::TVarRec
* 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 EHTMListBoxError(int Ident, int AHelpContext)/* overload */
: Sysutils::Exception(Ident, AHelpContext) { }
#pragma option pop
#pragma option push -w-inl
/* Exception.CreateResFmtHelp */ inline __fastcall EHTMListBoxError(System::PResStringRec ResStringRec
, const System::TVarRec * 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 ~EHTMListBoxError(void) { }
#pragma option pop
};
typedef void __fastcall (__closure *TAnchorClick)(System::TObject* Sender, int index, AnsiString anchor
);
typedef void __fastcall (__closure *TAnchorHintEvent)(System::TObject* Sender, int Index, AnsiString
&Anchor);
class DELPHICLASS THTMListBox;
class PASCALIMPLEMENTATION THTMListBox : public Stdctrls::TCustomListBox
{
typedef Stdctrls::TCustomListBox inherited;
private:
bool FBlinking;
int FOldCursor;
AnsiString FOldAnchor;
TAnchorClick FOnAnchorClick;
TAnchorClick FOnAnchorEnter;
TAnchorClick FOnAnchorExit;
TAnchorHintEvent FOnAnchorHint;
Controls::TImageList* FImages;
bool FMultiLine;
Graphics::TColor FURLColor;
Graphics::TColor FSelectionColor;
Graphics::TColor FSelectionFontColor;
bool FIsMeasuring;
int FTimerID;
bool FEnableBlink;
int FShadowOffset;
Graphics::TColor FShadowColor;
bool FAnchorHint;
bool FSortedEx;
bool FIncrLookup;
AnsiString FLookup;
bool FScrollHorizontal;
int FMaxExtent;
int FUpdateCount;
Picturecontainer::THTMLPictureCache* FImageCache;
int FTimerCount;
bool FEllipsis;
int FLastHintPos;
bool FItemHint;
bool FHTMLHint;
Picturecontainer::TPictureContainer* FContainer;
bool FSortWithHTML;
void __fastcall ReMeasure(void);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Msg);
MESSAGE void __fastcall WMTimer(Messages::TWMTimer &Msg);
HIDESBASE MESSAGE void __fastcall CMHintShow(Messages::TMessage &Msg);
void __fastcall SetImages(Controls::TImageList* value);
void __fastcall SetMultiLine(bool value);
void __fastcall SetURLColor(const Graphics::TColor Value);
void __fastcall SetSelectionColor(const Graphics::TColor Value);
void __fastcall SetSelectionFontColor(const Graphics::TColor Value);
AnsiString __fastcall GetTextItem(int index);
void __fastcall SetEnableBlink(const bool Value);
void __fastcall SetShadowColor(const Graphics::TColor Value);
void __fastcall SetShadowOffset(const int Value);
AnsiString __fastcall IsAnchor(int x, int y, int &Idx);
bool __fastcall GetSortedEx(void);
void __fastcall SetSortedEx(const bool Value);
void __fastcall SetScrollHorizontal(const bool Value);
void __fastcall SetEllipsis(const bool Value);
void __fastcall SetContainer(const Picturecontainer::TPictureContainer* Value);
protected:
virtual void __fastcall WndProc(Messages::TMessage &Message);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X,
int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation AOperation
);
virtual void __fastcall DrawItem(int Index, const Windows::TRect &Rect, Windows::TOwnerDrawState State
);
virtual void __fastcall MeasureItem(int Index, int &Height);
virtual void __fastcall Loaded(void);
DYNAMIC void __fastcall DoEnter(void);
int __fastcall MaxHorizontalExtent(void);
void __fastcall UpdateHScrollExtent(int maxextent);
void __fastcall QuickSortList(Classes::TStringList* List, int Left, int Right);
public:
__fastcall virtual THTMListBox(Classes::TComponent* aOwner);
__fastcall virtual ~THTMListBox(void);
__property AnsiString TextItems[int index] = {read=GetTextItem};
void __fastcall BeginUpdate(void);
void __fastcall EndUpdate(void);
void __fastcall HilightInList(AnsiString HiText, bool DoCase);
void __fastcall HilightInItem(int Index, AnsiString HiText, bool DoCase);
void __fastcall UnHilightInList(void);
void __fastcall UnHilightInItem(int Index);
void __fastcall MarkInList(AnsiString HiText, bool DoCase);
void __fastcall MarkInItem(int Index, AnsiString HiText, bool DoCase);
void __fastcall UnMarkInList(void);
void __fastcall UnMarkInItem(int Index);
__published:
__property Align ;
__property Anchors ;
__property BiDiMode ;
__property Constraints ;
__property DragKind ;
__property ParentBiDiMode ;
__property OnEndDock ;
__property OnStartDock ;
__property bool AnchorHint = {read=FAnchorHint, write=FAnchorHint, default=0};
__property BorderStyle ;
__property Color ;
__property Columns ;
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property bool Ellipsis = {read=FEllipsis, write=SetEllipsis, nodefault};
__property bool EnableBlink = {read=FEnableBlink, write=SetEnableBlink, default=0};
__property Enabled ;
__property ExtendedSelect ;
__property Font ;
__property bool HTMLHint = {read=FHTMLHint, write=FHTMLHint, default=0};
__property Controls::TImageList* Images = {read=FImages, write=SetImages};
__property bool IncrLookup = {read=FIncrLookup, write=FIncrLookup, default=0};
__property ImeMode ;
__property ImeName ;
__property ItemHeight ;
__property bool ItemHint = {read=FItemHint, write=FItemHint, default=0};
__property Items ;
__property MultiSelect ;
__property bool Multiline = {read=FMultiLine, write=SetMultiLine, nodefault};
__property ParentCtl3D ;
__property ParentColor ;
__property ParentShowHint ;
__property Picturecontainer::TPictureContainer* PictureContainer = {read=FContainer, write=SetContainer
};
__property PopupMenu ;
__property bool ScrollHorizontal = {read=FScrollHorizontal, write=SetScrollHorizontal, default=0};
__property ShowHint ;
__property Graphics::TColor SelectionColor = {read=FSelectionColor, write=SetSelectionColor, nodefault
};
__property Graphics::TColor SelectionFontColor = {read=FSelectionFontColor, write=SetSelectionFontColor
, nodefault};
__property Graphics::TColor ShadowColor = {read=FShadowColor, write=SetShadowColor, default=8421504
};
__property int ShadowOffset = {read=FShadowOffset, write=SetShadowOffset, nodefault};
__property bool Sorted = {read=GetSortedEx, write=SetSortedEx, nodefault};
__property bool SortWithHTML = {read=FSortWithHTML, write=FSortWithHTML, nodefault};
__property TabOrder ;
__property Graphics::TColor URLColor = {read=FURLColor, write=SetURLColor, default=16711680};
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
__property TAnchorClick OnAnchorClick = {read=FOnAnchorClick, write=FOnAnchorClick};
__property TAnchorClick OnAnchorEnter = {read=FOnAnchorEnter, write=FOnAnchorEnter};
__property TAnchorClick OnAnchorExit = {read=FOnAnchorExit, write=FOnAnchorExit};
__property TAnchorHintEvent OnAnchorHint = {read=FOnAnchorHint, write=FOnAnchorHint};
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall THTMListBox(HWND ParentWindow) : Stdctrls::TCustomListBox(
ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Htmlistb */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Htmlistb;
#endif
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // HTMListB
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -