Hi Markus,
Is the month layout finally implemented in RTSVGPath in monthShapePath? - could you please explain it?
How could one change month visualization and:
- start weeks on Monday instead of Sunday.
---- RTCalendarBuilder uses RTDateLayout, and with this layout change the start of the weeks is not possible, we can improve that
- change color of day figure or background color based on criteria (e.g. weekend …)
---- You can use dateShape I prepare this example, that I hope can resolve some of your questions.
| b | b := RTCalendarBuilder new. b dates: (Month current to: Month current next next). b dateShape box size: 14. b dateShape if: [:date | date dayOfWeek = 1 ]color: Color lightBlue . b dateShape if: [:date | date dayOfWeek = 2 ]color: Color blue. b monthShape shape: (b monthShapePath: 15.0). b dateLayout gapSize: 1. b monthLayout month. b build. (b view elements select: [:e | e model isKindOf: Month]) pushFront. ^ b view
[image: Imágenes integradas 3]
| b | b := RTCalendarBuilder new. b dates: (Month current to: Month current next next). b dateShape shape: (RTPolygon star size: 20). b dateShape if: [:date | date dayOfWeek = 1 ]color: Color lightBlue . b dateShape if: [:date | date dayOfWeek = 2 ]color: Color blue. b build. ^ b view
[image: Imágenes integradas 2] Milton
https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Libre de virus. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
2017-04-06 9:32 GMT-03:00 Markus Böhm markus.boehm@gmail.com:
May I ask: I’m trying to understand how to use RTCalendarBuilder in own, adapted calendar visualization, I read the chapter about builders in the book and started to look at:
exampleMonth
| b |
b := RTCalendarBuilder new.
b dates: (Month current to: Month current next).
b build.
^ b view
Is the month layout finally implemented in RTSVGPath in monthShapePath?
How could one change month visualization and:
start weeks on Monday instead of Sunday
change color of day figure or background color based on criteria
(e.g. weekend …)
Only meant as example. Would I need to change SVGPaths or are there higher level methods?
BR Mike
Moose-dev mailing list Moose-dev@list.inf.unibe.ch https://www.list.inf.unibe.ch/listinfo/moose-dev