source: trunk/Mars/macros/tutorials/calendar.rc@ 12582

Last change on this file since 12582 was 7893, checked in by tbretz, 18 years ago
*** empty log message ***
File size: 5.5 KB
Line 
1# -------------------------------------------------------------
2# THIS RESOURCE FILES IS AN EXAMPLE AND BELONGS TO calendar.C
3# -------------------------------------------------------------
4
5# Define the images for the 12 months
601: magic_t.xpm
702: marslogo.xpm
803: marslogo.xpm
904: magic_t.xpm
1005: marslogo.xpm
1106: marslogo.xpm
1207: magic_t.xpm
1308: marslogo.xpm
1409: marslogo.xpm
1510: magic_t.xpm
1611: marslogo.xpm
1712: marslogo.xpm
18
19# define descriptions for your images
2001.Text: All File types supported by TASImage are supported.
2102.Text: Please try to use the context menu on the small boxes.
2203.Text: Choose SetDefaultLayout from the context menu.
2304.Text: Play around with th eoptions in the context menu.
2405.Text: Parts of the context menu are sensitive to the mouse position.
2506.Text: To create a postscript file of your calendar change the macro.
2607.Text:
2708.Text:
2809.Text:
2910.Text:
3011.Text:
3112.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
88Contents: Day Date Holiday Birthday DayName
89
90# What is the language for the month and day names?
91Language: 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)
95Moon.Graf.Align: 11
96Moon.Text.Align: 0
97#Moon.Text.Type: 0
98#Moon.Text.Continous: No
99
100# This is the definition of the moon grafic color
101Moon.Inactive.FillColor: 18
102Moon.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.
117Day.TextAlign: top left
118Day.Format: %e
119#Day.TextFont: 62
120#Day.Active.TextFont: 22
121Day.Inactive.TextFont: 42
122Day.Inactive.TextColor: 17
123Day.Inactive.0.TextColor: 17
124
125# Define the layout of the date (number)
126Date.TextAlign: bottom right
127Date.Format: %a
128Date.Active.0.TextColor: 2
129#Date.Active.TextFont: 22
130Date.Inactive.TextFont: 42
131Date.Inactive.FillColor: 19
132Date.Inactive.TextColor: 17
133Date.Active.0.FillColor: 17
134Date.Inactive.0.FillColor: 18
135Date.Inactive.0.TextColor: 17
136
137# Define the layout of holidays, including the easter holidays
138# (see holiday.rc)
139Holiday.TextAlign: center
140Holiday.TextSize: 0.13
141Holiday.TextColor: 4
142Holiday.Inactive.TextColor: 17
143Holiday.TextFont: 62
144
145# Define the layout of birthdays (see holiday.rc)
146Birthday.TextAlign: center
147Birthday.TextSize: 0.13
148Birthday.TextColor: Dark Green
149Birthday.Inactive.TextColor: 17
150Birthday.TextFont: 62
151
152# Define the layout for days with a name (eg. "Good Friday") which
153# might not be holidays
154DayName.TextColor: 13
155DayName.TextAlign: Center
156DayName.TextFont: 62
157DayName.TextSize: 0.13
158DayName.Inactive.TextColor: 17
159DayName.Inactive.0.TextColor: 17
Note: See TracBrowser for help on using the repository browser.