mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 10:59:11 +02:00
cooca: adding support for listview column text alignment
git-svn-id: trunk@62711 -
This commit is contained in:
parent
04ca721bfc
commit
4aaaa6c59a
@ -1127,8 +1127,17 @@ end;
|
|||||||
class procedure TCocoaWSCustomListView.ColumnSetAlignment(
|
class procedure TCocoaWSCustomListView.ColumnSetAlignment(
|
||||||
const ALV: TCustomListView; const AIndex: Integer;
|
const ALV: TCustomListView; const AIndex: Integer;
|
||||||
const AColumn: TListColumn; const AAlignment: TAlignment);
|
const AColumn: TListColumn; const AAlignment: TAlignment);
|
||||||
|
var
|
||||||
|
lTableLV: TCocoaTableListView;
|
||||||
|
lNSColumn: NSTableColumn;
|
||||||
|
const
|
||||||
|
txtAlign : array[TAlignment] of NSTextAlignment = (
|
||||||
|
NSLeftTextAlignment, NSRightTextAlignment, NSCenterTextAlignment
|
||||||
|
);
|
||||||
begin
|
begin
|
||||||
inherited ColumnSetAlignment(ALV, AIndex, AColumn, AAlignment);
|
if not CheckColumnParams(lTableLV, lNSColumn, ALV, AIndex) then Exit;
|
||||||
|
NSCell(lNSColumn.headerCell).setAlignment( txtAlign[AAlignment] );
|
||||||
|
NSCell(lNSColumn.dataCell).setAlignment( txtAlign[AAlignment] );
|
||||||
end;
|
end;
|
||||||
|
|
||||||
class procedure TCocoaWSCustomListView.ColumnSetAutoSize(
|
class procedure TCocoaWSCustomListView.ColumnSetAutoSize(
|
||||||
|
Loading…
Reference in New Issue
Block a user