Hi there,
by experimenting with Usercontrols in Jabaco I have created a small Control what you call in VB a MonthCalendar.
It simply shows a sort of a Calendar that has a line for every week and the week day names in columns, where the user can select a special date. It's underlying working class is the GregorianCalendar from the namespace java#util.
if you drag an object of it onto a form you could use it on a form like this:
|
Jabaco Source
|
1
2
3
4
5
6
7
|
Public Sub MonthCalendar1_Selected()
MonthCalendar1.Visible = False
Command1.Caption = MonthCalendar1.Calendar.getTime.toLocaleString
End Sub
Public Sub Command1_Click()
MonthCalendar1.Visible = True
End Sub
|
this is the first version so it is already working but it is in beta status.
i also left some room for extensions some ideas:
* let the user/programmer select the first week day (sunday or monday)
* adding an additional column on the left that shows the number of the week
* adding functionality that let the user perform addition/subtraction of timespans to the selected date
* coloring sunday, public holiday or all other special dates, e.g. birthdays
* let the user/programmer define his own user colors
greetings
OlimilO