TMSFNCPlanner questions

Hi,

  1. How can I retrieve the resource for the selected cell when using multiple resources?

  2. How can I color the cell for active time in the OnBeforeDrawCell? For the inactive-time it works...
    if (DayOf(AEndTime) = 10) then AGraphics.Fill.Color := clWebCoral; <- only colors the inactive-time cells

  3. How can I use a different popup-menu for the planner and for the items? TMSFNCPlanner1ItemPopupMenuPrepare doesn't seem to be called when I right-click on a item.

Thanks

Wim

  1. TMSFNCPlanner1.SelectedResource;
  2. Use the following code instead
  if DayOf(AEndTime) = 1 then
  begin
    AGraphics.Fill.Color := clWebCoral;
    AGraphics.Fill.Kind := gfkSolid;
  end;
  1. Set TMSFNCPlanner1.ItemPopup := PopupMenu1; then, OnItemPopupMenuPrepare will be called

Hey Pieter,

Thanks.
One more question: how can I set the width of the resource-column and align them to leading?
The planner is in MultiResDay- and Horizontal mode.

Grtz
Wim

With the property TMSFNCPlanner1.PositionsAppearance.TopHorizontalTextAlign (Top is Left in horizontal mode) you can change the alignment, with the TMSFNCPlanner1.PositionsAppearance.TopSize, you can change the width