
July 20th, 2005, 07:27 PM
|
|
Contributing User
|
|
Join Date: Jul 2005
Posts: 55
Time spent in forums: 19 h 33 m 36 sec
Reputation Power: 4
|
|
Quote: | Originally Posted by astro__pc Hi.
Is someone know how to insert items by code in the component TrmDayView.
thank for all. |
I have already fixed my problem.
I thought that was necessary instace of TrmDayViewCollectionItem, but it is not necessary
Itīs very simple.
It's someting like that:
rmDayView1.Items.Add;
rmDayView1.Items.Items[0].Caption:='xpto'
rmDayView1.Items.Items[0].ShowHint:=True;
rmDayView1.Items.Items[0].StartTime:= strtotime(12:00);
rmDayView1.Items.Items[0].Duration:=60//1 hour

|