From Lazarus wikiJump to navigationJump to search
For editing set of enumerated types. Let's assume that you have following definitions.
type TMonth = (Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec); TMonths = set of TMonth; // TForm1 = class(TForm) private FMonths: TMonths; published property Months: TMonths read FMonths write FMonths; end;
You can use TTICheckListBox in following way.
with TICheckListBox1.LInk do begin TIObject:= Form1; TIPropertyName := 'Months'; end;