| 1 | # ------------------------------------------------------------- | 
|---|
| 2 | #  THIS RESOURCE FILES IS AN EXAMPLE AND BELONGS TO calendar.C | 
|---|
| 3 | # ------------------------------------------------------------- | 
|---|
| 4 |  | 
|---|
| 5 | # Define the images for the 12 months | 
|---|
| 6 | 01: magic_t.xpm | 
|---|
| 7 | 02: marslogo.xpm | 
|---|
| 8 | 03: marslogo.xpm | 
|---|
| 9 | 04: magic_t.xpm | 
|---|
| 10 | 05: marslogo.xpm | 
|---|
| 11 | 06: marslogo.xpm | 
|---|
| 12 | 07: magic_t.xpm | 
|---|
| 13 | 08: marslogo.xpm | 
|---|
| 14 | 09: marslogo.xpm | 
|---|
| 15 | 10: magic_t.xpm | 
|---|
| 16 | 11: marslogo.xpm | 
|---|
| 17 | 12: marslogo.xpm | 
|---|
| 18 |  | 
|---|
| 19 | # define descriptions for your images | 
|---|
| 20 | 01.Text: All File types supported by TASImage are supported. | 
|---|
| 21 | 02.Text: Please try to use the context menu on the small boxes. | 
|---|
| 22 | 03.Text: Choose SetDefaultLayout from the context menu. | 
|---|
| 23 | 04.Text: Play around with th eoptions in the context menu. | 
|---|
| 24 | 05.Text: Parts of the context menu are sensitive to the mouse position. | 
|---|
| 25 | 06.Text: To create a postscript file of your calendar change the macro. | 
|---|
| 26 | 07.Text: | 
|---|
| 27 | 08.Text: | 
|---|
| 28 | 09.Text: | 
|---|
| 29 | 10.Text: | 
|---|
| 30 | 11.Text: | 
|---|
| 31 | 12.Text: | 
|---|
| 32 |  | 
|---|
| 33 | # ------------------------------------------------------------ | 
|---|
| 34 | # General information | 
|---|
| 35 | # | 
|---|
| 36 | # This are the most important settings. For more details of | 
|---|
| 37 | # more resources please have a look at the class reference | 
|---|
| 38 | # of MCalendar and the descriptions of its member functions. | 
|---|
| 39 |  | 
|---|
| 40 | # For something in the box for each day (defined in "Contents") | 
|---|
| 41 | # you have several options which are always known (as an example | 
|---|
| 42 | # "Day" is used here): | 
|---|
| 43 | # | 
|---|
| 44 | #  - Day.TextAlign: Center | 
|---|
| 45 | #    Defines the position of the output in the box. For more | 
|---|
| 46 | #    details about what is allowed see MEnv::GetAlign | 
|---|
| 47 | # | 
|---|
| 48 | #  - Day.Format: %e | 
|---|
| 49 | #    available if a number (month, week, day, etc) should be | 
|---|
| 50 | #    formatted (or converted into text) For more details on | 
|---|
| 51 | #    the allowed formats see MTime::GetFormatStr or strftime | 
|---|
| 52 | # | 
|---|
| 53 | #  - Day.TextColor: Blue | 
|---|
| 54 | #    Defined the output color. For more details see | 
|---|
| 55 | #    MEnv::GetColor | 
|---|
| 56 | # | 
|---|
| 57 | #  - Day.TextFont: 62 | 
|---|
| 58 | #    Define the font for the output text. For more details | 
|---|
| 59 | #    see TAttText | 
|---|
| 60 | # | 
|---|
| 61 | #  - To change the settings depending on the day of the week | 
|---|
| 62 | #    (0=sonday, 1=monday, etc) put the number of the day | 
|---|
| 63 | #    behind the Name of your resource, eg. To diaply the day-number | 
|---|
| 64 | #    of sundays in red (while all others are black) use | 
|---|
| 65 | #       Day.TextColor: Black | 
|---|
| 66 | #       Day.Active.0.TextColor: Red | 
|---|
| 67 | #    The term Active before the 0 defines that only the active | 
|---|
| 68 | #    days are printed in red. Active days are the days which belong | 
|---|
| 69 | #    to the current month (sometimes before the beginning or end | 
|---|
| 70 | #    of a month the days of the previous or next month are shown, | 
|---|
| 71 | #    the are called Inactive) To change the color of the inactive | 
|---|
| 72 | #    sundays to red do | 
|---|
| 73 | #       Day.Inactive.0.TextColor: Red | 
|---|
| 74 | #    You can also change the text font to green for all active | 
|---|
| 75 | #    days (except the sunday which is already set to red): | 
|---|
| 76 | #       Day.Active.TextColor: red | 
|---|
| 77 | # | 
|---|
| 78 | # ------------------------------------------------------------ | 
|---|
| 79 |  | 
|---|
| 80 | # Which contents should the calendar have? Here you define what | 
|---|
| 81 | # should be displayed in your box. You could also name them | 
|---|
| 82 | # A and B instead of Day and Date. The result would be identical | 
|---|
| 83 | # (I mean the name is totally artificial and defined here) | 
|---|
| 84 | # This also means that you can define as many of them as you want. | 
|---|
| 85 | # In this example files (calendar.rc and holidays.rc) the | 
|---|
| 86 | # following possible options are defined (see below): | 
|---|
| 87 | #   Day Date Holiday Birthday DayName Week | 
|---|
| 88 | Contents: Day Date Holiday Birthday DayName | 
|---|
| 89 |  | 
|---|
| 90 | # What is the language for the month and day names? | 
|---|
| 91 | Language: de_DE | 
|---|
| 92 |  | 
|---|
| 93 | # Where in the boxes should the moon grafic and text be aligned? | 
|---|
| 94 | # (The numbers are according to TAttText, 0 means off) | 
|---|
| 95 | Moon.Graf.Align:              11 | 
|---|
| 96 | Moon.Text.Align:              0 | 
|---|
| 97 | #Moon.Text.Type:              0 | 
|---|
| 98 | #Moon.Text.Continous:         No | 
|---|
| 99 |  | 
|---|
| 100 | # This is the definition of the moon grafic color | 
|---|
| 101 | Moon.Inactive.FillColor:      18 | 
|---|
| 102 | Moon.Inactive.0.FillColor:    17 | 
|---|
| 103 |  | 
|---|
| 104 | # This lines can be used to draw the week number somewhere | 
|---|
| 105 | # Restriction is string containing the number of all days | 
|---|
| 106 | # at which the week should be printed (eg. "0" for sundays, | 
|---|
| 107 | # "1" for mondays or "01" for sunday and monday | 
|---|
| 108 | #Week.TextAlign:              top right | 
|---|
| 109 | #Week.Format:                 KW%V | 
|---|
| 110 | #Week.Restriction:            1 | 
|---|
| 111 | #Week.TextSize:               0.1 | 
|---|
| 112 | #Week.Active.TextColor:       Grey8 | 
|---|
| 113 | #Week.Inactive.TextFont:      42 | 
|---|
| 114 | #Week.Inactive.TextColor:     17 | 
|---|
| 115 |  | 
|---|
| 116 | # Define the layout of the day-name. | 
|---|
| 117 | Day.TextAlign:                top left | 
|---|
| 118 | Day.Format:                   %e | 
|---|
| 119 | #Day.TextFont: 62 | 
|---|
| 120 | #Day.Active.TextFont:         22 | 
|---|
| 121 | Day.Inactive.TextFont:        42 | 
|---|
| 122 | Day.Inactive.TextColor:       17 | 
|---|
| 123 | Day.Inactive.0.TextColor:     17 | 
|---|
| 124 |  | 
|---|
| 125 | # Define the layout of the date (number) | 
|---|
| 126 | Date.TextAlign:               bottom right | 
|---|
| 127 | Date.Format:                  %a | 
|---|
| 128 | Date.Active.0.TextColor:      2 | 
|---|
| 129 | #Date.Active.TextFont:        22 | 
|---|
| 130 | Date.Inactive.TextFont:       42 | 
|---|
| 131 | Date.Inactive.FillColor:      19 | 
|---|
| 132 | Date.Inactive.TextColor:      17 | 
|---|
| 133 | Date.Active.0.FillColor:      17 | 
|---|
| 134 | Date.Inactive.0.FillColor:    18 | 
|---|
| 135 | Date.Inactive.0.TextColor:    17 | 
|---|
| 136 |  | 
|---|
| 137 | # Define the layout of holidays, including the easter holidays | 
|---|
| 138 | # (see holiday.rc) | 
|---|
| 139 | Holiday.TextAlign:            center | 
|---|
| 140 | Holiday.TextSize:             0.13 | 
|---|
| 141 | Holiday.TextColor:            4 | 
|---|
| 142 | Holiday.Inactive.TextColor:   17 | 
|---|
| 143 | Holiday.TextFont:             62 | 
|---|
| 144 |  | 
|---|
| 145 | # Define the layout of birthdays (see holiday.rc) | 
|---|
| 146 | Birthday.TextAlign:           center | 
|---|
| 147 | Birthday.TextSize:            0.13 | 
|---|
| 148 | Birthday.TextColor:           Dark Green | 
|---|
| 149 | Birthday.Inactive.TextColor:  17 | 
|---|
| 150 | Birthday.TextFont:            62 | 
|---|
| 151 |  | 
|---|
| 152 | # Define the layout for days with a name (eg. "Good Friday") which | 
|---|
| 153 | # might not be holidays | 
|---|
| 154 | DayName.TextColor:            13 | 
|---|
| 155 | DayName.TextAlign:            Center | 
|---|
| 156 | DayName.TextFont:             62 | 
|---|
| 157 | DayName.TextSize:             0.13 | 
|---|
| 158 | DayName.Inactive.TextColor:   17 | 
|---|
| 159 | DayName.Inactive.0.TextColor: 17 | 
|---|