I am just about testing the FNC Planner component. I want to display several positions in a timeline, that shows a number of days. The timeline should be on the top. This is nicely done by setting the OrientationMode. The Mode I set to DayPeriod, which seems to work well.
hi,
The problem in MultiDay mode is, that the days are displayed on the left side and the time is on the top. I need days and time on the top and positions on the left. Is this possible in any mode?
As already mentioned in the previous post, it is not possible to have both the day and time on the timeline.
Ok, so I have to draw it by myself. Should be ok for me. I discovered OnBeforeDrawTime and OnAfterDrawTime and several other Events, that could be useful. Is there a detailed description what each of this does and what AAllow and ADefaultDraw does? I did not find any detailed description in the DevGuide.
There is no detailed description of these events, but there is a sample in the TMS FNC UI Pack that demonstrates the use of those events. The Allow parameter is to completely block drawing, the ADefaultDraw is to apply graphics, but not draw the elements, so you can draw them yourself. With the Allow parameter you also need to apply graphics such as font, color, ...
Thank you for the info. I will give it a try. Unfortunately there is no sample app with source in the trail version, but I will buy the FNC UI Pack anyway.
I bought the UI pack and the planner works great for me. I managed to draw the timeline, so it fits my needs.
Hi,
Ok, thanks for your answer.
How is the textsize of the item title set, when FontSize = -1 ?
The Fontsize can be controlled per item, when it is -1 it takes over the font size of ItemAppearance.TitleFont.Size or ItemAppearance.Font.Size. You could override the OnBeforeDrawItemTitle or OnBeforeDrawItemText event and then calculate the font size based on the available rectangle that is passed as a parameter.
Many thanks for your help. Will try that.
I just discovered a problem in the mousewheel event handler.
Should be
Ups, did not work, because Handled is not handled in HandleMouseWheel. So made this change:
Hi,
Here are my changes:
Thank you for your investigation, we'll apply the changes accordingly.
Thank you. That is great, so I do not have to change it after every update.