mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-05 01:41:35 +02:00
carbon: cleanup debug messages
git-svn-id: trunk@21819 -
This commit is contained in:
parent
3f589dad6a
commit
2b795ca9d8
@ -73,8 +73,6 @@ var
|
|||||||
date : CFGregorianDate;
|
date : CFGregorianDate;
|
||||||
begin
|
begin
|
||||||
CalendarGetDate(Widget, date);
|
CalendarGetDate(Widget, date);
|
||||||
with date do
|
|
||||||
writeln(date.year,' / ',date.month, ' / ',date.day);
|
|
||||||
Result := EncodeDate(date.year, date.month, date.day);
|
Result := EncodeDate(date.year, date.month, date.day);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -763,7 +763,6 @@ begin
|
|||||||
|
|
||||||
kControlCalendarDateTag:
|
kControlCalendarDateTag:
|
||||||
begin
|
begin
|
||||||
writeln('getting the date!');
|
|
||||||
if sz = sizeof( CFGregorianDate ) then begin
|
if sz = sizeof( CFGregorianDate ) then begin
|
||||||
CFGregorianDatePtr(ptr)^ := inData.date;
|
CFGregorianDatePtr(ptr)^ := inData.date;
|
||||||
if (inData.selDay>0) and (inData.selDay<inData.daysInMonth) then
|
if (inData.selDay>0) and (inData.selDay<inData.daysInMonth) then
|
||||||
@ -1070,11 +1069,7 @@ end;
|
|||||||
function CalendarSetDate(Calendar: ControlRef; const Date: CFGregorianDate): Boolean;
|
function CalendarSetDate(Calendar: ControlRef; const Date: CFGregorianDate): Boolean;
|
||||||
begin
|
begin
|
||||||
Result := isValidCalendarControl(Calendar);
|
Result := isValidCalendarControl(Calendar);
|
||||||
if not Result then begin
|
if not Result then Exit;
|
||||||
writeln('not calendar!');
|
|
||||||
Exit;
|
|
||||||
end;
|
|
||||||
writeln('calendar!');
|
|
||||||
Result := SetControlData(Calendar, kControlEntireControl, kControlCalendarDateTag, sizeof(Date), @Date) = noErr;
|
Result := SetControlData(Calendar, kControlEntireControl, kControlCalendarDateTag, sizeof(Date), @Date) = noErr;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user