Trying to implement calendar

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Post by sturgis » Sat Oct 31, 2009 12:15 am

Edit: Ok, posted the splash stack (named financial mish mash) on rev online that goes with the funcalc script.

Oh, DOH, forgot to put the splashstack up. As for downloading, till I put up the zips, I think you can do a right click and save as to get the file. I'll see what I can do to fix funCalc. I'll zip em up together and repost to revonline.

Thanks for the nice comments.
bn wrote:Hi Sturgis,
thank you for the well commented example. I try to get my head around the datagrid. That helps.
To access the nutrition example one can type

Code: Select all

go stack url "http://bonkersonline.info/stacks/nutritionStack.rev"
into the message box and the stack opens directly in Rev.
You might want to post a zip version for download. The present version just puts the text into the browser.

In your stack in RevOnline FunCalc whenever I close it it complains that

Code: Select all

 close stack "splashStack"
cannot be found. Otherwise another nice example of datagrid. I still have to take it apart and understand.
Thanks again
Bernd
Oh, DOH, forgot to put the splashstack up. As for downloading, till I put up the zips, I think you can do a right click and save as to get the file. I'll see what I can do to fix funCalc. I'll zip em up together and repost to revonline.

ibe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 61
Joined: Sun Oct 04, 2009 12:15 pm

Post by ibe » Sun Nov 01, 2009 5:46 pm

Thanks Sturgis, interesting datagrid sample. I'll have to have a good look at how it's done. Forms in datagrids really should have more documentation and samples.

At the moment I will stick with my table approach as it is simple to code, looks good and is what I need. Especially now as I've been experimenting with drag&drop which is nice with the new datagrid as it shows the line that is being dragged.

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Sun Nov 01, 2009 6:24 pm

Ibe,
I also try to get into datagrids, the documentation is here
http://revolution.screenstepslive.com/s ... s/datagrid
and there is a pdf at the right hand side that nicely introduces to the datagrid. Also look at the lessons etc. This is very instructive material, well done and easy to follow. Trevor Devore (the guy who did the datagrid) does a very good job documenting and supporting the datagrid.
regards
Bernd

lharris
Posts: 20
Joined: Fri May 22, 2009 5:27 pm

Post by lharris » Fri Nov 13, 2009 1:45 pm

Hi Ibe. I have been trying to implement an ical-like calendar using both your method and a datagrid but I am not entirely happy with the results. Any chance you could post your calendar stack so I could learn from it ?
Thanks
/leonard

ibe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 61
Joined: Sun Oct 04, 2009 12:15 pm

Post by ibe » Fri Nov 13, 2009 4:57 pm

Hi Leonard, no problem. My sample is just a proof of concept that I made to see if I could have a resizable calendar that looks like iCal. Each date is a grouped control that is duplicated. If you're doing a basic calendar system you probably want to put a list field or something similar inside each date.

Resizing is done in the mac style stack resizer that also handles the toolbar and status bar resizing. The buttons in the toolbar are just a picture, it's not functional but can be quite easily implemented.

The stack can be downloaded from my website http://www.bergroth.fi/tmp/Calendar%20sample.rev

Hope this helps you,

Ismo

lharris
Posts: 20
Joined: Fri May 22, 2009 5:27 pm

Post by lharris » Sat Nov 14, 2009 8:54 pm

Thanks Ibe. Very much appreciated.

rainforestinn
Posts: 8
Joined: Sun Aug 03, 2008 4:00 pm

Re: Trying to implement calendar

Post by rainforestinn » Thu Nov 26, 2009 3:02 pm

Hi

I'm looking for an example calendar file. The one you have at http://www.bergroth.fi/tmp/Calendar%20sample.rev is corrupted and won't open with RunRev 4.0 on Mac OS

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Trying to implement calendar

Post by bn » Thu Nov 26, 2009 3:22 pm

Hi rainforestinn,
put this into the message box in RunRev and hit return:

Code: Select all

go stack url "http://www.bergroth.fi/tmp/Calendar%20sample.rev"
This will get you the stack right into Rev.

regards
Bernd

rainforestinn
Posts: 8
Joined: Sun Aug 03, 2008 4:00 pm

Re: Trying to implement calendar

Post by rainforestinn » Thu Nov 26, 2009 3:24 pm

Please ignore my last post. The stack is not corrupted. It is because I am using Snow Leopard and RunRev won't let you double click to open a stack (or drag and drop to open a stack). Using Snow Leopard you can only open a stack using the "File Open" menu.

rainforestinn
Posts: 8
Joined: Sun Aug 03, 2008 4:00 pm

Re: Trying to implement calendar

Post by rainforestinn » Thu Nov 26, 2009 4:45 pm

I like your calendar. It is a very good jumping off place for making a calendar that interacts with a database and, like you said, has fields for showing, editing or inputing check off lists or whatever for each date. It would also be nice if you could drag and drop items from one date to another.

ibe
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 61
Joined: Sun Oct 04, 2009 12:15 pm

Re: Trying to implement calendar

Post by ibe » Thu Nov 26, 2009 6:18 pm

Thanks. I'll be revisiting the calendar in January and will be making it fully functional. If there is interest I can upload it for those interested in using it for their own projects. I'm not sure if I'll do drag&drop as I don't see my project needing that functionality, but let's see. Anyone have suggestions on how to visually show drag&drop ie. like the datagrid that shows a faded line being dragged. I think it would need visual feedback so that the end user truly sees that he/she is dragging something.

Ismo

rainforestinn
Posts: 8
Joined: Sun Aug 03, 2008 4:00 pm

Re: Trying to implement calendar

Post by rainforestinn » Thu Nov 26, 2009 11:41 pm

Yes. I'm definitely interested. There are several good calendar widgets out there but no full size calendar that can be used for entering data.

lharris
Posts: 20
Joined: Fri May 22, 2009 5:27 pm

Re: Trying to implement calendar

Post by lharris » Wed Feb 03, 2010 6:31 pm

Hi Ibe
Have you done any more development on your calendar app?

/leonard

Post Reply