Page 1 of 1

Calendar, Scheduler in Gambas

Posted: Tuesday 17th November 2020 3:04am
by Gamba_Dance
Good morning to all,

years ago I programmed an application where I stored some data, according to the days of a week.
Now a customer is interested in this solution and I have to digg out everything for a re-make
with individual demand.
To have a better sight of what data is stored, I wanna show this with a calender-sight-output
of one week. What I need now, is a routine, which picks up my data from
monday, tuesday, wednesday.. and puts it into a calender view. Does anyone have an idea,
where I can find a "data-open" calendar or scheduler which works with Gambas?

Greetings
GD

Re: Calendar, Scheduler in Gambas

Posted: Tuesday 17th November 2020 6:30pm
by BruceSteers
not quite sure what it is you need but calendar item background and other things can be individually set using the relevant date as the key.
Ie..
'
Dim d as Date = Now()

DateView1[d].Background = Color.Orange   ' sets today as orange

DateView1[DateAdd(d, gb.Day, 1)].Background = Color.Blue  ' Sets tomorrow as blue
'
with that method you can check your data and set a colour of an individual date .

not sure if that helps.
Bruce

Re: Calendar, Scheduler in Gambas

Posted: Tuesday 17th November 2020 6:38pm
by BruceSteers
PS. you have posted this in the "Project Showcase" area?

"Project Showcase" is like a coders version of "Art Gallery" ;)

Re: Calendar, Scheduler in Gambas

Posted: Wednesday 18th November 2020 5:56pm
by Gamba_Dance
Good evening Bruce,

thank you and I like much the small coding-ideas :idea: (like you did) at the beginning of every big project.
Will check this..

Greetings from
Jürgen

PS: Sorry for the wrong aera

Re: Calendar, Scheduler in Gambas

Posted: Saturday 21st November 2020 12:24pm
by cogier
Have a look at the attached. Is that what you are looking for?

Image
TestNew-0.0.1.tar.gz
(171.86 KiB) Downloaded 279 times

Re: Calendar, Scheduler in Gambas

Posted: Tuesday 8th December 2020 12:54pm
by Gamba_Dance
In the moment I solved the problem with textboxes, because I need only one week. But for another version your solution might be better.
Thanks for posting!