Welcome, Guest
Username: Password: Remember me
General Purpose Components and Libraries, discussions, problems and suggestions
  • Page:
  • 1

TOPIC:

Is it possible to make GroupDrawObjects public? 9 years 4 months ago #6252

  • Thierry Coq
  • Thierry Coq's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
Hi
I'm testing the shapes package. I'm looking into the Composite object. It seems that adding children to the Composite object is only possible on the Create operation.

However, from the form editor inside the EDI, it seems easy to add objects to the composite by drag/drop into the object. This doesn't work as the Composite object does not recognize its contents.

If the operation GroupDrawObjects in TplDrawObjectComposite were to be public, it would be easy to add a single line in the OnShow event of the form to link the children to the composite, like the following example:
procedure TForm1.FormShow(Sender: TObject);
begin
  plDrawObjectComposite1.GroupDrawObjects([plDiamond2, plEllipse1]);
end;

This modification is easily applied and does not break compatibility with previous versions. Naturally, it might be useful to add an "Ungroup" operation, unlinking the children objects from the composite.

Best regards,
Terry

Please Log in or Create an account to join the conversation.

Is it possible to make GroupDrawObjects public? 9 years 4 months ago #6253

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4506
  • Thank you received: 1100
Thanks Sir
we will add your suggestion to the pkg
If you want you can attach your source ,
yes always we want help
PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.

Is it possible to make GroupDrawObjects public? 9 years 4 months ago #6254

  • Thierry Coq
  • Thierry Coq's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 3
  • Thank you received: 0
OK.
I will prepare an update of the pl_ file and an example project to add to the samples.

Thank you very much.
Best regards,
Terry

Please Log in or Create an account to join the conversation.

  • Page:
  • 1