Crainiate Community

Support and discussion for users of Crainiate component software products
Welcome to Crainiate Community Sign in | Join | Help
in Search

Browse by Tags

All Tags » runtime (RSS)
  • Re: AddLine with arrow

    The Runtime class ( Model.Runtime ) acts as an object factory. You can either create a subclass of Runtime and override the CreateLine methods, or you could override the OnCreateElement event method or you could simply attach an event handler to the Runtime.CreateElement event.
    Posted to Forum by James Westgate on 02-23-2008
  • Re: ElementRemoved likes too late

    Override the CanDelete method in the Runtime class. This will allow you to determine if an element should be deleted through any user interaction. You will need to assign a new instance of your class to Model.Runtime property
    Posted to Forum by James Westgate on 10-05-2007
  • Cancelling an action if a line is not docked correctly.

    1. You may want to expand the logic that determines if the line can dock to the shape it is over. You can do this by overriding the Runtime.CanDock method and providing your own implementation. In the example below we prevent docking to any element with an Opacity less than 100%: public class MyRuntime...
    Posted to Forum by James Westgate on 09-13-2007
  • Re: Ireneusz Patalas please come in , need your help again.

    Refer to the Model.Runtime.Create* factory methods for items that are created at runtime interactively. Override this class to allow interactive users to create instances of your own custom classes.
    Posted to Forum by James Westgate on 08-23-2007
Page 1 of 1 (4 items)