0 1 2
TPlannerShape = (psRect, psRounded, psHexagon, psTool, psSkin);
Does not contain a Custom item. What does its appearance in the ComboBox mean?
TSimpleShape = (ssCircle, ssTriangle, ssHArrow, ssVArrow, ssTriangles, ssCircles, ssSquares);
I'm missing the ability to select an item from TSimpleShape
I write both values in a single field of the table. For TSimpleShape I increase the value by 10. Is it possible to add?
procedure TfrmPlannerRole.dbpmwMonthFieldsToItem(Sender: TObject; Fields: TFields; Item: TPlannerItem);
const
Shift = 10;
begin
if fdtblPlanner.FieldByName('SHAPE').AsInteger < Shift then
begin
Item.DrawTool := nil;
Item.Shape := TPlannerShape(fdtblPlanner.FieldByName('SHAPE').AsInteger)
end
else
begin
Item.DrawTool := FRolePlanner.ShapeDrawTool[fdtblPlanner.FieldByName('SHAPE').AsInteger - Shift];
Item.Shape := psTool;
end;
Note:
I have a few topics without a response from you. I would like to get some answers. Let me know how to proceed in programming! My license ends in 18 days. Because of this, I have a strong urge not to wrap it up. Although my posts are sometimes "stupid" or premature, it is appropriate to answer to them.
well thank you
TPeriodItemEditor
ShowColor and ShowShape = True - are not displayed