Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
Visual PlanIt and lots of events on the day
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Using Lazarus to teach In...
by
Nimbus
[
Today
at 10:15:31 pm]
IDE Editor Windows, ident...
by
d7_2_laz
[
Today
at 10:04:35 pm]
Little bit...
by
ASerge
[
Today
at 09:51:32 pm]
CORE-MATH 32bits in Pasca...
by
schuler
[
Today
at 09:32:39 pm]
Lazarus forum incompatibl...
by
Thausand
[
Today
at 07:16:18 pm]
Fpcupdeluxe
by
Thaddy
[
Today
at 06:12:30 pm]
FPC 3.2.4-rc1 available
by
Thaddy
[
Today
at 06:09:54 pm]
FPC Unleashed (inline var...
by
Fibonacci
[
Today
at 03:55:47 pm]
504 Gateway Timeout
by
Martin_fr
[
Today
at 03:28:06 pm]
Problem with MariaDB and ...
by
OH1KH
[
Today
at 03:26:54 pm]
Feature announcement: Fun...
by
Thaddy
[
Today
at 01:47:33 pm]
Elite Arcade
by
nomorelogic
[
Today
at 01:16:40 pm]
IDE Coolbar
by
staratel20
[
Today
at 01:00:32 pm]
Midi to Wav Converter
by
Thaddy
[
Today
at 12:28:47 pm]
Pure Pascal ZPAQ and ZSTD
by
Tomxe
[
Today
at 11:48:23 am]
AmigaOS can't run program...
by
Trenatos
[
Today
at 11:30:22 am]
Lazarus and FreePascal on...
by
jwdietrich
[
Today
at 10:44:37 am]
Space Duel
by
Tomi
[
Today
at 09:18:22 am]
Call the Llama.cpp dynami...
by
LeP
[
Today
at 09:11:38 am]
Is there a "known good" c...
by
Thaddy
[
Today
at 08:07:46 am]
Can I get the position an...
by
CM630
[
Today
at 07:29:22 am]
Lazarus 4.6 on macOS 10.1...
by
wpostma
[
Today
at 03:30:20 am]
Forums were down, and are...
by
wpostma
[
Today
at 03:26:20 am]
Untitled raycaster game (...
by
flowCRANE
[
Today
at 01:17:56 am]
Change original package o...
by
pmralbuquerque
[April 19, 2026, 07:55:14 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Visual PlanIt and lots of events on the day (Read 3036 times)
kkuba
Jr. Member
Posts: 50
Visual PlanIt and lots of events on the day
«
on:
October 07, 2023, 10:37:21 pm »
I have the problem that I have a lot of events on one day. It doesn't fit in the events preview by day, or even less in the events preview by week. When it does, three dots appear at the bottom, but clicking on them only adds a event. So it's impossible to scroll through the events on that day. Is there any way to display a long list of events on a given day? No matter in which component, e.g. in VpWeekView?
«
Last Edit: October 07, 2023, 10:47:52 pm by kkuba
»
Logged
wp
Hero Member
Posts: 13491
Re: Visual PlanIt and lots of events on the day
«
Reply #1 on:
October 07, 2023, 11:55:56 pm »
How many is a "lot of events"? How many are overlapping?
Logged
kkuba
Jr. Member
Posts: 50
Re: Visual PlanIt and lots of events on the day
«
Reply #2 on:
October 08, 2023, 12:13:13 am »
I had this idea to show the availability of the team during the week. It's about 15 people, but if it's not possible or it's difficult, I'll come up with something else.
Logged
wp
Hero Member
Posts: 13491
Re: Visual PlanIt and lots of events on the day
«
Reply #3 on:
October 08, 2023, 12:29:31 am »
OK, I see: with about 10 overlapping events it gets tight even on a wide monitor... Let me see what I can do.
Logged
wp
Hero Member
Posts: 13491
Re: Visual PlanIt and lots of events on the day
«
Reply #4 on:
October 08, 2023, 01:10:34 am »
See attached demo for a quick-and-dirty solution. You can write a procedure which exports all events of the date selected in the Dayview to a StringList, and this could be displayed in a Listbox, for example:
Code: Pascal
[Select]
[+]
[-]
procedure
ExportEventsByDate
(
AResource
:
TVpResource
;
Date
:
TDateTime
;
AList
:
TStrings
)
;
var
i
:
Integer
;
event
:
TVpEvent
;
schedule
:
TVpSchedule
;
begin
schedule
:
=
AResource
.
Schedule
;
for
I
:
=
0
to
schedule
.
EventCount
-
1
do
begin
event
:
=
schedule
.
GetEvent
(
I
)
;
if
schedule
.
IsEventOfThisDate
(
Date
,
event
)
then
begin
if
event
.
AllDayEvent
then
AList
.
Insert
(
0
,
Format
(
'all day: %s'
,
[
event
.
Description
]
)
)
else
AList
.
Add
(
'%s - %s: %s'
,
[
FormatDateTime
(
FormatSettings
.
ShortTimeFormat
,
event
.
StartTime
)
,
FormatDateTime
(
FormatSettings
.
ShortTimeFormat
,
event
.
EndTime
)
,
event
.
Description
]
)
;
end
;
end
;
end
;
Logged
kkuba
Jr. Member
Posts: 50
Re: Visual PlanIt and lots of events on the day
«
Reply #5 on:
October 08, 2023, 07:52:30 am »
This is what I was thinking about. I just wrote a query in SQL to the events table using ZQurey because in then I could use DBGrid. But this is a nightmare solution.... In fact, it should probably work like this, that when you click on the three dots it moves the list of events. Because now it is impossible to edit a longer list of events from these components.
Logged
wp
Hero Member
Posts: 13491
Re: Visual PlanIt and lots of events on the day
«
Reply #6 on:
October 11, 2023, 12:32:30 am »
I extended the TVpGanttview to hour resolution. In a GanttView the time is on the horizontal axis (in DayView it is on the vertical axis), and every event has a single row. Maybe this is better-suited to this use case.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Packages and Libraries
»
Visual PlanIt and lots of events on the day
TinyPortal
© 2005-2018