ANN: Calendar Plugin

Are you developing tools to extend the LiveCode environment? This is the place to talk about the nuts and bolts of extending our nuts and bolts. If you want to use a LiveCode or third party Environment extension, visit the Using Evironment Extensions forum.

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

Post Reply
MaxV
Posts: 1540
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

ANN: Calendar Plugin

Post by MaxV » Thu Aug 09, 2018 1:35 pm

Hello,
I just released my free calendar plugin. The missing control in livecode :lol:
The official page is here: http://www.maxvessi.net/pmwiki/pmwiki.p ... ndarPlugin
It's a simple calendar to pick date for Livecode that owrks with any version of livecode, it has the following features:
  • multilanguage support (write me if you don't find your language)
  • first day of week customizable
  • auto positioning, so it's always all visible inside the card
  • colour customizable
Download: http://www.maxvessi.net/pmwiki/uploads/ ... Plugin.zip

To use it just unzip it and copy the file in you Livecode default folder, usually are these:
  • Windows: C:\Documents and Settings\max\Documenti\My LiveCode\plugins
  • Mac: /Users/max/Documents/My LiveCode/Plugins
  • Linux: /home/max/my_livecode/Plugins/
Now click Development -> Plugins -> CalendarPlugin, this way a menu to add the calendar button will appear. You can set your preferences from the panel or via script in your program.

You can always set these properties:
  • pdate : set the day of the button ("YYYY-MM-DD")
  • firstDay: set the first day of the calendar (1 = Sunday)
  • lang: set the language for months and week days. Send me an email for adding other languages
  • pTextColor: set the text color of calendar panel
  • pBgColor: set the text color of calendar backgroung panel
  • pBtnTextColor: set the text color of calendar button
  • pBtnBgColor: set the background color of calendar button
Screenshots:
Image
Livecode Wiki: http://livecode.wikia.com
My blog: http://livecodeitalia.blogspot.it
To post code use this: http://tinyurl.com/ogp6d5w

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 6156
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: ANN: Calendar Plugin

Post by FourthWorld » Thu Aug 09, 2018 2:02 pm

Thanks. Looks very nicely done. Will license info be provided? Without explicit licensing terms no one can know if they can use it.
Richard Gaskin
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

bogs
Posts: 2205
Joined: Sat Feb 25, 2017 10:45 pm

Re: ANN: Calendar Plugin

Post by bogs » Thu Aug 09, 2018 5:43 pm

I agree with Richard, very nice Max.
Image

bogs
Posts: 2205
Joined: Sat Feb 25, 2017 10:45 pm

Re: ANN: Calendar Plugin

Post by bogs » Thu Aug 09, 2018 9:17 pm

MaxV wrote:
Thu Aug 09, 2018 1:35 pm
It's a simple calendar to pick date for Livecode that works with any version of livecode,
Um, May want to change that from 'any version' to Lc 7.x and above :wink:
(Did not show up in 6.5.x, error is "not a stack")
Image

SparkOut
Posts: 1798
Joined: Sun Sep 23, 2007 4:58 pm

Re: ANN: Calendar Plugin

Post by SparkOut » Thu Aug 09, 2018 9:44 pm

I don't suppose you have magically dealt with pre 1970 years on Windows with that by any chance?

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 631
Joined: Fri Jun 27, 2008 9:00 pm

Re: ANN: Calendar Plugin

Post by Mikey » Fri Aug 10, 2018 2:18 pm

Max, do you mind if I throw this up on github?

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4624
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: ANN: Calendar Plugin

Post by jacque » Fri Aug 10, 2018 6:44 pm

Mikey wrote:
Fri Aug 10, 2018 2:18 pm
Max, do you mind if I throw this up on github?
For myself, I have no objections. I have frequently wanted to throw up on github.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

bogs
Posts: 2205
Joined: Sat Feb 25, 2017 10:45 pm

Re: ANN: Calendar Plugin

Post by bogs » Fri Aug 10, 2018 9:12 pm

jacque wrote:
Fri Aug 10, 2018 6:44 pm
Mikey wrote:
Fri Aug 10, 2018 2:18 pm
Max, do you mind if I throw this up on github?
For myself, I have no objections. I have frequently wanted to throw up on github.
But only when you visit it, right?
Image
Image

MaxV
Posts: 1540
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: ANN: Calendar Plugin

Post by MaxV » Sun Aug 19, 2018 10:11 pm

Hello,
I just returned from my holidays ( just 7 days with not much wifi ), so I read now your comments.
Here the answers:
FourthWorld wrote:
Thu Aug 09, 2018 2:02 pm
Thanks. Looks very nicely done. Will license info be provided? Without explicit licensing terms no one can know if they can use it.
Well, frankly I don't care. I put GPL3, but someone suggested me that it's better MIT license. What do you prefer?
bogs wrote:
Thu Aug 09, 2018 9:17 pm
MaxV wrote:
Thu Aug 09, 2018 1:35 pm
... works with any version of livecode,
Um, May want to change that from 'any version' to Lc 7.x and above :wink:
(Did not show up in 6.5.x, error is "not a stack")
Really? It's a standard plugin. probably you just need to change the extension or open with 7 and use save as version 6. Please let me know.
Mikey wrote:
Fri Aug 10, 2018 2:18 pm
Max, do you mind if I throw this up on github?
You can do whatever you want. :D
Livecode Wiki: http://livecode.wikia.com
My blog: http://livecodeitalia.blogspot.it
To post code use this: http://tinyurl.com/ogp6d5w

bogs
Posts: 2205
Joined: Sat Feb 25, 2017 10:45 pm

Re: ANN: Calendar Plugin

Post by bogs » Mon Aug 20, 2018 4:08 pm

MaxV wrote:
Sun Aug 19, 2018 10:11 pm
bogs wrote:
Thu Aug 09, 2018 9:17 pm
MaxV wrote:
Thu Aug 09, 2018 1:35 pm
... works with any version of livecode,
Um, May want to change that from 'any version' to Lc 7.x and above :wink:
(Did not show up in 6.5.x, error is "not a stack")
Really? It's a standard plugin. probably you just need to change the extension or open with 7 and use save as version 6. Please let me know.
Well, the "is not a stack" error means you probably wrote it in 7.x (or really any version higher than 6.x), before they changed the message to the "written in a newer version" for stack format changes.

I did indeed save the stack in the legacy 5.5 format, and since that allowed it to open in earlier versions, I did free up about 10 minutes to do some testing.

One thing that jumped out at me almost immediately is that you might want to set up some testing for the date format. I understand most of the world uses a format like y-m-d, but someone should be able to format to their local standard, either by choosing system date or by setting it up custom. Alternately, you could force the date by not allowing modification of that text field :D

Rest of it seemed to work well though. Here is the saved backwards version, good down to 5.5 format. I doubt anyone else is using Mc that couldn't save it back to that period.
CalendarPlugin.zip
Saved to 5.5 Legacy format
(12.15 KiB) Downloaded 13 times
Image

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2225
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: ANN: Calendar Plugin

Post by jmburnod » Mon Aug 20, 2018 7:08 pm

Hi Max,
Thanks for share
I see you forgot french langage in your langage menu.
I added "FR" and it works fine 8)
Best
Jean-Marc

MaxV
Posts: 1540
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: ANN: Calendar Plugin

Post by MaxV » Tue Aug 21, 2018 11:34 am

jmburnod wrote:
Mon Aug 20, 2018 7:08 pm
Hi Max,
Thanks for share
I see you forgot french langage in your langage menu.
I added "FR" and it works fine 8)
Best
Jean-Marc
version 10 has French and now also the livecode libdate has French ( https://github.com/derbrill/libdate )
Livecode Wiki: http://livecode.wikia.com
My blog: http://livecodeitalia.blogspot.it
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply

Return to “Extending LiveCode”