[ANN] calendar widget updated

BNig bernd.niggemann at uni-wh.de
Mon Oct 24 15:07:18 EDT 2016


Update of the calendar widget

Added the option to use Custom day/month names beside English or System
names.
Resolved a name conflict by renaming properties of the widget

calDayNames
calMonthNames

Also changed a property to NamesToUse to indicate [ English | System |
Custom ] names to use.

During the conference a calendar widget was used in the widget course.
The original author is Elanor Buchanan.
I think it is a wonderful example of what widgets can do. Elanor did a very
good job.

I extended the calendar to add some useful features.

You can choose via the properties inspector the sytem abbreviated names for
month names and day names. Thus using the localized names. Or use Custom to
use your own day/month names
Default English abbreviated names

The option to start the week on Mondays which is the case in many countries.
Default Sunday

Clicking on Month/Year in the title bar brings up the current date

The option that the font size adapts to the size of the widget (default)

The calendar widget needs a library also written by Elanor Buchanan
"datesupport"

to install the widget download and unzip

http://www.berndniggemann.on-rev.com/calendar/calendar.zip

inside the folder there are two folders:

community.livecode.elanor.datesupport.1.0.0
community.livecode.elanorb.calendarBN.1.0.0

copy both files to your "extensions" folder in your "My LiveCode" folder. In
case you both files are already in the extensions folder overwrite or delete
community.livecode.elanorb.calendarBN.1.0.0, replacing the old version with
the new one.

additionally there is a stack:
testCalendarCustom.livecode
use it to see some of the syntax and how to set the custom daynames and
monthnames.


Restart Livecode and you should see in your toolbar a widget "calendarBN"
with a calendar icon.

You can change a number of properties, please see the dictionary entry API:
Choose API: CalendarBN, dictionary entries have been updated.

Calendar sends a dateChanged message when the user clicks on a date. You add
this script to the widget to react to the message.

on dateChanged pDate
	put pDate into field "myDate"
end dateChanged

Kind regards
Bernd




--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/ANN-calendar-widget-updated-tp4709700.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list