Calendar Control

Calendar Control

Postby TimStone » Thu Jan 10, 2008 12:15 am

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.

Actually, 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.

I 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.

The 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.

This is not a stand alone control ! 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.

If appropriate, I'm sure this snippet could be upgraded quite nicely.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby Rick Lipkin » Thu Jan 10, 2008 12:48 am

Tim

I found that code myself and I took the basic calendar and modified it to our Agency's Time and Reporting system.

I use the buttons to build an array ( by date ) for users to enter in their codes associated with their job activities.

Interesting to look at as well to see how to hide controls based on the different days in a month.

Kewl code !!

Rick Lipkin
User avatar
Rick Lipkin
 
Posts: 2633
Joined: Fri Oct 07, 2005 1:50 pm
Location: Columbia, South Carolina USA

Calendar (popup a replace date-field) + other date-funct.

Postby ukoenig » Thu Jan 10, 2008 6:27 pm

Why don't you try the calendar, you find at my website ?

Greetings from Germany

U. König :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Kalendar

Postby TimStone » Thu Jan 10, 2008 6:49 pm

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.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Canal Five

Postby UD previous posts » Fri Jan 11, 2008 6:55 pm

I like the C5 Calendar control

Take a look
UD previous posts
 
Posts: 42
Joined: Sat Sep 30, 2006 9:43 am

C5

Postby TimStone » Fri Jan 11, 2008 9:48 pm

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.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Calendar (popup a replace date-field) + other date-funct

Postby Manuel Valdenebro » Sat Jan 12, 2008 8:45 am

ukoenig wrote:Why don't you try the calendar, you find at my website ?


Ukoenig,

I had dowloaded your calendar. Congratulation.
In its source code I read spanish comments and function's names with spanish contents. Which is the origin of this calendar class?

Regards
Un saludo

Manuel
User avatar
Manuel Valdenebro
 
Posts: 706
Joined: Thu Oct 06, 2005 9:57 pm
Location: Málaga-España

Spanish-code in Calendar-class

Postby ukoenig » Sat Jan 12, 2008 2:24 pm

A few years ago, i found a calendar-class for the
16 Bit FW, but it was in spanish.
I had to do some changes, to use it for the new FWH.
For me it was not easy, because i don't know anything about spanish.

Greetings from germany

U.König :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Postby Silvio » Sat Jan 12, 2008 4:59 pm

I think...
Mr Tim Stone are searching another type of calendar ....like office 2007
But he want it free ....
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Silvio

Postby TimStone » Sat Jan 12, 2008 9:56 pm

No, I don't want something for free. I needed an immediate, interim, solution for a specific project.

In the long term, I will be implementing several controls, and none of them do I expect to be free ....
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby Silvio » Sun Jan 13, 2008 12:00 am

Wich is the specific project ?
Can you explain me please ?
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Project

Postby TimStone » Sun Jan 13, 2008 1:02 am

I sent you a screen shot by email of the completed work ... for now
I also explained the various elements.

It is an appointment scheduler for vehicle services. It includes the following:
+ Scheduling an appointment for any day and/or time and varied intervals
+ Attaching a vehicle, and client to the appointment
+ Creating and Attaching an estimate, which includes parts and labor ( in detail ) to the appointment
+ Attaching notes to the appointment
+ Assigning the appointment to a specific work area
+ Permitting reoccuring appointments ( auto scheduling )
+ The ability to move appointments
+ Printing of the schedule
+ A Gant chart for day, and one for the week, which shows work areas and the times assigned
+ The ability to select a date on a calendar and instantly see all the appointments for that day, and the detail
+ Additional notes capability

This 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 !

It 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.

I 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.

I 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.

Anyway, 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.

BTW ... 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.

I hope this isn't too wordy.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Postby Silvio » Sun Jan 13, 2008 2:44 am

ok I understand
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Postby Roger Seiler » Thu Jan 17, 2008 2:21 pm

Tim,

Your 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?

Thanks.

- Roger
User avatar
Roger Seiler
 
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA

Mod

Postby TimStone » Thu Jan 17, 2008 8:33 pm

Email me: timstone at masterlinksoftware dot com
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
User avatar
TimStone
 
Posts: 2905
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 24 guests