EhLib.Com
https://forum.ehlib.com/en/

when open pvoHighlightTodayEh,PrintService.Preview ERROR
https://forum.ehlib.com/en/viewtopic.php?f=5&t=741
Page 1 of 1

Author:  ak47bang8 [ 22 Feb 2017, 08:12 ]
Post subject:  when open pvoHighlightTodayEh,PrintService.Preview ERROR

when open pvoHighlightTodayEh Option
PrintService.Preview is error.

change it for this.

{1 remark}
// TPlannerViewTimeCellDrawArgsEh = class(TPlannerViewCellDrawArgsEh)
// public
// DrawMonthDay: Boolean;
// DrawTopToDayLine: Boolean;
// MonthDay: String;
// MonthDayFontStyle: TFontStyles;
// end;

{ TPlannerViewDayNamesCellDrawArgsEh }

// TPlannerViewDayNamesCellDrawArgsEh = class(TPlannerViewCellDrawArgsEh)
// public
// DrawTimeLine: Boolean;
// DrawTimeRect: TRect;
// HoursFontSize: Integer;
// HoursStr: String;
// MinutesFontSize: Integer;
// MinutesStr: String;
// Time: TTime;
// end;

{2 add the property in TPlannerViewCellDrawArgsEh }
TPlannerViewCellDrawArgsEh = class(TObject)
public
DrawTimeLine: Boolean;
DrawTimeRect: TRect;
HoursFontSize: Integer;
HoursStr: String;
MinutesFontSize: Integer;
MinutesStr: String;
Time: TTime;

DrawMonthDay: Boolean;
DrawTopToDayLine: Boolean;
MonthDay: String;
MonthDayFontStyle: TFontStyles;

{3 replace all TPlannerViewTimeCellDrawArgsEh and TPlannerViewDayNamesCellDrawArgsEh
to TPlannerViewCellDrawArgsEh }

in joy it!

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/