{******************************************************************************* KOL_deprecated.inc -- declarations and code deprecated in KOL.pas ********************************************************************************} {$IFDEF interface_1} /////////////////////////////////////////////////////////// {$IFNDEF _D2} {$IFNDEF _FPC} TOnLVDataW = procedure( Sender: PControl; Idx, SubItem: Integer; var Txt: WideString; var ImgIdx: Integer; var State: DWORD; var Store: Boolean ) of object; {* Event type for OnLVDataW event (the same as OnLVData, but for unicode verion of the control OnLVDataW allows to return WideString text in the event handler). Used to provide virtual list view control (i.e. having lvoOwnerData style) with actual data on request. Use parameter Store as a flag if control should store obtained data by itself or not. } {$ENDIF _FPC} {$ENDIF _D2} {$ENDIF interface_1} /////////////////////////////////////////////////////////// {$IFDEF interface_2} /////////////////////////////////////////////////////////// {$IFNDEF _FPC} {$IFNDEF _D2} protected fOnLVDataW: TOnLVDataW; function GetLVColTextW(Idx: Integer): WideString; procedure SetLVColTextW(Idx: Integer; const Value: WideString); function LVGetItemTextW(Idx, Col: Integer): WideString; procedure LVSetItemTextW(Idx, Col: Integer; const Value: WideString); function TVGetItemTextW(Item: THandle): WideString; procedure TVSetItemTextW(Item: THandle; const Value: WideString); procedure SetOnLVDataW(const Value: TOnLVDataW); public procedure LVColAddW( const aText: WideString; aalign: TTextAlign; aWidth: Integer ); {* |<#listview> Adds new column (unicode version). } procedure LVColInsertW( ColIdx: Integer; const aText: WideString; aAlign: TTextAlign; aWidth: Integer ); {* |<#listview> Inserts new column at the Idx position (1-based column index). } property LVColTextW[ Idx: Integer ]: WideString read GetLVColTextW write SetLVColTextW; {* |<#listview> Allows to get/change column header text at run time. } function LVItemAddW( const aText: WideString ): Integer; {* |<#listview> Adds an item to the end of list view. Returns an index of the item added. } function LVItemInsertW( Idx: Integer; const aText: WideString ): Integer; {* |<#listview> Inserts an item to Idx position. This method is deprecated, use TVItemInsert (adding symbol UNICODE_CTRLS to options) } property LVItemsW[ Idx, Col: Integer ]: WideString read LVGetItemTextW write LVSetItemTextW; {* |<#listview> Access to List View item text. } function LVIndexOfW( const S: WideString ): Integer; {* Returns first list view item index with caption matching S. The same as LVSearchForW( S, -1, FALSE ). } function LVSearchForW( const S: WideString; StartAfter: Integer; Partial: Boolean ): Integer; {* Searches an item with Caption equal to S (or starting from S, if Partial = TRUE). Searching is started after an item specified by StartAfter parameter. } property OnLVDataW: TOnLVDataW read fOnLVDataW write SetOnLVDataW; {* |<#listview> The same as OnLVData, but for unicode version of the list view allows to return WideString text in the event handler. Though for unicode list view it is still possible to use ordinary event OnLVData, it is very recommended to use this event istead. } function TVInsertW( nParent, nAfter: THandle; const Txt: WideString ): THandle; {* |<#treeview> Inserts item to a tree view. If nParent is 0 or TVI_ROOT, the item is inserted at the root of tree view. It is possible to pass following special values as nAfter parameter: |
TVI_FIRST Inserts the item at the beginning of the list.
TVI_LAST Inserts the item at the end of the list.
TVI_SORT Inserts the item into the list in alphabetical order.
|