TComboboxdan tureterek bir combo yapmak istiyorum. Yeni yapacağım comboda FieldValues isminde bir property olcak. Bu property items gibi birden fazla string girmek istiyorum dizi şeklinde.
Yaptığım kadarı ile kodu aşağıda veriyorum. Kod:
unit YGCombo; interface uses Windows, SysUtils, Classes, Controls, StdCtrls, Dialogs; type TYGCombo = class(TComboBox) private FFieldValues : TStrings; procedure SetFieldValues(const Value: TStrings); protected public published Property FieldValues : TStrings read FFieldValues Write SetFieldValues; end; procedure Register; implementation procedure Register; begin RegisterComponents('YG', [TYGCombo]); end; procedure TYGCombo.SetFieldValues(const Value: TStrings); begin FFieldValues:=Value; end; end.
Takıldığım nokto StringListi nerede create etmem gerekiyor.
__________________
TComoboxdan Yeni bir combo oluşturma.
Programlama0 Mesaj
●26 Görüntüleme
- ReadBull.net
- Programlama ve Yazılım
- Programlama
- TComoboxdan Yeni bir combo oluşturma.