Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calender

Status
Not open for further replies.

AlastairOz

Technical User
Jul 27, 2010
81
0
0
AU
I have no idea if or how I can do this:
I would like to have a calender in a form which shows
text and info in the calender for events booked on those
day/s.
Also have different colours for the days which have events.
That way the user can see instantly when there are free days
to book other events.
Can anyone steer me in the right direction?
 
I would think it fairly easy to do this with native Visual Foxpro controls.

Create a container class to represent a day. The container would hold textboxes: one for the day number, one for the details of the event, and so on.

Then create a form to represent a month. Place the containers on the form, in seven columns - one for each day of the week.

At its simplest, the user could then click on a textbox, and edit the event text, for example.

Obviously, there would be more to it than the above simplified explanation, but you asked if it was possible to do it, and so the answer is Yes.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
MikeLewis said:
I would think it fairly easy to do this with native Visual Foxpro controls.

Indeed. It's one of the first controls I created when VFP was still in alpha, created as a learning experience.

Haven't we all built at least one of these?
 
actually the simplest with almost no programming is doing:

Code:
_diarydate=date()
ACTIVATE WINDOW calendar

You have a calender and can enter text to each date. It lacks several of your requirements, but it's a freebie of Foxpro since way back then.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top