Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.12.05;
Скачать: CL | DM;

Вниз

TListView   Найти похожие ветки 

 
SoftAl ©   (2002-11-23 20:18) [0]

Помогите плиз.
Пишу свой компонент на базе родительского класса Все ни чего да вот столкнулся с проблеммой мне нужно добавить свойства в редактор свойств который открывается при добовлении колонок(Columns)подскажите кто что может или посоветуйте где это лежит


 
Ученик ©   (2002-11-24 09:47) [1]

type
TMyListView = class(TListView)
private
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
constructor Create(AOwner : TComponent); override;
published
{ Published declarations }
end;

procedure Register;

implementation

type
TCollectionWrapper = class(TPersistent)
private
FItemClass: TCollectionItemClass;
end;

TMyListColumn = class(TListColumn)
private
FMyProperty : Integer;
published
property MyProperty : Integer read FMyProperty write FMyProperty;
end;

constructor TMyListView.Create(AOwner : TComponent);
begin
inherited Create(AOwner);
TCollectionWrapper(Columns).FItemClass := TMyListColumn
end;


 
Softal ©   (2002-11-25 00:00) [2]

Спасибо огромное за пример
Теперь понял. Все работает.



Страницы: 1 вся ветка

Текущий архив: 2002.12.05;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.02 c
6-14723
Лана Розанова
2002-10-07 10:10
2002.12.05
HTML


1-14593
AArmageddon
2002-11-24 12:52
2002.12.05
общая


1-14520
Vasechkin
2002-11-23 19:10
2002.12.05
Помогите с реестром!!!!


1-14673
Ich Hasse
2002-11-25 18:40
2002.12.05
Exel


14-14791
MsGuns
2002-11-13 20:09
2002.12.05
Покупаем комп