C-Touch Calendar???

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by CLP-500, Apr 28, 2007.

  1. CLP-500

    CLP-500

    Joined:
    Mar 2, 2006
    Messages:
    6
    Likes Received:
    0
    Location:
    Alstonville, NSW, Australia
    :confused:
    Im looking for a way to make a calendar page for a colour C-Touch and im kinda lost its for a demo unit and also for a template if anyone could assist or has a calendar working on C-Touch plz contact me on either of these email adresses.

    [email protected]
    or
    [email protected]

    Regards Max Nankervis
    Extreme Home Automation
    :confused:
     
    CLP-500, Apr 28, 2007
    #1
  2. CLP-500

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Darren, Apr 30, 2007
    #2
  3. CLP-500

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Darren,
    Just tried the template - looks good but shows the wrong day of month

    dave
     

    Attached Files:

    Last edited by a moderator: Apr 30, 2007
    Dave Byron, Apr 30, 2007
    #3
  4. CLP-500

    CLP-500

    Joined:
    Mar 2, 2006
    Messages:
    6
    Likes Received:
    0
    Location:
    Alstonville, NSW, Australia
    Tyvm

    Thanks for your help Darren much appreciated:)
     
    CLP-500, Apr 30, 2007
    #4
  5. CLP-500

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    try this
    calDayOfWeekOffset := calDate + (DayOfWeek + Day + 2) mod 7;

    dave
     
    Dave Byron, Apr 30, 2007
    #5
  6. CLP-500

    CLP-500

    Joined:
    Mar 2, 2006
    Messages:
    6
    Likes Received:
    0
    Location:
    Alstonville, NSW, Australia
    Where do i insert that?
    Just as a command string in logic?

    Regards Max Nankervis
    Extreme Home Automation
     
    CLP-500, Apr 30, 2007
    #6
  7. CLP-500

    Mr Mark

    Joined:
    Jan 27, 2006
    Messages:
    323
    Likes Received:
    5
    Location:
    FNQ
    In the Calendar Module about 3/4 of the way down.

    { For each day in the month, draw the cell }
    for calDate := 1 to calDaysInMonth do
    begin
    {Work out which cell is for this date }
    calDayOfWeekOffset := calDate + (DayOfWeek + Day + 2) mod 7;

    instead of:

    calDayOfWeekOffset := calDate + (DayOfWeek + Day + 5) mod 7;


    Mark
     
    Mr Mark, Apr 30, 2007
    #7
  8. CLP-500

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Mark
    Does not work for all days - put brackets in like
    calDayOfWeekOffset := calDate + ((DayOfWeek + Day + 5) mod 7);

    dave
     
    Dave Byron, Apr 30, 2007
    #8
  9. CLP-500

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Sorry about that. I wasn't feeling very well yesterday and apparently wasn't thinking very clearly either :eek:

    The correct line of code should have been :

    Code:
    calDayOfWeekOffset := calDate + (DayOfWeek - Day + 35) mod 7 - 1;
    I have updated the template in http://www.cbusforums.com/forums/showthread.php?t=3304. I have also added the ability to set the size and position of the calendar.
     
    Darren, May 1, 2007
    #9
  10. CLP-500

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Darren
    Taken yours and tarted up a bit
    Check this one

    tks for your help

    dave
     

    Attached Files:

    Dave Byron, May 1, 2007
    #10
  11. CLP-500

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Well done Dave.

    When I have some time, I might try to extend it a bit more.
     
    Darren, May 2, 2007
    #11
  12. CLP-500

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Darren,
    Tks - now need a new command in the Pascal (like other languages have)
    FirstDayOfMonth think how much easier that would make it.

    Do you have any code to centre text - then I will put birthdays in the boxes.



    dave
     
    Dave Byron, May 2, 2007
    #12
  13. CLP-500

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    Eventually we will have a function which returns the day of the week for a specified date.
    Not yet. It is on the list of things to do.
     
    Darren, May 3, 2007
    #13
  14. CLP-500

    dennyzone

    Joined:
    Feb 14, 2007
    Messages:
    6
    Likes Received:
    0
    Location:
    Nashville
    Special Day with calendar

    I have a customer that wants the month on the top of the calendar and he wants his special days to be displayed on the calendar. Is there any way to connect this type of information to the logic engine to make this work?

    Thanks bunches from
    American Clipsal Tech-support
    Dennis Panzone
     
    dennyzone, Apr 25, 2008
    #14
  15. CLP-500

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    This functionality will be available very soon without needing any logic. Stay tuned :)
     
    Darren, Apr 28, 2008
    #15
  16. CLP-500

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    Darren,
    Are you putting in hot spot selection (touch a cell and perform an action) and centre text options ???


    dave
     
    Dave Byron, Apr 30, 2008
    #16
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.