PDA

View Full Version : Calendar with image's


brisk
12-19-2008, 08:57 AM
just wondered.... as i was searching
for different use of the calendar plugin.

would this be possable and if any of the great
coders on here could show how this can be done

http://i82.photobucket.com/albums/j252/davemans/calendar.jpg


have the image change on the first day of each month
from a selection of images stored in the image folder
numbered 001 002 003...........

as i want to use images of me n my girlfriend
for our desktop calendar.
and i think this would look quite good.

please n thanks for any / all the help
i i an def no coder no mater how
easy apms is some things i can do
but most things i cant.....

so thanks.....

longedge
12-19-2008, 11:00 AM
I've never used the calendar plugin but I had a little play and it seems fairly straightforward. Assuming your images are numbered 01 to 12.jpg, then in the calendar plug in on month select event you could use something like -


month = String.Right(e_SelMonthYear, 2);
Image.Load("Image1", "AutoPlay\\Images\\"..month..".jpg");

However, I noticed a problem and after a quick search on the forum and I found this (http://www.indigorose.com/forums/showthread.php?t=25419&highlight=calendar) post. The month selection *MUST* be by clicking on the month and using the drop down list. The arrows don't fire the event.

It's a start anyway, you'd have to expand the code obviously. I don't know if selecting the month programmatically would work.

holtgrewe
12-19-2008, 11:36 AM
If you are looking to change the picture based on scrolling through the calendar, then you can use longedge approach.

However, if you only want to change the image on the first day of each month, the System.GetDate(4) will return a string MM for the current month, then you don't even need to use the calendar plugin for determining the image. You could add a mini-slideshow of all images (lots of options there).

longedge
12-19-2008, 12:18 PM
If you are looking to change the picture based on scrolling through the calendar, then you can use longedge approach.

However, if you only want to change the image on the first day of each month, the System.GetDate(4) will return a string MM for the current month, then you don't even need to use the calendar plugin for determining the image. You could add a mini-slideshow of all images (lots of options there).

:) Don't go with my suggestion - holtgrewe's make much more sense. I'm still playing with the calendar at the moment and I know now why I've never used it :lol

JDog37
12-19-2008, 02:33 PM
I totally Love This Idea!! I'm not quite getting how to do this.. the System.GetDate(4) will return a string MM for the current month???

Sry.. :wow

longedge
12-20-2008, 01:25 PM
OK well I'm fed up now of trying to do this within AMS :) - (if I was doing this I'd probably do it with a flash object).

The updated example loads the correct image for the current month at startup (as per holtgrewe's suggestion) and then if you select a different month by clicking on the month and selecting from the choices it also loads the correct month image.

If you use the arrows right and left to select a different month it won't work until you select a day in that month. The arrows don't fire the select event!!

@ JDog37 - System.GetDate(4) is exactly the same as System.GetDate(DATE_FMT_MONTH). What is it that you don't get? Have a look in the on show of the attached example.

brisk
12-20-2008, 03:24 PM
thanks for the info / help guys..

i have added a simple diary function
taken from another sample on the forum.


http://i82.photobucket.com/albums/j252/davemans/udateyy.jpg



what else do you think it needs..
add to it and post the .apz file back..

JDog37
12-21-2008, 09:35 PM
This a nice example. I'm going to work on some graphics for it if anyone wants to check them out... I take tons of photos, so I will add some for the months.

The diary is a nice touch. Good job guys! :yes:yes

nals
12-22-2008, 10:45 PM
Nice Work :yes

JDog37
03-26-2009, 05:20 PM
Is there a way to use the exact .apz but.. to be able to pick from a brows box and upload your own images and still change with the month?? That would Kick A@!...

Joe

JDog37
04-01-2009, 08:21 PM
Can this be done? (check Pic) I'v looked at the properties and cant find anything on the forum about it. I just want to change the gray backing color behind the MONTHS to black.. If not i there a way to build a calendar with images??????

Thank you,
Joe

TopicTJ
04-02-2009, 06:27 AM
Yes and No!

You can certainly change the calendar plugin properties so most of the background is black (see attached) but no way - so far as I know - of changing the "header" colour.

If you need/want to have all black and decide to start from scratch then there may well be other and easier ways to do it but the approach I took was by using a grid, the excellent DateDiff plugin and a lot of code!

Hope that helps


TTJ

JDog37
09-27-2009, 10:10 PM
I was wondering if this is poss to do & how... :huh

The picture that comes up for the selected month that I choose.. can that also be the background as well as the selected month picture?? I posted what i mean.

Thank you for any help in advance! :yes

RizlaUK
09-28-2009, 08:19 AM
Hey Joe, i seem to remember there being some bug with the page background properties function where the image was not being set, not sure if its been fixed or not

the standard work-around (for then) was to set a image as the background and uncheck its "Enabled" checkbox on the properties sheet, this way you can still move the window from clicking/dragging the image


See, i can be nice too :D (just not all the time)