Calendar, Scheduler in Gambas

Post your Gambas programming questions here.
Post Reply
User avatar
Gamba_Dance
Posts: 11
Joined: Wednesday 30th September 2020 8:43am

Calendar, Scheduler in Gambas

Post 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
If even one line of "Hello World" program code requires an intelligent :idea: riginator, how can anyone claim that the human genome with 3,300,000,000 lines :o f intelligent code could have been created by chance :?:
User avatar
BruceSteers
Posts: 1505
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Calendar, Scheduler in Gambas

Post 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
If at first you don't succeed , try doing something differently.
BruceS
User avatar
BruceSteers
Posts: 1505
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Calendar, Scheduler in Gambas

Post by BruceSteers »

PS. you have posted this in the "Project Showcase" area?

"Project Showcase" is like a coders version of "Art Gallery" ;)
If at first you don't succeed , try doing something differently.
BruceS
User avatar
Gamba_Dance
Posts: 11
Joined: Wednesday 30th September 2020 8:43am

Re: Calendar, Scheduler in Gambas

Post 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
If even one line of "Hello World" program code requires an intelligent :idea: riginator, how can anyone claim that the human genome with 3,300,000,000 lines :o f intelligent code could have been created by chance :?:
User avatar
cogier
Site Admin
Posts: 1117
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: Calendar, Scheduler in Gambas

Post 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 278 times
User avatar
Gamba_Dance
Posts: 11
Joined: Wednesday 30th September 2020 8:43am

Re: Calendar, Scheduler in Gambas

Post 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!
If even one line of "Hello World" program code requires an intelligent :idea: riginator, how can anyone claim that the human genome with 3,300,000,000 lines :o f intelligent code could have been created by chance :?:
Post Reply