Calendar App

Discussion in 'Share Your Creations' started by dlfallen, Sep 29, 2009.

  1. dlfallen

    dlfallen Active Member Licensed User

    This calendar app display's a month's worth of appointments on a single calendar page. Necessarily, the entries must be short. I looked and looked for an existing app that would do this, and finally gave up and wrote this one.

    I wrote this to keep track of my bridge appointments (see attached screenshot) and it does this quite well. It may, however, be of interest to others so I am posting it here.

    The app can schedule two types of appointments: reoccuring, and static (1-time appointments). The reoccuring appointments are of the form Every 2nd Wednesday, Every 4th Friday, etc. The appointments will be displayed in the proper location as you scroll forward or backward through the months. Static appointments only appear on the date selected and may be used to override a scheduled reoccuring appointment.

    The app supports two lines of text per day, each line must be quite short or the text will scroll and perhaps be unreadable.

    You can keep more than one calendar (I have one for bridge and one for the rest of my life). You may choose which calendar gets loaded as the default.

    Although the interface may appear somewhat idiosyncratic, it's not hard to figure out and use. The app works quite well on my Omnia 910 and is quite readable.
     

    Attached Files:

    Last edited: Oct 3, 2009
  2. Ariel_Z

    Ariel_Z Active Member Licensed User

    Beautiful and very handy :) I liked the ability to get a glance of a whole month. It is hard to find such apps.

    A couple of things I ran into:
    1. When deleting the last row an error occurs.
    2. When deleting the last row, ignoring the error, and adding a row, the value of the text of the previously deleted row appears. Is it on purpose?
    3. Ideas I had while looking:
    a. you can add a "long description field" so that it appears on the details form only (short desc. is a very good idea for the display)
    b. can double click be used to open the relevant event?
    c. is it possible to update an event?

    BTW - ran it only on desktop but it appears a bit cut on the right side - 2- 3 pixels - is it
    ok on yours?

    Ariel
     
  3. dlfallen

    dlfallen Active Member Licensed User

    Thanks for the feedback. To answer your questions:

    (1) Clearly a bug, I'll fix it.

    (2) No, it is not on purpose but when I fix (1) then this problem can't occur.

    (3a) This could be added, but only to the appointment forms. Ideally, one could click on the calendar display and the expanded text would show at the bottom. But I used stock labels to build the calendar and they are not clickable. I've given some thought to using the clickable label but haven't had the time to "enjoy" the learning curve necessary to implement this. If/when I do the whole interface (but not the calendar display) will change.

    (3b) I'm not sure what you mean by "open an event". If you mean edit it, you can do that on the appointment pages. But again, you cannot initiate an edit by clicking or double clicking on the calendar form because the labels do not implement the click event.

    (3c) You can update an event on the appointment page. Click on the row to be edited and the appointment text will appear in the text box below. After editing in the text box, click OK.

    Now that you mention it, my desktop display is also "cut" -- but on both sides. What I see is that the blue vertical lines do not appear on either side. On the device, I can see the blue lines on the right but not on the left. I'm inclined to leave it this was as it does not bother me any and I'm afraid if I shrink the boxes to allow the lines to be seen it will have a negative effect on the amount of text displayable within those labels.

    I'll do the bug fixes right away, and consider expanded appointment information if that doesn't lead to problems.

    Thanks again.
     
    Last edited: Oct 2, 2009
  4. agraham

    agraham Expert Licensed User

    There is a long standing bug on the desktop (as long as I've been using Basic4ppc) that does not set the client area size of a form correctly as it does not properly take into account the size of the window border when sizing the form. To get a correct sized form when optimised compiled (the IDE is still off) I have patched the *.cs files on my system that optimised compilation uses and passed the changes to Erel who indicated that it should get fixed in the next version.
     
  5. dlfallen

    dlfallen Active Member Licensed User

    I fixed the bugs found by Ariel Z. The Zip file in the original post has been replaced with one with updated source and .exe files.

    I do realize the program would be much more useful to others if there were an expanded appointment description capability. It's on my list but won't happen too soon.

    -Dave
     
  6. dlfallen

    dlfallen Active Member Licensed User

    I have implemented Ariel Z's suggestions which took much longer to code than the original version. I ran into several "opportunities to learn"; fortunately agraham is a great teacher.

    The net result (pun intended) is a program that is much more intuitive and user-friendly. Here are the highlights of Version 2:

    (1) Added a long text description box below the calender.
    (2) Selected date is highlighted.
    (3) Menu structure is simplified.
    (4) Double clicking on a date initiates edit mode (the program recognizes whether the existing appointment is one-time or reoccuring).
    (5) Changes are automatically saved.
    (6) On the device, the SIP is automatically shown or hidden, as appropriate.

    The new version retains the ability to maintain multiple calendars. All files (calendars, configuration file) are stored in AppPath.

    When saving a file, the character "^" is used as a marker for CRLF and "`" is a marker for a comma (unlike the previous version which did not support commas in the text). This means, of course, these two characters cannot be used in the text.

    I appreciate all the help and suggestions. Is this a great forum or what?
     

    Attached Files:

  7. klaus

    klaus Expert Licensed User

    I have tried your program, it has become quite interesting.

    One suggestion: a repetitive appointment every week would also be intersting.

    I ran the program on my htc-Touch HD device with a 480/800 screen Autoscale compiled. Unfortunately the LinkLabel object doesn't support autoscale.
    Attached a screenshot.

    For devices with 240/400 or 480/800 screens there would be room for a 3rd line of text per day.

    Best regards.
     

    Attached Files:

  8. dlfallen

    dlfallen Active Member Licensed User

    A weekly appointment capability is a good suggestion, and it shouldn't be difficult to implement. Another enhancement would be the ability to delete one-time appointments from previous months. This would keep the table that stores that information to a minimum.

    My Omnia would be capable of showing several lines of text. I wrote it for two lines so as to make it useful on most any device. One thing I might play with is making the number of lines user selectable. Might be kind of useful at that.

    Kindest regards,
    Dave
     
  9. agraham

    agraham Expert Licensed User

    It does now :).
     

    Attached Files:

  10. klaus

    klaus Expert Licensed User

    Thank's Andrew,

    Works fine.

    Best regards.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice