You've already forked lazarus-ccr
CalLite: Fix behavior of right mouse click.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@5373 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -135,10 +135,10 @@ procedure TForm1.FormCreate(Sender: TObject);
|
||||
var
|
||||
opt: TCalOption;
|
||||
begin
|
||||
demoCal:= TCalendarLite.Create(Self);
|
||||
demoCal.Parent:= Self;
|
||||
demoCal.Left:= 10;
|
||||
demoCal.Top:= PSettings.Height + 10;
|
||||
demoCal := TCalendarLite.Create(Self);
|
||||
demoCal.Parent := Self;
|
||||
demoCal.Left := 10;
|
||||
demoCal.Top := PSettings.Height + 10;
|
||||
demoCal.Width := seWidth.Value;
|
||||
demoCal.Height := seHeight.Value;
|
||||
demoCal.OnGetHolidays := @GetHolidays;
|
||||
@ -153,12 +153,12 @@ begin
|
||||
if CbDrawCell.Checked then
|
||||
demoCal.OnDrawCell := @DrawCell else
|
||||
demoCal.OnDrawCell := nil;
|
||||
FNoHolidays:= False;
|
||||
FNoHolidays := False;
|
||||
for opt in demoCal.Options do
|
||||
if (opt in demoCal.Options) then cgOptions.Checked[integer(opt)] := True;
|
||||
if (opt in demoCal.Options) then cgOptions.Checked[integer(opt)] := True;
|
||||
seHeight.Value := demoCal.Height;
|
||||
seWidth.Value:= demoCal.Width;
|
||||
rgStartingDOW.ItemIndex:= integer(demoCal.StartingDayOfWeek)-1;
|
||||
seWidth.Value := demoCal.Width;
|
||||
rgStartingDOW.ItemIndex := integer(demoCal.StartingDayOfWeek)-1;
|
||||
|
||||
copyCal:= TCalendarLite.Create(Self);
|
||||
copyCal.Parent := Self;
|
||||
|
Reference in New Issue
Block a user