Вниз
Скачать: 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 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.011 c
1-14604
nika_ufc
2002-11-24 17:34
2002.12.05
все хорошо НО.............


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


1-14564
ret_Avr
2002-11-24 19:43
2002.12.05
Как StringGrid отправить в Word?


1-14595
[BAD]Angel
2002-11-26 16:30
2002.12.05
СРОЧНО НУЖНА ПОМОЩЬ!!!


1-14623
Test
2002-11-25 01:28
2002.12.05
Как сделать чтобы к каждому




   Наверх