messages
listlengths 1
1
| topic
stringlengths 2
60
|
|---|---|
[
{
"date": "2007-09-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nI have written an event-manager/scheduler class. It´s still in beta state, because the documentation is not completed and it´s not fully tested under W98, W2k and Vista. It´s working fine under XP.\n\nIf you want test a demo, please drop me a note.",
"time": "09:19",
"topic": "Calendar / Appointment",
"username": "StefanHaupt"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-09-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Stefan\n\nI am interested in a demo\n\nThanks \n\nRichard",
"time": "14:46",
"topic": "Calendar / Appointment",
"username": "Richard Chidiak"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-09-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I can test under XP and Vista. I'd be happy to check it out and provide you with feedback.\n\nI do have a working system, based on the DOS Grumpfish model, but today's windows applications have pretty well standardized on a look and feel.\n\nMy email is <!-- e --><a href=\"mailto:timstone@masterlinksoftware.com\">timstone@masterlinksoftware.com</a><!-- e --> and I would appreciate an opportunity to test the class.\n\nTim",
"time": "15:46",
"topic": "Calendar / Appointment",
"username": "TimStone"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-09-25",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I will pleased to test it in windows 98 SE, my email is <!-- e --><a href=\"mailto:jmurugosa@gmail.com\">jmurugosa@gmail.com</a><!-- e -->",
"time": "20:32",
"topic": "Calendar / Appointment",
"username": "jose_murugosa"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi all,\n\nthanks for your interest, I will compile a demo and send it this afternoon",
"time": "08:35",
"topic": "Calendar / Appointment",
"username": "StefanHaupt"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Ok, done !\n\nRichard,\n\nI sent the demo to <!-- e --><a href=\"mailto:contact@cbati.com\">contact@cbati.com</a><!-- e -->, was that right ?",
"time": "11:25",
"topic": "Calendar / Appointment",
"username": "StefanHaupt"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Stefan,\n\ni will get it through this email also.\n\nMy mail is <!-- e --><a href=\"mailto:richard@cbati.com\">richard@cbati.com</a><!-- e -->\n\nThanks for your interest\n\nRichard",
"time": "12:55",
"topic": "Calendar / Appointment",
"username": "Richard Chidiak"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Please include me as well in the demo ..\n\nRick Lipkin\nSC Dept of Health, USA\n<!-- e --><a href=\"mailto:lipkinrm29063@yahoo.com\">lipkinrm29063@yahoo.com</a><!-- e -->",
"time": "14:21",
"topic": "Calendar / Appointment",
"username": "Rick Lipkin"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-09-26",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Stefan,\n\nIt may be good idea if you upload it to a public host like rapidshare or similar, in case that you want to share it, before lots of users start requesting it here <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) --> Thanks,",
"time": "18:17",
"topic": "Calendar / Appointment",
"username": "Antonio Linares"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-09-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Antonio,\n\nyes, you are right, that a good idea.\n\nHere everyone can download the demo:\n[url:2zzclat1]http://rapidshare.com/files/58565980/Event.zip.html[/url:2zzclat1]",
"time": "08:45",
"topic": "Calendar / Appointment",
"username": "StefanHaupt"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-10-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Stefan\n\nCan you share the source code of the class ?\n\nTim, Are you using it ?\n\nThanks for response,\n\nRichard",
"time": "14:17",
"topic": "Calendar / Appointment",
"username": "Richard Chidiak"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-10-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Richard,\n\nNo, I'm not using it. I commented back directly on some issues, but in fact, it doesn't work like the calendar/scheduling classes we see today. I'm doing some extensive cleanup work ( about 100,000 lines of code ), and when I finish that ( hopefully next week ), I'm going to look into this issue more extensively, and perhaps build a component that gets me closer to what I want.\n\nI've looked at some existing controls but they don't address DBF files, and they are inherently single user. I want to build a scheduler for a shop that can be accessed from any computer, updated from any computer, and which displays like the current day/week/month schedulers ( ie. Outlook appearance ). I have one right now that is a modification of a DOS scheduler, and it works, but it doesn't have the visual type interface our clients will expect today. Its an enhancement of the old Grumpfish program, turned into a GUI.\n\nTim",
"time": "17:36",
"topic": "Calendar / Appointment",
"username": "TimStone"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-10-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hello \n\nI have almost finish this control .\n\n[url=http://img143.imageshack.us/my.php?image=immaginems7.jpg:3inz2pfl][img:3inz2pfl]http://img143.imageshack.us/img143/6248/immaginems7.th.jpg[/img:3inz2pfl][/url:3inz2pfl]\n\nRegards MAurizio\n<!-- w --><a class=\"postlink\" href=\"http://www.nipeservice.com\">www.nipeservice.com</a><!-- w -->",
"time": "07:20",
"topic": "Calendar / Appointment",
"username": "Maurizio"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-10-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Wonderful!\n\nEMG",
"time": "07:57",
"topic": "Calendar / Appointment",
"username": "Enrico Maria Giordano"
}
] |
Calendar / Appointment
|
[
{
"date": "2007-10-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Richard,\n\n[quote=\"Richard Chidiak\":27i6xnta]Stefan\n\nCan you share the source code of the class ?\n\nRichard[/quote:27i6xnta]\n\nNo, not at the moment, it´s a project still in progress. At first it was planned to be commercial product, but my actual work in our university as a teacher of CAD takes much time. At the moment I have not much time for programming. \n\nBut I will think about it.",
"time": "08:48",
"topic": "Calendar / Appointment",
"username": "StefanHaupt"
}
] |
Calendar / Appointment
|
[
{
"date": "2008-12-22",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"Maurizio\":1rgnvhhd]Hello \n\nI have almost finish this control .\n\n[url=http://img143.imageshack.us/my.php?image=immaginems7.jpg:1rgnvhhd][img:1rgnvhhd]http://img143.imageshack.us/img143/6248/immaginems7.th.jpg[/img:1rgnvhhd][/url:1rgnvhhd]\n\nRegards MAurizio\n<!-- w --><a class=\"postlink\" href=\"http://www.nipeservice.com\">www.nipeservice.com</a><!-- w -->[/quote:1rgnvhhd]\r\n\r\n\r\nNON HO PAROLE !!!!!!\r\nAccidenti a me quando ti ho inviato la mia classe !!!",
"time": "01:19",
"topic": "Calendar / Appointment",
"username": "Silvio"
}
] |
Calendar / Appointment
|
[
{
"date": "2013-05-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Friends:\n\nI need to show a calendar of 12 months where the user can select\nthe holidays of the year.\n\nHave I seen that there is a control called CALENDAR in PELLESC, has anyone used it?\ndo you have an example?\n\nI have also seen the class TCalex (I think that it is Daniel García) but I think\nthat is more oriented to create agendas, or I'm wrong?, and is not exactly what\nthat I need.\n\nBest regards",
"time": "17:07",
"topic": "Calendar Class",
"username": "Armando"
}
] |
Calendar Class
|
[
{
"date": "2013-05-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Perhaps you can use the Otto Pickdate class .. I remember a user could select the days from a year",
"time": "17:18",
"topic": "Calendar Class",
"username": "Silvio.Falconi"
}
] |
Calendar Class
|
[
{
"date": "2013-05-01",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio:\n\nThanks for your advice, where can I get the Otto's class?\n\nRegards",
"time": "19:20",
"topic": "Calendar Class",
"username": "Armando"
}
] |
Calendar Class
|
[
{
"date": "2013-05-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "on this forum",
"time": "12:40",
"topic": "Calendar Class",
"username": "Silvio.Falconi"
}
] |
Calendar Class
|
[
{
"date": "2013-05-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio:\n\n\nYes I have a look to Otto's class but is not exactly what I was looking for. It's see thet is\nfor agenda.\n\nThanks & regards",
"time": "13:16",
"topic": "Calendar Class",
"username": "Armando"
}
] |
Calendar Class
|
[
{
"date": "2013-05-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "you can search Paco Calendar old or Drcal old classes on another sites ( olivares, fivewin.br) \nI think they can show 12 month into a dialog to set holydays\nIhad something but not I am far from my home I have men at work in my house because of problems caused by the earthquake",
"time": "17:06",
"topic": "Calendar Class",
"username": "Silvio.Falconi"
}
] |
Calendar Class
|
[
{
"date": "2013-05-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Silvio:\n\nThanks for your advice, and no problems at all, I hope you and your family are ok after\nthe earthquake.\n\nRegards",
"time": "17:28",
"topic": "Calendar Class",
"username": "Armando"
}
] |
Calendar Class
|
[
{
"date": "2008-01-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "About a month ago several people were noting the need for a Calendar control in their applications. Although DTPICKER provides a good popup for a date field, the idea was to post a calendar onto a dialog that would remain on display.\n\nActually, in the \\FWH\\Samples there is a calendar.prg & .rc that can be modified quite nicely to do the job. Using FW Harbour's bitmap controls and expanding the size of the dialog can result in a useable date selection control that can coexist with other data very nicely.\n\nI have a Scheduler program that incoporates a lot of data in addition to just the date. It is used for automotive repair so it attaches to a vehicle, client, and estimate. It incorporates a beginning and end time and a work area. This is all handled well with normal FWH ( 7.12 ) and xHarbour.\n\nThe original Calendar was written by Tom Waldon for 16 bit Clipper. I'd be happy to share the samples of my very simply modified controls with Antonio because they are derived from the distributed work of FWH, or if he wishes, I can post a link for their download.\n\n[b:2rgf2et4]This is not a stand alone control ! [/b:2rgf2et4] It is simply FWH code that can be included in your own project if you have a need. It is used within a resource (.rc) file and can be included as part of an existing dialog, or as the base to create a dialog.\n\nIf appropriate, I'm sure this snippet could be upgraded quite nicely.",
"time": "01:15",
"topic": "Calendar Control",
"username": "TimStone"
}
] |
Calendar Control
|
[
{
"date": "2008-01-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim\n\nI found that code myself and I took the basic calendar and modified it to our Agency's Time and Reporting system.\n\nI use the buttons to build an array ( by date ) for users to enter in their codes associated with their job activities.\n\nInteresting to look at as well to see how to hide controls based on the different days in a month.\n\nKewl code !!\n\nRick Lipkin",
"time": "01:48",
"topic": "Calendar Control",
"username": "Rick Lipkin"
}
] |
Calendar Control
|
[
{
"date": "2008-01-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Why don't you try the calendar, you find at my website ?\n\nGreetings from Germany\n\nU. König <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "19:27",
"topic": "Calendar Control",
"username": "ukoenig"
}
] |
Calendar Control
|
[
{
"date": "2008-01-10",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Its nice and functional, but I wanted just a simple calendar to put on an existing dialog. What I was able to do with the FWH sample code, and modifying it, works well.",
"time": "19:49",
"topic": "Calendar Control",
"username": "TimStone"
}
] |
Calendar Control
|
[
{
"date": "2008-01-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I like the C5 Calendar control\n\nTake a look",
"time": "19:55",
"topic": "Calendar Control",
"username": "UD previous posts"
}
] |
Calendar Control
|
[
{
"date": "2008-01-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I'm sure there are many excellent calendar controls. As I pointed out, this is not a control. It is simply a modification of the program that is included with FWH when supplied by Antonio, and it shows you how to build a calendar on to an existing Dialog. I posted the info simply because people had asked about it in the past.",
"time": "22:48",
"topic": "Calendar Control",
"username": "TimStone"
}
] |
Calendar Control
|
[
{
"date": "2008-01-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "[quote=\"ukoenig\":18ltb684]Why don't you try the calendar, you find at my website ?[/quote:18ltb684]\n\nUkoenig,\n\nI had dowloaded your calendar. Congratulation. \nIn its source code I read spanish comments and function's names with spanish contents. Which is the origin of this calendar class? \n\nRegards",
"time": "09:45",
"topic": "Calendar Control",
"username": "Manuel Valdenebro"
}
] |
Calendar Control
|
[
{
"date": "2008-01-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "A few years ago, i found a calendar-class for the\n16 Bit FW, but it was in spanish.\nI had to do some changes, to use it for the new FWH. \nFor me it was not easy, because i don't know anything about spanish.\n\nGreetings from germany\n\nU.König <!-- s:lol: --><img src=\"{SMILIES_PATH}/icon_lol.gif\" alt=\":lol:\" title=\"Laughing\" /><!-- s:lol: -->",
"time": "15:24",
"topic": "Calendar Control",
"username": "ukoenig"
}
] |
Calendar Control
|
[
{
"date": "2008-01-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I think...\nMr Tim Stone are searching another type of calendar ....like office 2007\nBut he want it free ....",
"time": "17:59",
"topic": "Calendar Control",
"username": "Silvio"
}
] |
Calendar Control
|
[
{
"date": "2008-01-12",
"forum": "FiveWin for Harbour/xHarbour",
"text": "No, I don't want something for free. I needed an immediate, interim, solution for a specific project. \n\nIn the long term, I will be implementing several controls, and none of them do I expect to be free ....",
"time": "22:56",
"topic": "Calendar Control",
"username": "TimStone"
}
] |
Calendar Control
|
[
{
"date": "2008-01-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Wich is the specific project ?\nCan you explain me please ?",
"time": "01:00",
"topic": "Calendar Control",
"username": "Silvio"
}
] |
Calendar Control
|
[
{
"date": "2008-01-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I sent you a screen shot by email of the completed work ... for now\nI also explained the various elements.\n\nIt is an appointment scheduler for vehicle services. It includes the following:\n + Scheduling an appointment for any day and/or time and varied intervals\n + Attaching a vehicle, and client to the appointment\n + Creating and Attaching an estimate, which includes parts and labor ( in detail ) to the appointment\n + Attaching notes to the appointment\n + Assigning the appointment to a specific work area \n + Permitting reoccuring appointments ( auto scheduling )\n + The ability to move appointments\n + Printing of the schedule\n + A Gant chart for day, and one for the week, which shows work areas and the times assigned\n + The ability to select a date on a calendar and instantly see all the appointments for that day, and the detail\n + Additional notes capability\n\nThis scheduler interfaces with the workorder development screen. By starting a workorder, pressing the Appointment button, you see a list of pending appointments. Select the one you want, and it automatically adds the client, vehicle, parts, labor, and notes to the newly created workorder ... on button select !\n\nIt all works perfectly. I had a defined space in which to create the date selection capability. It was working fine with DTPicker but I wanted to show all of the calendar ( for the month ) for single key press changes of the viewed date. WIth DTPICKER it takes two keystrokes, and my clients don't like even one extra keystrokes.\n\nI had to get this done so I could ship software to my clients. This is only one very small part of the application ... perhaps 1% of the total project.\n\nI may soon purchase a control that gives me more flexibility. For example, C5 ( mentioned previously by a contributor ) will supposedly allow me to change the display of all dates on the calendar where an appointment may be scheduled. Its not necessary, but it is nice. The Codejock controls are very powerful, but they are clearly an Outlook display and I'm not yet sure if that will work properly in this situation.\n\nAnyway, my need was resolved last week with a modification of the existing FWH code, and when I move forward to enhance the look of this I would certainly find it wise to use one of the commercial calendar controls available at the time. However, it is also important to handle all of the various data components. \n\nBTW ... programming is to meet the needs of my clients. I could easily do this in a more window methodology with a popup appointment screen, but they want to see all the data as they scroll through the appointments, and the list of all the appointments when they select the date.\n\nI hope this isn't too wordy.",
"time": "02:02",
"topic": "Calendar Control",
"username": "TimStone"
}
] |
Calendar Control
|
[
{
"date": "2008-01-13",
"forum": "FiveWin for Harbour/xHarbour",
"text": "ok I understand",
"time": "03:44",
"topic": "Calendar Control",
"username": "Silvio"
}
] |
Calendar Control
|
[
{
"date": "2008-01-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim,\n\nYour thorough description of how you use your modification of the FWH calendar.prg lit up a few lights for me in my application area (HR performance management). Thanks for getting me thinking! Could you provide a link for downloading your mod of calendar.prg and calendar.rc?\n\nThanks.\n\n- Roger",
"time": "15:21",
"topic": "Calendar Control",
"username": "Roger Seiler"
}
] |
Calendar Control
|
[
{
"date": "2008-01-17",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Email me: timstone at masterlinksoftware dot com",
"time": "21:33",
"topic": "Calendar Control",
"username": "TimStone"
}
] |
Calendar Control
|
[
{
"date": "2010-05-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "In the tcalenda.prg class, you define the date format to British by default. All of my date lookups are American, but once the calendar is run once, it changes the display throughout the program. \n\nIs there a call to override your default ? If not, there needs to be. I revised it in the source code, but we wouldn't want to do this with every future release. Thanks.",
"time": "22:27",
"topic": "Calendar Control Date Format",
"username": "TimStone"
}
] |
Calendar Control Date Format
|
[
{
"date": "2010-05-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Tim...\n\nthe calendar is a control from window api, this depend of date format from windows, you can use SET DATE TO AMERICAN\n\n[img:308a39qd]http://www.sitasoft.net/fivewin/screen/dateformat.png[/img:308a39qd]\n\nusing SET DATE TO AMERICAN\n\n[img:308a39qd]http://www.sitasoft.net/fivewin/screen/dateamerican.png[/img:308a39qd]\n\nthe class not use British format by default, the class use #define DATEFORMAT \"dd/mm/yyyy\" only for control, for this way the class \"know\" where is DAY, MONTH and YEAR (always), i mean if you use SET DATE TO AMERICAN, internally the class change to \"dd/mm/yyyy\" in some methods but after restore to America format again, METHOD SaveDateFormat() and METHOD RestoreDateFormat()",
"time": "23:38",
"topic": "Calendar Control Date Format",
"username": "Daniel Garcia-Gil"
}
] |
Calendar Control Date Format
|
[
{
"date": "2009-04-15",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Now that several people are working with CodeJock, has anyone actually tried working with the Calendar Pro module ? Its a powerful tool if it can be used with FWH 9.04.",
"time": "16:28",
"topic": "Calendar Pro",
"username": "TimStone"
}
] |
Calendar Pro
|
[
{
"date": "2009-04-16",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Hi Tim,\n\nThis is a First simple screen shot.\n\n[img:xrt4a3cv]http://www.fivetech.com.tw/fwh/ribbonbar_calendar01.jpg[/img:xrt4a3cv]\n\n[img:xrt4a3cv]http://www.fivetech.com.tw/fwh/ribbonbar_calendar02.jpg[/img:xrt4a3cv]\n\nPlease visit my Ribbonbar sample code and add these lines.\n\n[code=fw:xrt4a3cv]<div class=\"fw\" id=\"{CB}\" style=\"font-family: monospace;\"><br /><span style=\"color: #00C800;\">local</span> oAct2<br /><br /> oAct2 := TActiveX<span style=\"color: #000000;\">(</span><span style=\"color: #000000;\">)</span>:<span style=\"color: #00C800;\">New</span><span style=\"color: #000000;\">(</span> oWnd, <span style=\"color: #ff0000;\">\"Codejock.CalendarControl.12.1.1\"</span>, <span style=\"color: #000000;\">150</span>, <span style=\"color: #000000;\">0</span>, <span style=\"color: #000000;\">1000</span>, <span style=\"color: #000000;\">550</span> <span style=\"color: #000000;\">)</span><br /> </div>[/code:xrt4a3cv]\n\n\nRichard",
"time": "03:14",
"topic": "Calendar Pro",
"username": "richard-service"
}
] |
Calendar Pro
|
[
{
"date": "2016-10-02",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Good afternoon!\n\nRecently developed a schedule linked to google calendar.\nIt is working using the Google OAuth 2.0 authentication method, which is the new form of authentication token google.\n\nSome images:\n\nPermission:\n[img:v7sw7rdk]http://imagizer.imageshack.us/v2/640x480q90/922/IjvZTb.jpg[/img:v7sw7rdk]\n\nHome Screen\n[img:v7sw7rdk]http://imagizer.imageshack.us/v2/640x480q90/921/81RT2K.jpg[/img:v7sw7rdk]\n\nDetails\n[img:v7sw7rdk]http://imagizer.imageshack.us/v2/640x480q90/921/dswGwA.jpg[/img:v7sw7rdk]\n\nFull application has control with local database.\nTo MYSQL is ready, but is easily adapdata to any other type of database (DBF, Postgres, etc).\n\nI'm selling the application code, to be able to include the schedule in its application\nOAuth 2.0 authentication method can be used for any other integration with google.\n\nTo work DEMO MODE:\n* You must create a project on google apis: [url:v7sw7rdk]https://console.developers.google.com/apis/[/url:v7sw7rdk]\n* Enable Google Calendar API\n* Create credentials of the \"Customer ID OAuth 2.0\", Under Application type, choose \"Other\".\n* Perform download the JSON file and rename it to \"client_id.json\".\n\n** To facilitate the execution of DEMO MODE, I set my file \"CLIENT_ID.JSON\" to download. But it is for a limited period.\nDownload JSON File: [url:v7sw7rdk]https://bitbucket.org/wmanesco/schedule/downloads/client_id.json[/url:v7sw7rdk]\n\nPut together with the application.\n\nI will put demo mode for download\nTo buy the code send email to <!-- e --><a href=\"mailto:manesco.william@gmail.com\">manesco.william@gmail.com</a><!-- e -->\n\nAny problems of implementation or questions, report on the forum or email\nThank you!\n\ndownload: [url:v7sw7rdk]https://bitbucket.org/wmanesco/schedule/downloads/Schedule.rar[/url:v7sw7rdk]\nDownload JSON File: [url:v7sw7rdk]https://bitbucket.org/wmanesco/schedule/downloads/client_id.json[/url:v7sw7rdk] Place Together with the application.",
"time": "17:59",
"topic": "Calendar integrated with Google Calendar",
"username": "wmanesco"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "William his work is fantastic, congratulations ... \n\nI really want to buy, I will send an email to know the details of payment!\n\n <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "03:50",
"topic": "Calendar integrated with Google Calendar",
"username": "MGA"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Very thanks for the response and interest in the product!\n\n <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "05:07",
"topic": "Calendar integrated with Google Calendar",
"username": "wmanesco"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-03",
"forum": "FiveWin for Harbour/xHarbour",
"text": "To facilitate the execution of DEMO MODE, I set my file \"CLIENT_ID.JSON\" to download. But it is for a limited period.\n\n[url:258kv6oi]https://bitbucket.org/wmanesco/schedule/downloads/client_id.json[/url:258kv6oi]",
"time": "17:30",
"topic": "Calendar integrated with Google Calendar",
"username": "wmanesco"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "<!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \n\nI am very happy with this implementation, my clients are praising much. Congratulations on the job!",
"time": "14:57",
"topic": "Calendar integrated with Google Calendar",
"username": "MGA"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-04",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks!!\n\n <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D -->",
"time": "15:36",
"topic": "Calendar integrated with Google Calendar",
"username": "wmanesco"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Good job, good code and interesting functionality to integrate into systems!",
"time": "21:10",
"topic": "Calendar integrated with Google Calendar",
"username": "aflm"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-14",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thank you for opinion, it is very important! <!-- s8) --><img src=\"{SMILIES_PATH}/icon_cool.gif\" alt=\"8)\" title=\"Cool\" /><!-- s8) -->",
"time": "14:17",
"topic": "Calendar integrated with Google Calendar",
"username": "wmanesco"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-18",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Compliments, excellent work. \n\nThanks. \n\nMaurizio",
"time": "08:05",
"topic": "Calendar integrated with Google Calendar",
"username": "Maurizio"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-21",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Thanks Maurizio!\n\nI'm happy with review.",
"time": "04:03",
"topic": "Calendar integrated with Google Calendar",
"username": "wmanesco"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-24",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Good job! Thanks for sending the code! My customers look forward for having it into my app. Thanks a lot also for the very good contact and fast answers of my emails.",
"time": "19:22",
"topic": "Calendar integrated with Google Calendar",
"username": "IBTC"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-10-27",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Very thanks!!",
"time": "20:10",
"topic": "Calendar integrated with Google Calendar",
"username": "wmanesco"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-12-06",
"forum": "FiveWin for Harbour/xHarbour",
"text": "Just to inform.\n\nThere is a new version with some fixes and improvements!",
"time": "13:22",
"topic": "Calendar integrated with Google Calendar",
"username": "wmanesco"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-12-11",
"forum": "FiveWin for Harbour/xHarbour",
"text": "But why not use tcalex class and integrated with it the export to Google calendar ?",
"time": "17:17",
"topic": "Calendar integrated with Google Calendar",
"username": "Silvio.Falconi"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2016-12-19",
"forum": "FiveWin for Harbour/xHarbour",
"text": "I believe it can be done well, but I honestly didn't to work with TCalex and would like to have more control over the application. The main one (google integration) can be adapted to use as needed...\n\nThanks",
"time": "18:34",
"topic": "Calendar integrated with Google Calendar",
"username": "wmanesco"
}
] |
Calendar integrated with Google Calendar
|
[
{
"date": "2008-07-16",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Alguien sabe si existe algún control de calendario anual del tipo los doce meses en el mismo control, no me refiero a los 12 cuadritos de los meses, si no a 12 lineas una por cada mes, recuerdo haberlo visto en los antiguos programas del grupo sp, y antiguamente alguien hizo algo cuando teníamos el foro de las news.\r\nAlguien me puede poner en la pista.\r\n\r\nGracias.",
"time": "07:28",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Andrés González\":2fkr8m78]Alguien sabe si existe algún control de calendario anual del tipo los doce meses en el mismo control, no me refiero a los 12 cuadritos de los meses, si no a 12 lineas una por cada mes, recuerdo haberlo visto en los antiguos programas del grupo sp, y antiguamente alguien hizo algo cuando teníamos el foro de las news.\nAlguien me puede poner en la pista.[/quote:2fkr8m78]Hola Andrés:\r\n\r\n[img:2fkr8m78]http://img515.imageshack.us/img515/6633/calanualxa1.jpg[/img:2fkr8m78]\r\nEs algo así lo que necesitas?\r\n\r\nSaludos.\r\n\r\nManuel Mercado.",
"time": "00:41",
"topic": "Calendario anual",
"username": "mmercado"
}
] |
Calendario anual
|
[
{
"date": "2008-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Manuel... qeu control es ese??? \r\n\r\nEs free? \r\n\r\nLo necesito..<!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->",
"time": "02:16",
"topic": "Calendario anual",
"username": "Ricardo Ramirez E."
}
] |
Calendario anual
|
[
{
"date": "2008-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Ricardo Ramirez E.\":1cx439k2]Manuel... qeu control es ese???Es free? \nLo necesito..<!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->[/quote:1cx439k2]jajaja\r\n\r\nNo sé que pasó con la imagen, aquí la pongo nuevamente:\r\n\r\n[img:1cx439k2]http://img294.imageshack.us/img294/9752/calanualrn6.jpg[/img:1cx439k2]\r\n\r\nSimplemente con la idea de Andrés ayer mismo (no me tomó más de 2 horas) escribí este programa cuya función principal recibe una fecha, muestra el calendario de todo el año con TSBrowse y devuelve la nueva fecha seleccionada.\r\n\r\nSi a alguien le sirve, con gusto se lo envío.\r\n\r\nSaludos.\r\n\r\nManuel Mercado",
"time": "06:38",
"topic": "Calendario anual",
"username": "mmercado"
}
] |
Calendario anual
|
[
{
"date": "2008-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "D. Manuel, sí sí sí sí sí sí sí eso es exactamente lo que quiero, pero quiero añadirle datos en las casillas osea al dia [1 M] [2 M] [3 M.]... [6 L] [7 L], que como veo no debe de haber ningún problema. Vamos, la idea es plasmar un cuadrante de servicios de una plantilla, tengo ya cosas hechas con un calendario mensual, donde en cada casilla pongo el servicio de cada día de una persona, pero también estaba mirando la posibilidad de que se saliera por todo un año y recordé que hacia mucho tiempo los del grupo sp lo habían hecho, por eso pensé que el control ya debía de estar hecho. Es usted un genio. No es una pregunta es una afirmación. Espero ávido noticias suyas. Por cierto debe de usted estar en América pues empieza la semana en domingo y aquí la empezamos el lunes.\r\n\r\nUn cordial saludo.",
"time": "08:01",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "He cambiado la dirección de email pues google nos da mas capacidad para enviara fichero si usted lo desea.",
"time": "08:21",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "D. Manuel he compilado perfectamente sin problema alguno, bueno solo cuando hago dobleclick en la cabecera de los días de la semana me hace otro orden distinto de los días y si pulso en la primera o ultima semana me genera un error pero el mes me lo muestra tal cual lo ha puesto usted en el foro. Por otra parte sigo investigando como cambiar el día de inicio para que sea un lunes no un domingo y como hacer mas grande las celdas para poner mas datos en ellas. Le comento cosas a medida que se me ocurran.",
"time": "15:02",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Andrés González\":32jkzvhv]cuando hago dobleclick en la cabecera de los días de la semana me hace otro orden distinto de los días y si pulso en la primera o ultima semana me genera un error[/quote:32jkzvhv]\r\nEn la sección With Object oBrw en CalAnual.prg, agrega esta línea:[code:32jkzvhv] :lNoChangeOrd := .T.\n[/code:32jkzvhv]\r\nSaludos.\r\n\r\nManuel Mercado",
"time": "15:34",
"topic": "Calendario anual",
"username": "mmercado"
}
] |
Calendario anual
|
[
{
"date": "2008-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "D. Manuel, he modificado la anchura de las filas y he intentado cambiar el día de inicio pero no lo consigo quiero que la semana empiece en lunes, me puede aconsejar. Ademas quiero también poner una altura diferente y supongo que debe de haber un comando para ello pero de momento no lo he conseguido.\r\nA modo de ejemplo pero de forma lineal lo que pretendo hacer es poner en cada casilla del mes el servicio de cada uno vea la foto siguiente. Supongo que se puede poner otra font mas pequeña para los números de mes y asi dejar espacio para poner dos dígitos que identifican el servicio de cada uno\r\n\r\n\r\n[url=http://img387.imageshack.us/my.php?image=screenshotxv6.jpg:3uvhcooe][img:3uvhcooe]http://img387.imageshack.us/img387/3439/screenshotxv6.th.jpg[/img:3uvhcooe][/url:3uvhcooe]\r\n\r\nUn Saludo",
"time": "16:07",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-17",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias incluida y ya no cambia el orden al pulsar la cabecera. No logro cambiar el día de inicio a lunes, algún consejo.",
"time": "16:35",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Estimado Manuel.\r\n\r\n[quote=\"mmercado\":1ko65vyv]\nSi a alguien le sirve, con gusto se lo envío.\n[/quote:1ko65vyv]\r\n\r\nPuedes enviarme el ejemplo al correo : nazariosn @ yahoo . com . mx\r\n\r\nGracias y saludos.",
"time": "20:36",
"topic": "Calendario anual",
"username": "nazariosn"
}
] |
Calendario anual
|
[
{
"date": "2008-07-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Manuel <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\r\n\r\nPuedes enviarmela a mi tambien <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) --> ?\r\n\r\nricardocva @ yahoo. es\r\n\r\nSaludos...\r\nRicardo Ramírez!",
"time": "21:05",
"topic": "Calendario anual",
"username": "Ricardo Ramirez E."
}
] |
Calendario anual
|
[
{
"date": "2008-07-21",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Esperaremos a que conteste el Sr. Mercado, en caso contrario si no le parece mal os lo enviaré yo. Os garantizo que funciona fenomenal con añadirlo a los ejemplos del tsbrowse me ha funcionado sin problemas, ya lo tengo añadido y funcionando en mi programa.",
"time": "23:40",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Simplemente con la idea de Andrés ayer mismo (no me tomó más de 2 horas) escribí este programa cuya función principal recibe una fecha, muestra el calendario de todo el año con TSBrowse y devuelve la nueva fecha seleccionada.\r\n\r\nSi a alguien le sirve, con gusto se lo envío.\r\n\r\nSaludos.\r\n\r\nManuel Mercado[/quote]\r\n\r\nManuel, ¿puede enviármela? Gracias\r\nSaludos\r\n<!-- e --><a href=\"mailto:falegria230349@yahoo.es\">falegria230349@yahoo.es</a><!-- e -->",
"time": "06:33",
"topic": "Calendario anual",
"username": "FranciscoA"
}
] |
Calendario anual
|
[
{
"date": "2008-07-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Ricardo Ramirez E.\":3r0sai0b]Puedes enviarmela a mi tambien[/quote:3r0sai0b]Una Disculpa por la tardanza.\r\n\r\nMejor se los pongo aquí, no es muy grande.[code:3r0sai0b]#include \"Fivewin.ch\"\n#include \"TSBrowse.ch\"\n\n//--------------------------------------------------------------------------------------------------------------------//\n\nFunction CalAnual( dDate )\n\n Local oDlg, oBrw, nCol, dFecha, nMonth, aLine, bBlock, nDia, nMes, nYear, ;\n aCale := {}, ;\n aMes := { \"Ene\", \"Feb\", \"Mar\", \"Abr\", \"May\", \"Jun\", \"Jul\", \"Ago\", \"Sep\", \"Oct\", \"Nov\", \"Dic\" }, ;\n aSem := { \"Mes\", \"Dom\", \"Lun\", \"Mar\", \"Mie\", \"Jue\", \"Vie\", \"Sab\", ;\n \"Dom\", \"Lun\", \"Mar\", \"Mie\", \"Jue\", \"Vie\", \"Sab\", ;\n \"Dom\", \"Lun\", \"Mar\", \"Mie\", \"Jue\", \"Vie\", \"Sab\", ;\n \"Dom\", \"Lun\", \"Mar\", \"Mie\", \"Jue\", \"Vie\", \"Sab\", ;\n \"Dom\", \"Lun\", \"Mar\", \"Mie\", \"Jue\", \"Vie\", \"Sab\", \"Dom\", \"Lun\", \"Mar\", \"Mie\" }\n\n Default dDate := Date()\n\n SET DATE BRITISH\n SET EPOCH TO Year( Date() ) - 70\n\n SetKey( VK_UP, {|| If( GetKeyState( VK_CONTROL ), aSetCale( StoD( Str( --nYear, 4 ) + StrZero( nMes, 2 ) + ;\n StrZero( nDia, 2 ) ), oBrw, oDlg ), Nil ) } )\n\n SetKey( VK_DOWN, {|| If( GetKeyState( VK_CONTROL ), aSetCale( StoD( Str( ++nYear, 4 ) + StrZero( nMes, 2 ) + ;\n StrZero( nDia, 2 ) ), oBrw, oDlg ), Nil ) } )\n nYear := Year( dDate )\n aCale := aSetCale( dDate )\n nDia := AScan( aCale[ Month( dDate ) ], {|e,n| n > 1 .and. e == Day( dDate ) } )\n\n DEFINE DIALOG oDlg TITLE Str( nYear ) SIZE 760, 210\n\n @ 0, 0 BROWSE oBrw ARRAY aCale OF oDlg SIZE 385, 107 PIXEL CELLED ;\n COLORS CLR_BLACK, {|r,c| If( c == 1, CLR_HGRAY, CLR_WHITE ) }, ;\n { |c| If( c== oBrw:nCell, CLR_WHITE, CLR_BLACK ) }, ;\n { |c| If( c== oBrw:nCell, CLR_BLACK, CLR_HGRAY ) }, CLR_WHITE, CLR_BLACK\n\n For nCol := 1 To 38\n bBlock := bDetachable( oBrw, nCol )\n ADD COLUMN TO oBrw DATA bBlock TITLE aSem[ Min( 42, nCol ) ] SIZE 20 ALIGN DT_RIGHT\n oBrw:aColumns[ nCol ]:bGotFocus := {|| Eval( oBrw:bChange ) }\n Next\n\n With Object oBrw\n :lNoChangeOrd := .T.\n :lNoHSCroll := .T.\n :lInitGoTop := .F.\n :aColumns[ 1 ]:lFixLite := .T.\n :nFreeze := 1\n :lLockFreeze := .T.\n :nRowPos := Month( dDate )\n :bChange := { || If( Empty( oBrw:aArray[ oBrw:nAt, oBrw:nCell ] ), dFecha := CtoD( \"//\" ), ( ;\n dFecha := Ctod( StrZero( nDia := oBrw:aArray[ oBrw:nAt, oBrw:nCell ], 2 ) + \"/\" + ;\n StrZero( nMes := oBrw:nAt, 2 ) + \"/\" + Str( nYear ) ), oBrw:DrawHeaders() ) ) }\n End With\n\n ACTIVATE DIALOG oDlg CENTER ON INIT oBrw:HiliteCell( nDia )\n\nReturn dFecha\n\n//--------------------------------------------------------------------------------------------------------------------//\n\nStatic Function bDetachable( oBrw, nCol )\n\nReturn { |uVar| If( uVar == Nil, oBrw:aArray[ oBrw:nAt, nCol ], oBrw:aArray[ oBrw:nAt, nCol ] := uVar ) }\n\n//--------------------------------------------------------------------------------------------------------------------//\n\nStatic Function aSetCale( dDate, oBrw, oDlg )\n\n Local aLine, nMonth, nCol, dFecha, nYear, nDia, ;\n aMes := { \"Ene\", \"Feb\", \"Mar\", \"Abr\", \"May\", \"Jun\", \"Jul\", \"Ago\", \"Sep\", \"Oct\", \"Nov\", \"Dic\" }, ;\n aArr := {}\n\n nYear := Year( dDate )\n\n For nMonth := 1 To 12\n dFecha := CtoD( \"01/\" + StrZero( nMonth, 2 ) + \"/\" + Str( nYear ) )\n\n nCol := DoW( dFecha )\n aLine := Array( 39 )\n\n While Month( dFecha ) == nMonth\n aLine[ nCol++ ] := Day( dFecha )\n dFecha ++\n EndDo\n\n AAdd( aArr, aLine )\n Next\n\n For nCol := 1 To Len( aArr )\n ASize( aArr[ nCol ], 40 )\n AIns( aArr[ nCol ], 1 )\n aArr[ nCol, 1 ] := aMes[ nCol ]\n Next\n\n If oBrw != Nil\n nDia := AScan( aArr[ Month( dDate ) ], {|e,n| n > 1 .and. e == Day( dDate ) } )\n oBrw:SetArray( aArr )\n oBrw:nRowPos := Month( dDate )\n oBrw:HiliteCell( nDia )\n oDlg:SetText( Str( nYear, 4 ) )\n EndIf\n\nReturn aArr\n\n//--------------------------------------------------------------------------------------------------------------------//\n\nStatic Function StoD( cAnsiDate )\n\n Local cFormat := Upper( Set( _SET_DATEFORMAT ) ), ;\n cYear := SubStr( cAnsiDate, 1, 4 ), ;\n cMon := SubStr( cAnsiDate, 5, 2 ), ;\n cDay := SubStr( cAnsiDate, 7, 2 )\n\n cFormat := StrTran( cFormat, \"YYYY\", cYear )\n cFormat := StrTran( cFormat, \"YY\", Right( cYear, 2 ) )\n cFormat := StrTran( cFormat, \"MM\", cMon )\n cFormat := StrTran( cFormat, \"DD\", cDay )\n\nReturn CtoD( cFormat )\n[/code:3r0sai0b]\r\nSaludos.\r\n\r\nManuel Mercado",
"time": "06:37",
"topic": "Calendario anual",
"username": "mmercado"
}
] |
Calendario anual
|
[
{
"date": "2008-07-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias <!-- s:) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":)\" title=\"Smile\" /><!-- s:) -->\r\n\r\nSaludos",
"time": "10:03",
"topic": "Calendario anual",
"username": "Ricardo Ramirez E."
}
] |
Calendario anual
|
[
{
"date": "2008-07-22",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Manuel.\r\n\r\nGracias.\r\n\r\nSaludos",
"time": "16:44",
"topic": "Calendario anual",
"username": "nazariosn"
}
] |
Calendario anual
|
[
{
"date": "2008-07-24",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Regards,\r\nOtto\r\nON CLICK - MOUSEMOVE - ButtonUp\r\n\r\n[img:1nhr3jw4]http://www.atzwanger.com/fw/pickdate2.jpg[/img:1nhr3jw4]\r\n\r\n\r\n[code:1nhr3jw4]#include \"fivewin.ch\"\n\nSTATIC oWndPlan\nSTATIC planFont\nSTATIC sX := 1\nSTATIC sY := 1\nSTATIC sXTemp := 0\nSTATIC sYTemp := 0\nSTATIC aPlan := {}\nSTATIC startRow :=0\nSTATIC startCol :=0\nSTATIC startDay :=\"\"\nSTATIC oBrush\nSTATIC lMove :=.f.\nSTATIC hBru\nSTATIC hPen\nSTATIC hPen1\nSTATIC hPen3\nSTATIC aTemp := {}\nSTATIC nStartZeile := 0\n\nfunction main()\n\n aadd(aTemp,{0,0}) // 1\n aadd(aTemp,{0,0}) // 2\n aadd(aTemp,{0,0}) // 3\n aadd(aTemp,{0,0}) // 4\n aadd(aTemp,{0,0}) // 5\n aadd(aTemp,{0,0}) // 6\n aadd(aTemp,{0,0}) // 7\n aadd(aTemp,{0,0}) // 8\n aadd(aTemp,{0,0}) // 9\n aadd(aTemp,{0,0}) // 10\n aadd(aTemp,{0,0}) // 11\n aadd(aTemp,{0,0}) // 12\n\n SET DATE GERMAN\n\n ***\n\n hBru := CreateSolidBrush( RGB(217,230,246) )\n hPen := CreatePen( 0, 1, 12632256 )\n hPen1 := CreatePen( 0, 1, 280 )\n hPen3 := CreatePen( 0, 18,RGB(183,249,185) )//Sonntagsspalte\n\n DEFINE BRUSH oBrush COLOR RGB(255,255,255)\n DEFINE FONT planFont NAME \"ARIAL\" SIZE 0,-11\n\n ***\n\n DEFINE WINDOW oWndPlan TITLE \"Kalender\" ;\n HSCROLL ;\n FROM 5, 5 TO 24, 98\n\n oWndPlan:bLClicked := { |y,x,flags | f_bLClicked(y,x) }\n oWndPlan:bMMoved := { |y,x,flags | f_MMoved(y,x) }\n oWndPlan:bLButtonUp := { |y,x,flags | f_LButtonUp(y,x) }\n\n ACTIVATE WINDOW oWndPlan ON PAINT DrawRowLines()\n\nreturn nil\n\nfunc DrawRowLines ()\n\n LOCAL I, nCurrentRows, iZeile\n LOCAL cHeader1 := \"\"\n LOCAL oSay\n LOCAL hdc\n LOCAL aDays := {;\n \"So\",\"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",;\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",;\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",;\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",;\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",\"Mo\" }\n\n LOCAL nYear := YEAR( DATE() )\n LOCAL cYear := STR( nYear, 4 )\n LOCAL dDate, nStart\n LOCAL lSchaltJahr := ( DAY( CTOD( \"29.02.\" + cYear ) ) <> 0 )\n LOCAL aDaysInMonth := { 31, IIF( lSchaltJahr, 29, 28 ), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }\n LOCAL nColOffSet := 10\n LOCAL aRect1\n LOCAL IMonate := 0\n LOCAL ITemp := 0\n local cTest := \"\"\n local nEnde\n\n FOR IMonate := 1 TO 12\n\n aadd(aPlan,{\"\",\"\",\"\", \"\", \"\", \"\", \"\",\"\",;\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",;\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",;\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",;\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",\"\",0,0,0 } )\n\n NEXT\n\n aRect1 := { 0,0,500,1000}\n FillRect(oWndPlan:hDc,aRect1,oBrush:hBrush)\n iZeile := 0\n nCurrentRows := 30\n\n FOR I := 1 TO 13\n\n SelectObject( oWndPlan:hDc, hPen )\n IF iZeile = 5\n SelectObject( oWndPlan:hDc, hPen1 )\n iZeile := 0\n ENDIF\n\n //Lines\n oWndPlan:line (nCurrentRows, 1,nCurrentRows, 726 )\n nCurrentRows := nCurrentRows + 18\n iZeile := iZeile + 1\n\n NEXT\n\n nCurrentRows:= 50\n\n FOR I := 1 TO 38\n\n SelectObject( oWndPlan:hDc, hPen )\n IF iZeile = 5\n SelectObject( oWndPlan:hDc, hPen1 )\n iZeile := 0\n ENDIF\n\n oWndPlan:line (10,nColOffSet + nCurrentRows,400, nColOffSet + nCurrentRows )\n nCurrentRows := nCurrentRows + 18\n iZeile := iZeile + 1\n\n NEXT\n\n nCurrentRows:= 50\n\n FOR I := 1 TO len(aDays)\n\n if aDays[I] = \"So\"\n\n //Farbhintergrund Sonntag\n SelectObject( oWndPlan:hDc, hPen3 )\n\n // Sonntag erste fette Linie\n oWndPlan:line (0,nColOffSet+ 10 + nCurrentRows,400, nColOffSet+ 10 + nCurrentRows )\n\n SelectObject( oWndPlan:hDc, hPen )\n oWndPlan:say( 8, nColOffSet+36+I*18,aDays[I],RGB(255,128,0), RGB(125,236,175),planFont,.T.)\n\n else\n oWndPlan:say( 8, nColOffSet+36+I*18,aDays[I],RGB(255,128,0),16777215,planFont,.T.)\n\n endif\n\n nCurrentRows := nCurrentRows + 18\n\n NEXT\n\n nCurrentRows := 12\n\n FOR I := 1 TO 12\n\n SelectObject( oWndPlan:hDc, hPen )\n IF iZeile = 5\n SelectObject( oWndPlan:hDc, hPen1 )\n iZeile := 0\n ENDIF\n\n nCurrentRows := nCurrentRows + 18\n dDate := CTOD( \"01.\" + PADL( ALLTRIM(STR( i, 2 )), 2, \"0\" ) + \".\" + cYear )\n nStart := DOW( dDate )\n aPlan[I,38] := nStart\n aPlan[I,39] := 30-18+ (18*( aDaysInMonth[i] + nStart - 1 )) //col begin of month\n aPlan[I,40] := nStart + aDaysInMonth[i] //col end of month\n\n FOR iZeile := nStart TO aDaysInMonth[i] + nStart - 1\n aPlan[I,iZeile] = ( PADL( ALLTRIM(STR( (iZeile-nStart+1), 2 )), 2, \"0\" )+ \".\" + PADL( ALLTRIM(STR( (I), 2 )), 2, \"0\" ) + \".\" + cYear )\n NEXT\n\n cHeader1 := OemToAnsi( CMONTH( dDate ) ) //Monate\n oWndPlan:say( nCurrentRows+1, 2, cHeader1,RGB(63,63,63),16777215,planFont,.T.)\n\n NEXT\n\n IF (sy > 0 .AND. sy < 13) .AND. (sx > 0 .AND. sx < 38)\n\n\n IF lMove = .t.\n IZeile := INT((syTemp-30)/18 ) + 1\n aTemp[IZeile,1]:=10\n\n FOR ITemp := IZeile+1 TO 12\n aTemp[ITemp,1]:=0\n NEXT\n\n FOR ITemp := 1 TO 12\n\n if aTemp[ITemp,1] > 0\n if sXTemp > aPlan[ITemp,39] + aPlan[ITemp,38]*18\n sXTemp := aPlan[ITemp,39] + aPlan[ITemp,38]*18\n endif\n\n IF 30-18+ (18*(ITemp)) >= startCol .AND. ;\n .NOT. (30-18+ (18*(ITemp)) = startCol .AND. ;\n startRow > sXTemp)\n\n FillRect( oWndPlan:hDc, { 30-18+ (18*(ITemp)),startRow, 30 +(18*(ITemp)), sXTemp}, hBru )\n\n IF ITemp > nStartZeile\n FillRect( oWndPlan:hDc, { 30-18+ (18*(ITemp-1)),startRow, 30 +(18*(ITemp-1)), (30 +( 13 + 18*(aPlan[ITemp-1,40]))) }, hBru )\n FillRect( oWndPlan:hDc, { 30-18+ (18*(ITemp)), 30 + 13 + (18*(aPlan[ITemp,38])), 30 +(18*(ITemp)), sXTemp}, hBru )\n ENDIF\n\n else\n FillRect( oWndPlan:hDc, {startCol,startRow,startCol+18,startRow+18}, hBru )\n ENDIF\n endif\n NEXT\n ENDIF\n ENDIF\n\n nCurrentRows := 12\n\n FOR I := 1 TO 12\n\n SelectObject( oWndPlan:hDc, hPen )\n IF iZeile = 5\n SelectObject( oWndPlan:hDc, hPen1 )\n iZeile := 0\n ENDIF\n\n nCurrentRows := nCurrentRows + 18\n dDate := CTOD( \"01.\" + PADL( ALLTRIM(STR( i, 2 )), 2, \"0\" ) + \".\" + cYear )\n nStart := DOW( dDate )\n\n aPlan[I,38] := nStart\n aPlan[I,39] := 30-18+ (18*( aDaysInMonth[i] + nStart - 1 )) //col begin of month\n aPlan[I,40] := nStart + aDaysInMonth[i] //col end of month\n\n FOR iZeile := nStart TO aDaysInMonth[i] + nStart - 1\n\n cHeader1 := ALLTRIM(str(iZeile-nStart+1)) //Tage\n if aDays[iZeile] = \"So\"\n oWndPlan:say( nCurrentRows+3,36 + nColOffSet + (iZeile) *18, ;\n cHeader1, RGB(63,63,63),RGB(125,236,175),planFont,.T.,.T.)\n else\n oWndPlan:say( nCurrentRows+3,36 + nColOffSet + (iZeile) *18, ;\n cHeader1, RGB(63,63,63),16777215,planFont,.T., .T.)\n ENDIF\n NEXT\n NEXT\n\n IF (sy > 0 .AND. sy < 13) .AND. (sx > 0 .AND. sx < 38)\n oWndPlan:say(syTemp+20, sxTemp-20, aPlan[sy, sx] + \" # \"+str(ctod(aPlan[sy, sx])-ctod(startDay)+ 1), RGB(63,63,63), RGB(125,236,175), planFont, .T. )\n endif\n\nreturn nil\n\nfunc f_LButtonUp(y,x)\n\n msginfo(startDay + \" -- \" + aPlan[sy, sx] + \" Tage: \" + str( ctod(aPlan[sy, sx])-ctod(startDay) +1 ))\n lMove:=.f.\n\nreturn nil\n\nfunc f_MMoved(y,x)\n\n IF sy <> (INT((y-30)/18 ) + 1) .OR. sy <> (INT( (x-50-10)/18 ) + 1 )\n sy := INT((y-30)/18 ) + 1\n sx := INT((x-50-10)/18 ) + 1\n\n IF y < 30\n sy := 0\n y := 0\n ENDIF\n\n syTemp := y\n sxTemp := 59 + sx * 18\n\n oWndPlan:refresh()\n\n ENDIF\n\nreturn nil\n\nfunc f_bLClicked(y,x)\n\n local ITemp:=0\n\n sy := INT((y-30)/18 ) + 1\n sx := INT((x-50-10)/18 ) + 1\n startDay := aPlan[sy, sx]\n nStartZeile := sy\n startRow := INT((x - 30)/18)*18 + 18 + 7\n startCol := (INT((y-30)/18 ))*18 + 30\n\n FOR ITemp := 1 TO 12\n aTemp[ITemp,1]:=0\n NEXT\n\n FillRect( oWndPlan:hDc, {startCol,startRow,startCol+18,startRow+18}, hBru )\n oWndPlan:refresh()\n\n lMove:=.t.\n\nreturn nil\n\n\n\n[/code:1nhr3jw4]",
"time": "17:43",
"topic": "Calendario anual",
"username": "Otto"
}
] |
Calendario anual
|
[
{
"date": "2008-07-24",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hi Otto:\r\n\r\nVery nice work, congratulations.\r\n\r\nManuel Mercado",
"time": "20:00",
"topic": "Calendario anual",
"username": "mmercado"
}
] |
Calendario anual
|
[
{
"date": "2008-07-24",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Thanks Otto,\r\n\r\n great work, very nice and clean.\r\n\r\nCongratulations.",
"time": "22:52",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "I saw that I had a mistake in naming the variables. X was y and vice versa. I changed the code. \r\n\r\nPlease lets go ahead with this. \r\n\r\nCarles: \r\nWhat is local aInfo := oWndPlan:DispBegin() \r\nexactly doing? \r\n\r\nRegards, \r\nOtto \r\n\r\nPS: Could you please send me your email addresses. \r\nI would like to share my snipkeeper code with you, too. \r\ndatron&aon.at (& =@) \r\n\r\n\r\n\r\nCode: \r\n#include \"fivewin.ch\" \r\n\r\nSTATIC oWndPlan \r\nSTATIC planFont \r\nSTATIC sy := 1 \r\nSTATIC sx := 1 \r\nSTATIC syTemp := 0 \r\nSTATIC sxTemp := 0 \r\nSTATIC aPlan := {} \r\nSTATIC ClickCol :=0 \r\nSTATIC ClickRow :=0 \r\nSTATIC startDay :=\"\" \r\nSTATIC oBrush \r\nSTATIC lMove :=.f. \r\nSTATIC hBru \r\nSTATIC hPen \r\nSTATIC hPen1 \r\nSTATIC hPen3 \r\nSTATIC aTemp := {} \r\nSTATIC nStartZeile := 0 \r\n\r\n /* ********** added by rochinha, modify by Quique ********** */ \r\nSTATIC nYear \r\n /* ********** added by rochinha, modify by Quique ********** */ \r\n\r\nfunction main() \r\n /* ********** added by rochinha, modify by Quique ********** */ \r\n nYear := YEAR( DATE() ) \r\n /* ********** added by rochinha, modify by Quique ********** */ \r\n\r\n aadd(aTemp,{0,0}) // 1 \r\n aadd(aTemp,{0,0}) // 2 \r\n aadd(aTemp,{0,0}) // 3 \r\n aadd(aTemp,{0,0}) // 4 \r\n aadd(aTemp,{0,0}) // 5 \r\n aadd(aTemp,{0,0}) // 6 \r\n aadd(aTemp,{0,0}) // 7 \r\n aadd(aTemp,{0,0}) // 8 \r\n aadd(aTemp,{0,0}) // 9 \r\n aadd(aTemp,{0,0}) // 10 \r\n aadd(aTemp,{0,0}) // 11 \r\n aadd(aTemp,{0,0}) // 12 \r\n\r\n SET DATE GERMAN \r\n\r\n *** \r\n\r\n hBru := CreateSolidBrush( RGB(217,230,246) ) \r\n hPen := CreatePen( 0, 1, 12632256 ) \r\n hPen1 := CreatePen( 0, 1, 280 ) \r\n hPen3 := CreatePen( 0, 18,RGB(183,249,185) )//Sonntagsspalte \r\n\r\n DEFINE BRUSH oBrush COLOR RGB(255,255,255) \r\n DEFINE FONT planFont NAME \"ARIAL\" SIZE 0,-11 \r\n\r\n *** \r\n\r\n DEFINE WINDOW oWndPlan TITLE \"Kalender\" ; \r\n HSCROLL ; \r\n FROM 5, 5 TO 24, 98 \r\n\r\n oWndPlan:bLClicked := { |x,y,flags | f_bLClicked(x,y) } \r\n oWndPlan:bMMoved := { |x,y,flags | f_MMoved(x,y) } \r\n oWndPlan:bLButtonUp := { |x,y,flags | f_LButtonUp(x,y) } \r\n\r\n /* ********** added by rochinha ********** */ \r\n oWndPlan:cTitle := \"Kalender [ \" + str(nYear,4) + \" ]\" \r\n /* ********** added by rochinha ********** */ \r\n\r\n /* ********** added by rochinha ********** */ \r\n oWndPlan:oHScroll:bGoUp := {|| PreviousYear() } \r\n oWndPlan:oHScroll:bGoDown := {|| NextYear() } \r\n /* ********** added by rochinha ********** */ \r\n\r\n ACTIVATE WINDOW oWndPlan ON PAINT DrawRowLines() \r\n\r\nreturn nil \r\n\r\nfunc PreviousYear() /* ********** added by rochinha ********** */ \r\n nYear := nYear - 1 \r\n DrawRowLines() \r\n oWndPlan:refresh() \r\n oWndPlan:cTitle := \"Kalender [ \" + str(nYear,4) + \" ]\" \r\n return .t. \r\n\r\nfunc NextYear() /* ********** added by rochinha ********** */ \r\n nYear := nYear + 1 \r\n DrawRowLines() \r\n oWndPlan:refresh() \r\n oWndPlan:cTitle := \"Kalender [ \" + str(nYear,4) + \" ]\" \r\n return .t. \r\n\r\nfunc DrawRowLines () \r\n//Charles\r\nlocal aInfo := oWndPlan:DispBegin() \r\n//Charles\r\n\r\n LOCAL I, nCurrentRows, iZeile \r\n LOCAL cHeader1 := \"\" \r\n LOCAL oSay \r\n LOCAL hdc \r\n LOCAL aDays := {; \r\n \"So\",\"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",; \r\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",; \r\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",; \r\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",; \r\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",\"Mo\" } \r\n\r\n /* blocked by rochinha \r\n LOCAL nYear := YEAR( DATE() ) */ \r\n LOCAL cYear := STR( nYear, 4 ) \r\n LOCAL dDate, nStart \r\n LOCAL lSchaltJahr := ( DAY( CTOD( \"29.02.\" + cYear ) ) <> 0 ) \r\n LOCAL aDaysInMonth := { 31, IIF( lSchaltJahr, 29, 28 ), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 } \r\n LOCAL nColOffSet := 10 \r\n LOCAL aRect1 \r\n LOCAL IMonate := 0 \r\n LOCAL ITemp := 0 \r\n local cTest := \"\" \r\n local nEnde \r\n\r\n FOR IMonate := 1 TO 12 \r\n\r\n aadd(aPlan,{\"\",\"\",\"\", \"\", \"\", \"\", \"\",\"\",; \r\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",; \r\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",; \r\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",; \r\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",\"\",0,0,0 } ) \r\n\r\n NEXT \r\n\r\n aRect1 := { 0,0,500,1000} \r\n FillRect(oWndPlan:hDc,aRect1,oBrush:hBrush) \r\n iZeile := 0 \r\n nCurrentRows := 30 \r\n\r\n FOR I := 1 TO 13 \r\n\r\n SelectObject( oWndPlan:hDc, hPen ) \r\n IF iZeile = 5 \r\n SelectObject( oWndPlan:hDc, hPen1 ) \r\n iZeile := 0 \r\n ENDIF \r\n\r\n //Lines \r\n oWndPlan:line (nCurrentRows, 1,nCurrentRows, 726 ) \r\n nCurrentRows := nCurrentRows + 18 \r\n iZeile := iZeile + 1 \r\n\r\n NEXT \r\n\r\n nCurrentRows:= 50 \r\n\r\n FOR I := 1 TO 38 \r\n\r\n SelectObject( oWndPlan:hDc, hPen ) \r\n IF iZeile = 5 \r\n SelectObject( oWndPlan:hDc, hPen1 ) \r\n iZeile := 0 \r\n ENDIF \r\n\r\n oWndPlan:line (10,nColOffSet + nCurrentRows,400, nColOffSet + nCurrentRows ) \r\n nCurrentRows := nCurrentRows + 18 \r\n iZeile := iZeile + 1 \r\n\r\n NEXT \r\n\r\n nCurrentRows:= 50 \r\n\r\n FOR I := 1 TO len(aDays) \r\n\r\n if aDays[I] = \"So\" \r\n\r\n //Farbhintergrund Sonntag \r\n SelectObject( oWndPlan:hDc, hPen3 ) \r\n\r\n // Sonntag erste fette Linie \r\n oWndPlan:line (0,nColOffSet+ 10 + nCurrentRows,400, nColOffSet+ 10 + nCurrentRows ) \r\n\r\n SelectObject( oWndPlan:hDc, hPen ) \r\n oWndPlan:say( 8, nColOffSet+36+I*18,aDays[I],RGB(255,128,0), RGB(125,236,175),planFont,.T.) \r\n\r\n else \r\n oWndPlan:say( 8, nColOffSet+36+I*18,aDays[I],RGB(255,128,0),16777215,planFont,.T.) \r\n\r\n endif \r\n\r\n nCurrentRows := nCurrentRows + 18 \r\n\r\n NEXT \r\n\r\n nCurrentRows := 12 \r\n\r\n FOR I := 1 TO 12 \r\n\r\n SelectObject( oWndPlan:hDc, hPen ) \r\n IF iZeile = 5 \r\n SelectObject( oWndPlan:hDc, hPen1 ) \r\n iZeile := 0 \r\n ENDIF \r\n\r\n nCurrentRows := nCurrentRows + 18 \r\n dDate := CTOD( \"01.\" + PADL( ALLTRIM(STR( i, 2 )), 2, \"0\" ) + \".\" + cYear ) \r\n nStart := DOW( dDate ) \r\n aPlan[I,38] := nStart \r\n aPlan[I,39] := 30-18+ (18*( aDaysInMonth[i] + nStart - 1 )) //col begin of month \r\n aPlan[I,40] := nStart + aDaysInMonth[i] //col end of month \r\n\r\n FOR iZeile := nStart TO aDaysInMonth[i] + nStart - 1 \r\n aPlan[I,iZeile] = ( PADL( ALLTRIM(STR( (iZeile-nStart+1), 2 )), 2, \"0\" )+ \".\" + PADL( ALLTRIM(STR( (I), 2 )), 2, \"0\" ) + \".\" + cYear ) \r\n NEXT \r\n\r\n cHeader1 := OemToAnsi( CMONTH( dDate ) ) //Monate \r\n oWndPlan:say( nCurrentRows+1, 2, cHeader1,RGB(63,63,63),16777215,planFont,.T.) \r\n\r\n NEXT \r\n\r\n IF (sx > 0 .AND. sx < 13) .AND. (sy > 0 .AND. sy < 38) \r\n\r\n IF lMove = .t. \r\n IZeile := INT((sxTemp-30)/18 ) + 1 \r\n aTemp[IZeile,1]:=10 \r\n\r\n FOR ITemp := IZeile+1 TO 12 \r\n aTemp[ITemp,1]:=0 \r\n NEXT \r\n\r\n FOR ITemp := 1 TO 12 \r\n\r\n if aTemp[ITemp,1] > 0 \r\n if syTemp > aPlan[ITemp,39] + aPlan[ITemp,38]*18 \r\n syTemp := aPlan[ITemp,39] + aPlan[ITemp,38]*18 \r\n endif \r\n\r\n IF 30-18+ (18*(ITemp)) >= ClickRow .AND. ; \r\n .NOT. (30-18+ (18*(ITemp)) = ClickRow .AND. ; \r\n ClickCol > syTemp) \r\n\r\n FillRect( oWndPlan:hDc, { 30-18+ (18*(ITemp)),ClickCol, 30 +(18*(ITemp)), syTemp}, hBru ) \r\n\r\n IF ITemp > nStartZeile \r\n FillRect( oWndPlan:hDc, { 30-18+ (18*(ITemp-1)),ClickCol, 30 +(18*(ITemp-1)), (30 +( 13 + 18*(aPlan[ITemp-1,40]))) }, hBru ) \r\n FillRect( oWndPlan:hDc, { 30-18+ (18*(ITemp)), 30 + 13 + (18*(aPlan[ITemp,38])), 30 +(18*(ITemp)), syTemp}, hBru ) \r\n ENDIF \r\n\r\n else \r\n FillRect( oWndPlan:hDc, {ClickRow,ClickCol,ClickRow+18,ClickCol+18}, hBru ) \r\n ENDIF \r\n endif \r\n NEXT \r\n ENDIF \r\n ENDIF \r\n\r\n nCurrentRows := 12 \r\n\r\n FOR I := 1 TO 12 \r\n\r\n SelectObject( oWndPlan:hDc, hPen ) \r\n IF iZeile = 5 \r\n SelectObject( oWndPlan:hDc, hPen1 ) \r\n iZeile := 0 \r\n ENDIF \r\n\r\n nCurrentRows := nCurrentRows + 18 \r\n dDate := CTOD( \"01.\" + PADL( ALLTRIM(STR( i, 2 )), 2, \"0\" ) + \".\" + cYear ) \r\n nStart := DOW( dDate ) \r\n\r\n aPlan[I,38] := nStart \r\n aPlan[I,39] := 30-18+ (18*( aDaysInMonth[i] + nStart - 1 )) //col begin of month \r\n aPlan[I,40] := nStart + aDaysInMonth[i] //col end of month \r\n\r\n FOR iZeile := nStart TO aDaysInMonth[i] + nStart - 1 \r\n\r\n cHeader1 := ALLTRIM(str(iZeile-nStart+1)) //Tage \r\n if aDays[iZeile] = \"So\" \r\n oWndPlan:say( nCurrentRows+3,36 + nColOffSet + (iZeile) *18, ; \r\n cHeader1, RGB(63,63,63),RGB(125,236,175),planFont,.T.,.T.) \r\n else \r\n oWndPlan:say( nCurrentRows+3,36 + nColOffSet + (iZeile) *18, ; \r\n cHeader1, RGB(63,63,63),16777215,planFont,.T., .T.) \r\n ENDIF \r\n NEXT \r\n NEXT \r\n\r\n IF (sx > 0 .AND. sx < 13) .AND. (sy > 0 .AND. sy < 38) \r\n oWndPlan:say(sxTemp+20, syTemp-20, aPlan[sx, sy] + \" # \"+str(ctod(aPlan[sx, sy])-ctod(startDay)+ 1), RGB(63,63,63), RGB(125,236,175), planFont, .T. ) \r\n endif \r\n\r\noWndPlan:DispEnd( aInfo ) \r\n\r\nreturn nil \r\n\r\nfunc f_LButtonUp(x,y) \r\n\r\n IF sy > 0 // Quique \r\n msginfo(startDay + \" -- \" + aPlan[sx, sy] + \" Tage: \" + str( ctod(aPlan[sx, sy])-ctod(startDay) +1 )) \r\n ENDIF \r\n lMove:=.f. \r\n\r\nreturn nil \r\n\r\nfunc f_MMoved(x,y) \r\n IF sx <> (INT((x-30)/18 ) + 1) .OR. sx <> (INT( (y-50-10)/18 ) + 1 ) \r\n sx := INT((x-30)/18 ) + 1 \r\n sy := INT((y-50-10)/18 ) + 1 \r\n\r\n IF x < 30 \r\n sx := 0 \r\n x := 0 \r\n ENDIF \r\n\r\n sxTemp := x \r\n syTemp := 59 + sy * 18 \r\n\r\n oWndPlan:refresh() \r\n\r\n ENDIF \r\n\r\nreturn nil \r\n\r\nfunc f_bLClicked(x,y) \r\n local ITemp:=0 \r\n\r\n sx := INT((x-30)/18 ) + 1 \r\n sy := INT((y-50-10)/18 ) + 1 \r\n\r\n IF sy > 0 // Quique \r\n startDay := aPlan[sx, sy] \r\n nStartZeile := sx \r\n ClickCol := INT((y - 30)/18)*18 + 18 + 7 \r\n ClickRow := (INT((x-30)/18 ))*18 + 30 \r\n\r\n FOR ITemp := 1 TO 12 \r\n aTemp[ITemp,1]:=0 \r\n NEXT \r\n\r\n FillRect( oWndPlan:hDc, {ClickRow,ClickCol,ClickRow+18,ClickCol+18}, hBru ) \r\n oWndPlan:refresh() \r\n\r\n lMove:=.t. \r\n ENDIF \r\n\r\nreturn nil",
"time": "11:47",
"topic": "Calendario anual",
"username": "Otto"
}
] |
Calendario anual
|
[
{
"date": "2008-07-25",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Otto something wrong put the code in inside of code labels... some funny faces are inside.\r\n\r\nI arranged the code, but in both examples when you try to mark de days the last days are not marked. Try to mark from 1/1/08 to 31/12/08 the last days will be not marked. But the result ist correct they say the days correctly and the nember of the days also correctly. The wrong days are 29,30,31 / 12/ year.... if you try other month work perfectly.\r\n\r\n.",
"time": "16:52",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-26",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[code:1jzltno8]// This sample shows how to create pickdate.\n\n#include \"FiveWin.ch\"\n\n//----------------------------------------------------------------------------//\n\nfunction Main()\n LOCAL oPickDate\n\n oPickDate := TPickdate():New()\n oPickDate:nWidth := 14\n oPickDate:nHeight := 30\n\n msginfo(oPickDate:GetDate())\n oPickDate:end()\n\n\nreturn nil\n\n\n********************************************************************************\n*** CLASS Tpickdate\n********************************************************************************\n\n//----------------------------------------------------------------------------//\n\n#include \"FiveWin.ch\"\n\n\n//-----------------------------------------------------------------//\n\nCLASS Tpickdate\n DATA VERSION\n DATA nYear\n DATA nWidth,nHeight,nStartCols,nStartRow\n DATA oWnd,planFont,sy,sx\n DATA ClickRow,syTemp,sxTemp,ClickCol\n DATA aPlan,nStartZeile\n DATA startDay,endDay,oBrush,lMove\n DATA hBru,hPen,hPen1,hPen3,aTemp\n\n METHOD New()\n\n method PreviousYear()\n\n method NextYear()\n\n method GetDate()\n\n method LButtonUp(x,y)\n\n method bLClicked(x,y)\n\n method DrawRowLines ()\n\n method MMoved(x,y)\n\n METHOD End()\n\nENDCLASS\n\n//-----------------------------------------------------------------//\n\nMETHOD New() CLASS Tpickdate\n\n ::VERSION := \"1.0.0\"\n ::nWidth := 10\n ::nHeight := 10\n ::nStartCols := 50\n ::nStartRow := 30\n ::nYear := YEAR( DATE() )\n ::hBru := CreateSolidBrush( RGB(217,230,246) )\n\n ::hPen := CreatePen( 0, 1, 12632256 )\n ::hPen1 := CreatePen( 0, 1, 280 )\n ::hPen3 := CreatePen( 0, ::nWidth,RGB(183,249,185) ) //Sonntagsspalte\n\n DEFINE BRUSH ::oBrush COLOR RGB(255,255,255)\n DEFINE FONT ::planFont NAME \"ARIAL\" SIZE 0,-11\n\n ::sy := 1\n ::sx := 1\n ::syTemp := 0\n ::sxTemp := 0\n\n ::aPlan := {}\n ::ClickCol := 0\n ::ClickRow := 0\n ::startDay := \"\"\n ::endDay := \"\"\n ::lMove := .f.\n ::aTemp := {}\n ::nStartZeile := 0\n\n\n aadd(::aTemp,{0,0}) // 1\n aadd(::aTemp,{0,0}) // 2\n aadd(::aTemp,{0,0}) // 3\n aadd(::aTemp,{0,0}) // 4\n aadd(::aTemp,{0,0}) // 5\n aadd(::aTemp,{0,0}) // 6\n aadd(::aTemp,{0,0}) // 7\n aadd(::aTemp,{0,0}) // 8\n aadd(::aTemp,{0,0}) // 9\n aadd(::aTemp,{0,0}) // 10\n aadd(::aTemp,{0,0}) // 11\n aadd(::aTemp,{0,0}) // 12\n\n SET DATE GERMAN\n\n\nreturn Self\n//----------------------------------------------------------------------------//\n\n\nmethod GetDate()\nlocal cZeitraum := \"\"\n local oSelf:= Self\n\n ::hPen3 := CreatePen( 0, ::nWidth,RGB(183,249,185) ) //Sonntagsspalte\n\n DEFINE WINDOW ::oWnd TITLE \"Kalender\" ;\n VSCROLL ;\n FROM 5, 5 TO 24, 98\n\n ::oWnd:bLClicked := { |x,y,flags | ::bLClicked(x,y) }\n ::oWnd:bMMoved := { |x,y,flags | ::MMoved(x,y) }\n ::oWnd:bLButtonUp := { |x,y,flags | ::LButtonUp(x,y) }\n\n ::oWnd:cTitle := \"Kalender [ \" + str(::nYear,4) + \" ]\"\n\n ::oWnd:oVScroll:bGoUp := {|| ::PreviousYear() }\n ::oWnd:oVScroll:bGoDown := {|| ::NextYear() }\n\n ACTIVATE WINDOW ::oWnd ON INIT (oSelf:oWnd:nWidth( oSelf:nStartCols + 38 * oSelf:nWidth + oSelf:nWidth + oSelf:nWidth),;\n oSelf:oWnd:nHeight(oSelf:nStartRow + 13 * oSelf:nHeight ) );\n ON PAINT ::DrawRowLines() VALID ((cZeitraum := ::startDay + \" -- \" + ::endDay + \" Tage: \" + str( ctod(::endDay)-ctod(::startDay) +1 )),.t.)\n\nreturn (cZeitraum)\n//-----------------------------------------------------------------//\n\nmethod PreviousYear()\n::nYear := ::nYear - 1\n::DrawRowLines()\n::oWnd:refresh()\n::oWnd:cTitle := \"Kalender [ \" + str(::nYear,4) + \" ]\"\nreturn .t.\n//-----------------------------------------------------------------//\n\nmethod NextYear()\n::nYear := ::nYear + 1\n::DrawRowLines()\n::oWnd:refresh()\n::oWnd:cTitle := \"Kalender [ \" + str(::nYear,4) + \" ]\"\nreturn .t.\n//-----------------------------------------------------------------//\n\nmethod LButtonUp(x,y)\n ::endDay := ::aPlan[::sx,::sy]\n\n IF ::sy > 0 .AND. ::sx > 0\n if msgYesNo(::startDay + \" -- \" + ::endDay + \" Tage: \" + str( ctod(::endDay)-ctod(::startDay) +1 ))=.t.\n ::oWnd:end()\n endif\n ENDIF\n ::lMove:=.f.\nreturn nil\n//-----------------------------------------------------------------//\n\nmethod bLClicked(x,y)\n local ITemp := 0\n\n ::sx := INT((x - ::nStartRow)/::nHeight ) + 1\n ::sy := INT((y - ::nStartCols)/::nWidth )\n\n IF ::sy > 0 .AND. ::sx > 0\n ::startDay := ::aPlan[::sx,::sy]\n ::nStartZeile := ::sx\n ::ClickRow := (INT((x-::nStartRow)/::nHeight ))*::nHeight + ::nStartRow\n ::ClickCol := ::nStartCols + ::sy * ::nWidth\n\n FOR ITemp := 1 TO 12\n ::aTemp[ITemp,1]:=0\n NEXT\n\n ::oWnd:refresh()\n\n ::lMove:=.t.\n ENDIF\nreturn nil\n//-----------------------------------------------------------------//\n\nmethod DrawRowLines ()\n local aInfo := ::oWnd:DispBegin()\n local I, nCurrentRows, iZeile\n local nCurrentCol\n local cHeader1 := \"\"\n local oSay\n local hdc\n local aDays := {;\n \"So\",\"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",;\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",;\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",;\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",;\n \"Mo\",\"Di\", \"Mi\", \"Do\", \"Fr\", \"Sa\",\"So\",\"Mo\" }\n\n local cYear := STR( ::nYear, 4 )\n local dDate, nStart\n local lSchaltJahr := ( DAY( CTOD( \"29.02.\" + cYear ) ) <> 0 )\n local aDaysInMonth := { 31, IIF( lSchaltJahr, 29, 28 ), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }\n local aRect1\n local IMonate := 0\n local ITemp := 0\n local cTest := \"\"\n local nEnde\n local iSpalte := 0\n local nRight\n local nBottom\n local nLeft\n local nTop\n\n FOR IMonate := 1 TO 12\n aadd(::aPlan,{\"\",\"\",\"\", \"\", \"\", \"\", \"\",\"\",;\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",;\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",;\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",;\n \"\",\"\", \"\", \"\", \"\", \"\",\"\",\"\",0,0,0 } )\n NEXT\n\n aRect1 := { 0,0, ::nStartRow + (13 * ::nHeight) ,::nStartCols + (38 * ::nWidth) + ::nWidth} //procl\n FillRect(::oWnd:hDc,aRect1,::oBrush:hBrush)\n iZeile := 0\n\n nCurrentCol := ::nStartCols\n\n FOR I := 1 TO 38\n\n SelectObject( ::oWnd:hDc, ::hPen )\n IF iZeile = 5\n SelectObject( ::oWnd:hDc, ::hPen1 )\n iZeile := 0\n ENDIF\n\n //vertikale Linie zw. Tage\n ::oWnd:line (10, ::nWidth + nCurrentCol, ::nStartRow + (13 * ::nHeight), ::nWidth + nCurrentCol )\n\n nCurrentCol := nCurrentCol + ::nWidth\n iZeile := iZeile + 1\n\n NEXT\n\n nCurrentCol := ::nStartCols\n\n FOR I := 1 TO len(aDays)\n if aDays[I] = \"So\"\n //Farbhintergrund Sonntag\n SelectObject( ::oWnd:hDc, ::hPen3 )\n\n // Sonntag erste fette Linie\n ::oWnd:line (0, ::nWidth + ::nWidth/2 + nCurrentCol,::nStartRow + (13 * ::nHeight), ::nWidth + ::nWidth/2 + nCurrentCol )\n\n SelectObject( ::oWnd:hDc, ::hPen )\n ::oWnd:say( 8, ::nWidth+36+I* ::nWidth,aDays[I],RGB(255,128,0), RGB(125,236,175),::planFont,.T.)\n else\n ::oWnd:say( 8, ::nWidth+36+I*::nWidth,aDays[I],RGB(255,128,0),16777215,::planFont,.T.)\n endif\n nCurrentCol := nCurrentCol + ::nWidth\n NEXT\n\n nCurrentRows := ::nStartRow\n\n FOR I := 1 TO 13\n\n SelectObject( ::oWnd:hDc, ::hPen )\n IF iZeile = 5\n SelectObject( ::oWnd:hDc, ::hPen1 )\n iZeile := 0\n ENDIF\n\n //Lines\n ::oWnd:line (nCurrentRows, 1,nCurrentRows, ::nStartCols+ 38 * ::nWidth ) //726\n\n nCurrentRows := nCurrentRows + ::nHeight\n iZeile := iZeile + 1\n NEXT\n\n\n nCurrentRows := 12\n\n FOR I := 1 TO 12\n\n SelectObject( ::oWnd:hDc, ::hPen )\n IF iZeile = 5\n SelectObject( ::oWnd:hDc, ::hPen1 )\n iZeile := 0\n ENDIF\n\n nCurrentRows := nCurrentRows + ::nHeight\n dDate := CTOD( \"01.\" + PADL( ALLTRIM(STR( i, 2 )), 2, \"0\" ) + \".\" + cYear )\n nStart := DOW( dDate )\n\n ::aPlan[I,38] := nStart\n ::aPlan[I,39] := ::nStartCols + ::nWidth * nStart //- ::nWidth //col begin of month\n ::aPlan[I,40] := nStart + aDaysInMonth[i] //col end of month\n\n FOR iSpalte := nStart TO aDaysInMonth[i] + nStart - 1\n ::aPlan[I,iSpalte] = ( PADL( ALLTRIM(STR( (iSpalte-nStart+1), 2 )), 2, \"0\" )+ \".\" + PADL( ALLTRIM(STR( (I), 2 )), 2, \"0\" ) + \".\" + cYear )\n NEXT\n\n cHeader1 := OemToAnsi( CMONTH( dDate ) )//Monate\n ::oWnd:say( nCurrentRows+1, 2, cHeader1,RGB(63,63,63),16777215,::planFont,.T.)\n\n NEXT\n\n IF (::sx > 0 .AND. ::sx < 13) .AND. (::sy > 0 .AND. ::sy < 38)\n\n IF ::lMove = .t.\n\n IZeile := ::sx\n\n ::aTemp[IZeile,1] := 10\n\n FOR ITemp := IZeile+1 TO 12\n ::aTemp[ITemp,1] := 0\n NEXT\n\n FOR ITemp := 1 TO 12\n\n if ::aTemp[ITemp,1] > 0\n\n IF ctod(::aPlan[::sx,::sy]) > ctod(\" . . \")\n FillRect( ::oWnd:hDc, {::ClickRow,;\n ::ClickCol,;\n ::ClickRow+::nHeight,;\n ::ClickCol+::nWidth}, ::hBru )\n\n IF ::nStartRow-::nHeight + (::nHeight*(ITemp)) = ::ClickRow .OR. IZeile=1\n nTop := ::nStartRow - ::nHeight + (::nHeight*(ITemp))\n nLeft := ::ClickCol\n IF ::ClickCol < ::aPlan[ITemp,39]\n nLeft := ::aPlan[ITemp,39]\n ENDIF\n\n nBottom := ::nStartRow + (::nHeight*(ITemp))\n nRight := ::syTemp\n IF ::syTemp > nLeft\n IF ::syTemp <= ::nStartCols+::aPlan[ITemp,40]*::nWidth\n FillRect( ::oWnd:hDc, {nTop,;\n nLeft,;\n nBottom,;\n nRight },::hBru)\n ENDIF\n ENDIF\n\n ELSEIF ITemp > ::nStartZeile\n\n **********\n IF ITemp > ::nStartZeile+1\n\n nTop := ::nStartRow - ::nHeight + (::nHeight*(ITemp-1))\n nLeft := ::aPlan[ITemp-1,39]\n\n nBottom := ::nStartRow + (::nHeight*(ITemp-1))\n nRight := ::nStartCols +( ::nWidth*(::aPlan[ITemp-1,40]))\n\n IF ::syTemp >= ::aPlan[ITemp,39]\n IF ::syTemp <= ::nStartCols+::aPlan[ITemp,40]*::nWidth\n FillRect( ::oWnd:hDc, {nTop,;\n nLeft,;\n nBottom,;\n nRight },::hBru)\n ENDIF\n\n ENDIF\n ENDIF\n\n\n ***********\n\n\n nTop := ::nStartRow - ::nHeight + (::nHeight*(ITemp))\n nLeft := ::aPlan[ITemp,39]\n\n nBottom := ::nStartRow + (::nHeight*(ITemp))\n nRight := ::syTemp\n\n IF ::syTemp >= ::aPlan[ITemp,39]\n IF ::syTemp <= ::nStartCols+::aPlan[ITemp,40]*::nWidth\n FillRect( ::oWnd:hDc, {nTop,;\n nLeft,;\n nBottom,;\n nRight },::hBru)\n ENDIF\n\n ENDIF\n\n nTop := ::nStartRow-::nHeight+ (::nHeight*(ITemp-1))\n nLeft := ::ClickCol\n IF ::ClickCol < ::aPlan[ITemp-1,39]\n nLeft := ::aPlan[ITemp-1,39]\n ENDIF\n\n nBottom := ::nStartRow +(::nHeight*(ITemp-1))\n nRight := ::nStartCols +( ::nWidth*(::aPlan[ITemp-1,40]))\n\n FillRect( ::oWnd:hDc, {nTop,;\n nLeft,;\n nBottom,;\n nRight }, ::hBru )\n\n else\n ENDIF\n ENDIF\n endif\n NEXT\n\n ENDIF\n ENDIF\n\n nCurrentRows := 12\n\n FOR I := 1 TO 12\n\n SelectObject( ::oWnd:hDc, ::hPen )\n IF iZeile = 5\n SelectObject( ::oWnd:hDc, ::hPen1 )\n iZeile := 0\n ENDIF\n\n nCurrentRows := nCurrentRows + ::nHeight\n dDate := CTOD( \"01.\" + PADL( ALLTRIM(STR( i, 2 )), 2, \"0\" ) + \".\" + cYear )\n nStart := DOW( dDate )\n\n FOR iZeile := nStart TO aDaysInMonth[i] + nStart - 1\n cHeader1 := ALLTRIM(str(iZeile-nStart+1)) //Tage\n if aDays[iZeile] = \"So\"\n ::oWnd:say( nCurrentRows+3,36 + ::nWidth + (iZeile) * ::nWidth, cHeader1, RGB(63,63,63),RGB(125,236,175),::planFont,.T.,.T.)\n else\n ::oWnd:say( nCurrentRows+3,36 + ::nWidth + (iZeile) * ::nWidth, cHeader1, RGB(63,63,63),16777215,::planFont,.T., .T.)\n ENDIF\n NEXT\n NEXT\n\n IF (::sx > 0 .AND. ::sx < 13) .AND. (::sy > 0 .AND. ::sy < 38)\n ::oWnd:say(::sxTemp+20, ::syTemp-20, ::aPlan[::sx,::sy] + \" # \"+str(ctod(::aPlan[::sx,::sy])-ctod(::startDay)+ 1), RGB(63,63,63), RGB(125,236,175), ::planFont, .T. )\n endif\n\n ::oWnd:DispEnd( aInfo )\n\nreturn nil\n//-----------------------------------------------------------------//\n\nmethod MMoved(x,y)\n\n IF ::sx <> (INT((x-::nStartRow)/::nHeight ) + 1) .OR. ::sx <> (INT( (y-::nStartCols )/::nHeight ) + 1 )\n ::sx := INT((x-::nStartRow)/::nHeight ) + 1\n ::sy := INT((y -::nStartCols )/::nWidth )\n\n IF x < ::nStartRow\n ::sx := 0\n x := 0\n ENDIF\n\n ::sxTemp := ::nStartRow + ::sx * ::nHeight\n ::syTemp := ::nStartCols + ::sy * ::nWidth + ::nWidth\n\n ::oWnd:refresh()\n\n ENDIF\n\nreturn nil\n//-----------------------------------------------------------------//\n\n\nMETHOD End()\n\n RELEASE FONT ::planFont\n\n ::hBru:end()\n ::hPen:end()\n ::hPen1:end()\n ::hPen3:end()\n\n\n\nreturn NIL\n//-----------------------------------------------------------------//[/code:1jzltno8]",
"time": "10:26",
"topic": "Calendario anual",
"username": "Otto"
}
] |
Calendario anual
|
[
{
"date": "2008-07-26",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Hay que seguir en el foro ingles:\r\n\r\n<!-- m --><a class=\"postlink\" href=\"http://forums.fivetechsoft.com/viewtopic.php?t=12021\">http://forums.fivetechsoft.com/viewtopic.php?t=12021</a><!-- m -->[/url]",
"time": "10:53",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-26",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias Otto, ¿puedes ponerlo dentro de un bloque de código para no perder el formato del programa y simbolos que se pierden por los emoticons?\r\n\r\nAndy, creo que está bien que esté aquí también, porque no todos hablamos ingles.",
"time": "17:14",
"topic": "Calendario anual",
"username": "quique"
}
] |
Calendario anual
|
[
{
"date": "2008-07-26",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Tienes razon Quique perdona pero como lo encontre en el foro ingles no reparé en poner el mensaje.",
"time": "17:57",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-07-28",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Thanks Otto for transforming into a Class.\r\n\r\nGracias Otto por transformala en una Classe.",
"time": "14:46",
"topic": "Calendario anual",
"username": "Andrés González"
}
] |
Calendario anual
|
[
{
"date": "2008-08-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "<!-- m --><a class=\"postlink\" href=\"http://forums.fivetechsoft.com/viewtopic.php?t=12150\">http://forums.fivetechsoft.com/viewtopic.php?t=12150</a><!-- m -->\r\n\r\nI have new sourcecode on the English forum.\r\n\r\nRegrads,\r\nOtto",
"time": "10:43",
"topic": "Calendario anual",
"username": "Otto"
}
] |
Calendario anual
|
[
{
"date": "2008-08-03",
"forum": "FiveWin para Harbour/xHarbour",
"text": "To all,\r\n\r\nAntonio published the full sourcecode of the new pickdate control and a demo sample on the English forum.\r\nAntonio, thank you very much for your help.\r\nRegards,\r\nOtto\r\n[img:1nmn1116]http://www.atzwanger.com/fw/pickdateclass.jpg[/img:1nmn1116]",
"time": "15:18",
"topic": "Calendario anual",
"username": "Otto"
}
] |
Calendario anual
|
[
{
"date": "2008-08-04",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Gracias Otto, Antonio, Manuel. Ya la tengo en uso:\r\n\r\n[url=http://img368.imageshack.us/my.php?image=asistenciamu5.jpg:1lgvfz7m][img:1lgvfz7m]http://img368.imageshack.us/img368/5341/asistenciamu5.th.jpg[/img:1lgvfz7m][/url:1lgvfz7m]",
"time": "15:13",
"topic": "Calendario anual",
"username": "Alfredo Arteaga"
}
] |
Calendario anual
|
[
{
"date": "2008-08-04",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Alfredo,\r\nHow YOu can set each day ?\r\ncan we see the source or the method modified ?",
"time": "22:58",
"topic": "Calendario anual",
"username": "Silvio"
}
] |
Calendario anual
|
[
{
"date": "2008-08-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Enviado a tu buzón.",
"time": "00:30",
"topic": "Calendario anual",
"username": "Alfredo Arteaga"
}
] |
Calendario anual
|
[
{
"date": "2008-08-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Alfredo,\r\n\r\nSe agradece si publicas los cambios aqui para que sirvan para todos, gracias <!-- s:-) --><img src=\"{SMILIES_PATH}/icon_smile.gif\" alt=\":-)\" title=\"Smile\" /><!-- s:-) -->",
"time": "05:42",
"topic": "Calendario anual",
"username": "Antonio Linares"
}
] |
Calendario anual
|
[
{
"date": "2008-08-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Con gusto Antonio, aquí lo tienes:\r\n\r\nNo hay secretos, solo pequeños cambios para identificar los días especiales a resaltar, estos los he pasado como arreglos de fechas en formato DtoS().\r\n\r\n- Se ajustó el control en unos pixeles abajo, derecha y encabezados.\r\n- Se cambió GradientFill() por Gradient() -no me he actualizado-.\r\n- Se agregó LightColor() para suavizar colores.\r\n\r\nAprovecho el viaje.\r\n\r\nAlguna vez se publicó el código para determinar las fechas que corresponden a la Semana Santa, me pregunto si alguien lo conserva y puede compartirlo? \r\n\r\n[code:1m6o7zpe]\n#Include \"FiveWin.ch\"\n\nMemVar nClrM // Color principal usado en toda la aplicación\n // por definición GetSysColor(2)\n\nCLASS TPickDate FROM TControl\n\n DATA dStart, dEnd, dTemp, lMove\n DATA nYear\n DATA oBrushSunday, oBrushSelected, oFontHeader\n DATA nLeftStart, nTopStart\n DATA bSelect\n\n DATA aFIng, aFBaj, aDVac, aDFal, aDInc, aDFes, aDSan, aDNLb // días especiales\n\n CLASSDATA lRegistered AS LOGICAL\n\n METHOD New( nTop, nLeft, nWidth, nHeight, oWnd, nYear, nClrFore, nClrBack )\n METHOD Redefine( nId, oWnd )\n METHOD Paint()\n METHOD Display() INLINE ::BeginPaint(), ::Paint(), ::EndPaint(), 0\n METHOD Destroy()\n METHOD LButtonDown( nRow, nCol, nKeyFlags )\n METHOD LButtonUp( nRow, nCol, nKeyFlags )\n METHOD PreviousYear() INLINE ::nYear--, ::Refresh()\n METHOD NextYear() INLINE ::nYear++, ::Refresh()\n METHOD EraseBkGnd( hDC ) INLINE 0\n METHOD MouseMove( nRow, nCol, nKeyFlags )\n\nENDCLASS\n\n//----------------------------------------------------------------------------//\n\nMETHOD New( nTop, nLeft, nWidth, nHeight, oWnd, nYear, nClrFore, nClrBack ) CLASS TPickDate\n\n DEFAULT nWidth := 800,;\n nHeight := 300,;\n nLeft := 0,;\n nTop := 0,;\n nYear := Year( Date() ), ;\n oWnd := GetWndDefault(),;\n nClrm := GetSysColor( 2 )\n\n ::lMove = .F.\n ::nTopStart = 0 // for header\n ::nLeftStart = 75 // col header\n\n ::nTop = nTop\n ::nLeft = nLeft\n ::nBottom = nTop + nHeight - 1\n ::nRight = nLeft + nWidth - 1\n ::nYear = Year( Date() )\n ::oWnd = oWnd\n\n ::aFIng = {} // arreglos de días especiales\n ::aFBaj = {}\n ::aDVac = {}\n ::aDFal = {}\n ::aDInc = {}\n ::aDFes = {}\n ::aDSan = {}\n ::aDNLb = {}\n\n ::dStart := ::dEnd := ::dTemp := Date()\n\n ::nClrText = nClrFore\n ::nClrPane = nClrBack\n ::nStyle = nOr( WS_CHILD, WS_VISIBLE, WS_TABSTOP, WS_BORDER )\n\n DEFINE BRUSH ::oBrushSunday COLOR LightColor(240,nClrM) // Sundays column green brush\n DEFINE BRUSH ::oBrushSelected COLOR nRGB( 240, 232, 188 ) // Selected days orange brush\n\n DEFINE FONT ::oFont NAME \"MS Sans Serif\" SIZE 0, -10 BOLD\n DEFINE FONT ::oFontHeader NAME \"MS Sans Serif\" SIZE 0, -10\n\n #ifdef __XPP__\n DEFAULT ::lRegistered := .F.\n #endif\n\n ::Register()\n\n if ! Empty( oWnd:hWnd )\n ::Create()\n oWnd:AddControl( Self )\n else\n oWnd:DefControl( Self )\n endif\n\nreturn self\n\n//----------------------------------------------------------------------------//\n\nMETHOD Redefine( nId, oWnd ) CLASS TPickDate\n\n DEFAULT oWnd := GetWndDefault(), ;\n nClrm:= GetSysColor( 2 )\n\n ::nId = nId\n ::oWnd = oWnd\n ::lMove = .F.\n ::nTopStart = 0 // for header\n ::nLeftStart = 75 // col header\n ::dStart := ::dEnd := ::dTemp := Date()\n ::nYear = Year( Date() )\n\n ::aFIng = {} // arreglos de días especiales\n ::aFBaj = {}\n ::aDVac = {}\n ::aDFal = {}\n ::aDInc = {}\n ::aDFes = {}\n ::aDSan = {}\n ::aDNLb = {}\n\n DEFINE BRUSH ::oBrushSunday COLOR LightColor(240,nClrM) // nRGB( 183, 249, 185 ) // Sundays column green brush\n DEFINE BRUSH ::oBrushSelected COLOR nRGB( 240, 232, 188 ) // Selected days orange brush\n\n DEFINE FONT ::oFont NAME \"MS Sans Serif\" SIZE 0, -10 BOLD\n DEFINE FONT ::oFontHeader NAME \"MS Sans Serif\" SIZE 0, -10\n\n ::SetColor( 0, 0 )\n\n ::Register()\n\n oWnd:DefControl( Self )\n\nreturn Self\n\n//----------------------------------------------------------------------------//\n\nMETHOD Paint() CLASS TPickDate\n\n local aInfo := ::DispBegin()\n local hDC := ::hDC, cDay, nDay, n, dDate, nColStep, nRowStep\n local dTmpDate, nMonth := 0, nLeftCol := 0\n \n local nColor, cDate // para evaluar días especiales\n local lBrush, nBrush, oBrush\n\n FillRect( hDC, GetClientRect( ::hWnd ), ::oBrush:hBrush )\n\n nRowStep = ( (::nHeight-3) - ::nTopStart ) / 13\n\n // Uso de Gradient() en vez de GradientFill()\n Gradient( ::hDC, { 0, 0, ::nHeight, ::nWidth }, LightColor(250,nClrM), LightColor(200,nClrM), .T. )\n\n dDate = CToD( \"01/01/\" + Str( ::nYear, 4 ) )\n dDate += 8 - DoW( dDate )\n\n nColStep = ( ::nWidth - ::nLeftStart - 3 ) / 37\n\n Gradient( ::hDC, { 0, 0, nRowStep - 1, ::nWidth }, LightColor(225,nClrM), LightColor(175,nClrM), .T. )\n\n ::Say( ( ::nTopStart + ( nRowStep / 2 ) - ( ::oFont:nHeight / 2 )),;\n ( ( ::nLeftStart + nColStep ) / 2 ) - ( GetTextWidth( hDC, Str( ::nYear, 4 ), ::oFont:hFont ) / 2 ),;\n Str( ::nYear, 4 ),,, ::oFont, .T., .T. )\n\n // Paint Sunday background color\n for n = 1 to 36 step 7\n FillRect( hDC, { 0, ::nLeftStart + ( nColStep * n ),;\n ::nHeight - 1, ::nLeftStart + ( nColStep * ( n + 1 ) ) }, ::oBrushSunday:hBrush )\n next\n\n for nMonth = 1 to 12\n ::Line( ::nTopStart + nMonth * nRowStep, 0,(::nTopStart + nMonth * nRowStep), ::nWidth - 1 )\n ::Say( ::nTopStart + nMonth * nRowStep + ( nRowStep / 2 ) - ( ::oFont:nHeight / 2 ), 3, cMonth( RegionDate(nMonth, Str( Year( Date() ), 4 ))) ,,, ::oFont, .T., .T. )\n next\n\n // fill selected days\n if ::lMove\n dTmpDate = Min( ::dStart, ::dEnd )\n\n while dTmpDate <= Max( ::dStart, ::dEnd )\n nMonth = Month( dTmpDate )\n nLeftCol = ::nLeftStart + ( nColStep * ( DOW( RegionDate( nMonth, Str( ::nYear, 4 ) ) ) ) ) + ;\n nColStep * ( Day( dTmpDate ) - 1 )\n FillRect( hDC, { ::nTopStart + month(dTmpDate) * nRowStep + 1,;\n nLeftCol, ::nTopStart + Month( dTmpDate ) * nRowStep + nRowStep,;\n nLeftCol + nColStep}, ::oBrushSelected:hBrush )\n dTmpDate++\n end\n\n endif\n\n // Draw days\n for n = 1 to 36\n ::Line( 0, ::nLeftStart + ( nColStep * n ), ::nHeight - 1, ::nLeftStart + ( nColStep * n ) )\n\n nColor := if( DoW( dDate ) ==1, CLR_RED, 0 )\n cDay = SubStr( CDoW( dDate++ ), 1, 1 )\n\n ::Say( ( ::nTopStart + nRowStep * 0.4 )-2,;\n ::nLeftStart + ( nColStep * n ) + ( nColStep / 2 ) - ( GetTextWidth( hDC, cDay, ::oFont:hFont ) / 2 ) + 1,;\n cDay, nColor, 0, ::oFont, .T., .T. )\n next\n\n // Draw months\n for nMonth = 1 to 12\n dDate = RegionDate(nMonth,Str( ::nYear, 4 ) )\n nDay = DoW( dDate )\n\n while Month( dDate ) == nMonth\n\n cDay = AllTrim( Str( Day( dDate ) ) )\n\n nColor := 0\n lBrush :=.F.\n cDate := DtoS( dDate)\n do case // identifica el día y define el pintado\n case DoW( dDate ) == 1; nColor := CLR_RED\n case AScan( ::aFIng, cDate ) <> 0; nColor := CLR_WHITE ; lBrush := .T.; nBrush := 2\n case AScan( ::aFBaj, cDate ) <> 0; nColor := CLR_WHITE ; lBrush := .T.; nBrush := 3\n case AScan( ::aDFal, cDate ) <> 0; nColor := CLR_HRED ; lBrush := .T.; nBrush := 4\n case AScan( ::aDInc, cDate ) <> 0; nColor := CLR_YELLOW ; lBrush := .T.; nBrush := 4\n case AScan( ::aDVac, cDate ) <> 0; nColor := CLR_BLUE ; lBrush := .T.; nBrush := 5\n case AScan( ::aDNLb, cDate ) <> 0; nColor := CLR_HRED ; lBrush := .T.; nBrush := 1\n case AScan( ::aDFes, cDate ) <> 0; nColor := CLR_HGREEN ; lBrush := .T.; nBrush := 1\n case AScan( ::aDSan, cDate ) <> 0; nColor := CLR_HGREEN ; lBrush := .T.; nBrush := 1\n endcase\n\n if lBrush\n nMonth = Month( dDate )\n nLeftCol = ::nLeftStart + ( nColStep * ( DOW( RegionDate( nMonth, Str( ::nYear, 4 ) ) ) ) ) + ;\n nColStep * ( Day( dDate ) - 1 )\n\n do case\n case nBrush == 1 ; DEFINE BRUSH oBrush COLOR LightColor(240,nClrM)\n case nBrush == 2 ; DEFINE BRUSH oBrush COLOR CLR_BLUE\n case nBrush == 3 ; DEFINE BRUSH oBrush COLOR CLR_HRED\n case nBrush == 4 ; DEFINE BRUSH oBrush COLOR CLR_RED\n case nBrush == 5 ; DEFINE BRUSH oBrush COLOR CLR_HMAGENTA\n endcase\n\n FillRect( hDC, { ::nTopStart + month(dDate) * nRowStep + 1,;\n nLeftCol + 1, ::nTopStart + Month( dDate ) * nRowStep + nRowStep,;\n nLeftCol + nColStep}, oBrush:hBrush )\n\n oBrush:End()\n endif\n\n ::Say( ( ::nTopStart + nMonth * nRowStep + ( nRowStep * 0.4 ) )-2,;\n ::nLeftStart + ( nColStep * nDay++ ) + ( nColStep / 2 ) - ( GetTextWidth( hDC, cDay, ::oFont:hFont ) / 2 ) + 1,;\n cDay, nColor, 0, ::oFontHeader, .T., .T. )\n\n dDate++\n end\n next\n\n if ValType( ::bPainted ) == \"B\"\n Eval( ::bPainted, hDC, Min( ::dStart, ::dEnd ), Max( ::dStart, ::dEnd ), Self )\n endif\n\n ::DispEnd( aInfo )\n\nreturn 0\n\n//----------------------------------------------------------------------------//\n\nMETHOD Destroy() CLASS TPickDate\n\n ::oBrushSunday:End()\n ::oBrushSelected:End()\n ::oFontHeader:End()\n\nreturn Super:Destroy()\n\n//----------------------------------------------------------------------------//\n\nMETHOD LButtonDown( nRow, nCol, nKeyFlags ) CLASS TPickDate\n\n local nMonth := Int( ( nRow - ::nTopStart ) / ( ( ::nHeight - ::nTopStart ) / 13 ) )\n local nDay := Int( ( nCol - ::nLeftStart ) / ( ( ::nWidth - ::nLeftStart ) / 37 ) ) - ;\n DoW( RegionDate( nMonth, Str( ::nYear, 4 ) ) ) + 1\n\n if nDay > 0 .and. nMonth > 0 // to work with valid dates only\n ::dStart := CToD( AllTrim( AllTrim( Str( nDay ) )+ \"/\" + Str( nMonth ) ) + \"/\" + Str( ::nYear, 4 ) )\n ::lMove := .T.\n ::Refresh( .F. )\n endif\n\nreturn Super:LButtonDown( nRow, nCol, nKeyFlags )\n\n//-----------------------------------------------------------------//\n\nMETHOD LButtonUp( nRow, nCol, nKeyFlags ) CLASS TPickDate\n\n if ValType( ::bSelect ) == \"B\"\n Eval( ::bSelect, Min( ::dStart, ::dEnd ), Max( ::dStart, ::dEnd ), Self )\n endif\n\n ::lMove := .F.\n\nreturn Super:LButtonUp( nRow, nCol, nKeyFlags )\n\n//-----------------------------------------------------------------//\n\nMETHOD MouseMove( nRow, nCol, nKeyFlags ) CLASS TPickDate\n\n local nMonth := Int( ( nRow - ::nTopStart ) / ( ( ::nHeight - ::nTopStart ) / 13 ) )\n local nDay := Int( ( nCol - ::nLeftStart ) / ( ( ::nWidth - ::nLeftStart ) / 37 ) ) - ;\n DoW( RegionDate( nMonth, Str( ::nYear, 4 ) ) ) + 1\n local dEnd\n\n if nDay > 0 .and. nMonth > 0 // to work with valid dates only\n dEnd = CToD( AllTrim( Str( nDay ) ) + \"/\" + AllTrim( Str( nMonth ) ) + \"/\" + Str( ::nYear, 4 ) )\n\n if ! Empty( dEnd ) .and. dEnd != ::dTemp // for reducing continuous refreshes\n ::dTemp := dEnd\n ::dEnd = dEnd\n ::Refresh( .F. )\n if ValType( ::bChange ) == \"B\"\n Eval( ::bChange, Min( ::dStart, ::dEnd ), Max( ::dStart, ::dEnd ), Self )\n endif\n endif\n endif\n\nreturn Super:MouseMove( nRow, nCol, nKeyFlags )\n\n//-----------------------------------------------------------------//\n\nfunction RegionDate( nMonth, cYear )\nreturn CToD( \"01/\" + AllTrim( Str( nMonth ) ) + \"/\" + cYear )\n\n//-----------------------------------------------------------------//\n\n// LightColor(nDegrade,nColor) para degradar o seleccionar color\n\n#pragma BEGINDUMP\n\n#include <Windows.h>\n\nHARBOUR HB_FUN_LIGHTCOLOR( )\n{\n COLORREF lColor = hb_parnl(2);\n LONG lScale = hb_parni(1);\n\n long R = MulDiv(255-GetRValue(lColor),lScale,255)+GetRValue(lColor);\n long G = MulDiv(255-GetGValue(lColor),lScale,255)+GetGValue(lColor);\n long B = MulDiv(255-GetBValue(lColor),lScale,255)+GetBValue(lColor);\n\n hb_retnl( RGB(R, G, B) );\n}\n\n#pragma ENDDUMP\n[/code:1m6o7zpe]",
"time": "17:32",
"topic": "Calendario anual",
"username": "Alfredo Arteaga"
}
] |
Calendario anual
|
[
{
"date": "2008-08-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Alfredo Arteaga\":230qspah]Alguna vez se publicó el código para determinar las fechas que corresponden a la Semana Santa, me pregunto si alguien lo conserva y puede compartirlo?[/quote:230qspah]\r\nNo es del foro pero sí lo comparto con gusto:[code:230qspah]//----------------------------------------------------------------------------------------------------//\n\nFunction dHollyFriday( nYear )\n\n Local a, b, c, Aa, Bb\n\n a := nYear % 19\n b := nYear % 4\n c := nYear % 7\n Aa := ( ( 19 * a ) + 24 ) % 30\n Bb := ( ( 2 * b ) + ( 4 * c ) + ( 6 * Aa ) + 5 ) % 7\n\nReturn StoD( LTrim( Str( nYear ) ) + \"03\" + StrZero( Aa, 2 ) ) + Bb + 22 - 2[/code:230qspah]Un abrazo\r\n\r\nManuel Mercado",
"time": "18:16",
"topic": "Calendario anual",
"username": "mmercado"
}
] |
Calendario anual
|
[
{
"date": "2008-08-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Caray Don Manuel, todo un genio!. Se ve tan simple.",
"time": "19:19",
"topic": "Calendario anual",
"username": "Alfredo Arteaga"
}
] |
Calendario anual
|
[
{
"date": "2008-08-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "<!-- m --><a class=\"postlink\" href=\"http://fivetechsoft.com/forums/viewtopic.php?t=12150&start=30\">http://fivetechsoft.com/forums/viewtopi ... 0&start=30</a><!-- m -->\r\n\r\nMETHOD PreviousMonth() and NextMonth() are ready. So you can select a period which is in 2 years, like 1.12.2008 – 31.1.2009. \r\n\r\nRegards, \r\nOtto",
"time": "21:27",
"topic": "Calendario anual",
"username": "Otto"
}
] |
Calendario anual
|
[
{
"date": "2008-08-05",
"forum": "FiveWin para Harbour/xHarbour",
"text": "Manuel excelente la funcion de calculo semana santa\r\n\r\npara quien quiera mas información\r\n\r\n[url:2pqvb2zd]http://es.wikipedia.org/wiki/C%C3%A1lculo_de_la_fecha_de_Pascua[/url:2pqvb2zd]",
"time": "23:21",
"topic": "Calendario anual",
"username": "Patricio Avalos Aguirre"
}
] |
Calendario anual
|
[
{
"date": "2008-08-06",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Patricio Avalos Aguirre\":1o4iwqgx]para quien quiera mas información[/quote:1o4iwqgx]Les tengo una mala noticia, mi rutina en FiveWin solo funcionará hasta el año 2099, por lo que les agradeceré recordarme con unos meses de anticipación para corregirla. <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \r\n\r\nUn abrazo.\r\n\r\nManuel Mercado",
"time": "03:16",
"topic": "Calendario anual",
"username": "mmercado"
}
] |
Calendario anual
|
[
{
"date": "2008-08-06",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote:1d6x0j3i]Les tengo una mala noticia, mi rutina en FiveWin solo funcionará hasta el año 2099, por lo que les agradeceré recordarme con unos meses de anticipación para corregirla.[/quote:1d6x0j3i]\r\n\r\nYa tomé nota de ello... te lo recordaré con antecedencia.... <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> \r\n\r\n\r\nSaludos.",
"time": "12:54",
"topic": "Calendario anual",
"username": "Ricardo Ramirez E."
}
] |
Calendario anual
|
[
{
"date": "2008-08-06",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"Ricardo Ramirez E.\":3aum09jk]Ya tomé nota de ello... te lo recordaré con antecedencia.... [/quote:3aum09jk]\r\nGracias Ricardo, pero por favor recorre el recordatorio para el año 2299, <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> aquí tienes la nueva rutina:\r\n[code:3aum09jk]Function dHollyFriday( nYear ) \n\n Local a, b, c, Aa, Bb, n \n\n n := If( nYear > 2099, 6, If( nYear > 2199, 0, 5 ) ) \n a := nYear % 19 \n b := nYear % 4 \n c := nYear % 7 \n Aa := ( ( 19 * a ) + 24 ) % 30 \n Bb := ( ( 2 * b ) + ( 4 * c ) + ( 6 * Aa ) + n ) % 7 \n\nReturn StoD( LTrim( Str( nYear ) ) + \"03\" + StrZero( Aa, 2 ) ) + Bb + 22 - 2[/code:3aum09jk]Un abrazo.\r\n\r\nManuel Mercado",
"time": "13:32",
"topic": "Calendario anual",
"username": "mmercado"
}
] |
Calendario anual
|
[
{
"date": "2008-08-06",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[code:rs7cwyqv]Function dHollyFriday( nYear ) \n\n Local a, b, c, Aa, Bb, n \n\n n := If( nYear > 2099, 6, If( nYear > 2199, 0, 5 ) ) \n a := nYear % 19 \n b := nYear % 4 \n c := nYear % 7 \n Aa := ( ( 19 * a ) + 24 ) % 30 \n Bb := ( ( 2 * b ) + ( 4 * c ) + ( 6 * Aa ) + n ) % 7 \n\nReturn StoD( LTrim( Str( nYear ) ) + \"03\" + StrZero( Aa, 2 ) ) + Bb + 22 - 2[/code:rs7cwyqv]\r\n\r\n\r\nMejor así:\r\n\r\nFunction dHollyFriday( nYear ) \r\n\r\n Local a, b, c, Aa, Bb, m, n\r\n\r\n m := If( nYear > 2099, 24, If( nYear > 2199, 25, 24 ) ) \r\n n := If( nYear > 2099, 6, If( nYear > 2199, 0, 5 ) ) \r\n a := nYear % 19 \r\n b := nYear % 4 \r\n c := nYear % 7 \r\n Aa := ( ( 19 * a ) + m ) % 30 \r\n Bb := ( ( 2 * b ) + ( 4 * c ) + ( 6 * Aa ) + n ) % 7 \r\n\r\nReturn StoD( LTrim( Str( nYear ) ) + \"03\" + StrZero( Aa, 2 ) ) + Bb + 22 - 2\r\n\r\nSaludos\r\nCarlos G.",
"time": "14:07",
"topic": "Calendario anual",
"username": "FiveWiDi"
}
] |
Calendario anual
|
[
{
"date": "2008-08-06",
"forum": "FiveWin para Harbour/xHarbour",
"text": "[quote=\"FiveWiDi\":1uugg64y]Mejor así:[/quote:1uugg64y]Tienes razón Carlos, ahora ya no me preocuparé hasta el 2199, <!-- s:D --><img src=\"{SMILIES_PATH}/icon_biggrin.gif\" alt=\":D\" title=\"Very Happy\" /><!-- s:D --> la rutina quedó así:[code:1uugg64y]Function dHollyFriday( nYear ) \n\n Local a, b, c, Aa, Bb, m, n\n\n m := If( nYear > 2199, 25, 24 ) \n n := If( nYear > 2099, 6, If( nYear > 2199, 0, 5 ) ) \n a := nYear % 19 \n b := nYear % 4 \n c := nYear % 7 \n Aa := ( ( 19 * a ) + m ) % 30 \n Bb := ( ( 2 * b ) + ( 4 * c ) + ( 6 * Aa ) + n ) % 7 \n\nReturn StoD( LTrim( Str( nYear ) ) + \"03\" + StrZero( Aa, 2 ) ) + Bb + 20\n[/code:1uugg64y]Saudos.\r\n\r\nManuel Mercado",
"time": "17:30",
"topic": "Calendario anual",
"username": "mmercado"
}
] |
Calendario anual
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.