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

How change the caption of Weekdays PlannerCalendarPickerEh
http://forum.ehlib.com/en/viewtopic.php?f=5&t=996
Page 1 of 1

Author:  Luciano_F [ 09 Sep 2019, 16:57 ]
Post subject:  How change the caption of Weekdays PlannerCalendarPickerEh

it is showing only two letters and not three as in "TDBDateTimeEditEh"

Example "Monday" shows "Se" would have to be "Seg"

other than "PlannerCalendarPickerEh" doesn't show me the
NextMonth
PreviusMounth

How do I solve it ?

Attachments:
PlannerCalendarPickerEh.png
PlannerCalendarPickerEh.png [ 58.42 KiB | Viewed 382 times ]

Author:  EhLibSupport [ 17 Sep 2019, 22:21 ]
Post subject:  Re: How change the caption of Weekdays PlannerCalendarPicker

Hello

--
Unfortunately, the library has no settings for this section.
The best way is to change the source code of the component.

Code:
unit PlannerCalendarPickerEh;
...
procedure TCustomCalendarMonthViewEh.DrawWeekDayNamesCell(ACol, ARow: Integer;
  ARect: TRect; State: TGridDrawState);

...
  //DName := Copy(FormatSettings.ShortDayNames[DNum], 1, 2); // Old code
  DName := FormatSettings.ShortDayNames[DNum]; // New code
...


You can also write new version of TCalendarMonthViewEh and override virtual method DrawWeekDayNamesCell.

--
Quote:
other than "PlannerCalendarPickerEh" doesn't show me the NextMonth PreviusMounth

I can’t understand the question, you can rephrase it.
In your screenshot, the buttons for moving to the next month, previous month are visible clearly.

Author:  Luciano_F [ 18 Sep 2019, 10:27 ]
Post subject:  Re: How change the caption of Weekdays PlannerCalendarPicker

Quote:
I can’t understand the question, you can rephrase it.
In your screenshot, the buttons for moving to the next month, previous month are visible clearly.



when I refer to "NextMonth PreviusMounth" not the buttons but the days of the previous month and the next month that are not shown, as you can see in the image I have composed two components of yours where one is complete and the other not.

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