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 » DoCommand (RSS)
  • Re: about AlignBotton, AlignTop, AlignLeft, AlignRight, AlignCentre and AlignMiddle

    Override the DoCommand method, and add commands eg "AlignShapeLeft" Dont forget to call the base implementation. Loop through each shape in the Model.SelectedElements collection and store the left most x coordinate Then call Model.Suspend and set each shape.X to the value, then cal Model.Resume...
    Posted to Forum by James Westgate on 09-18-2007
  • Re: How to handle Ctrl+Drag ?

    Although this would be a nice feature I dont think it is possible without changing the source code. You could use DoCommand("copy') and DoCommand("paste") to implement the copy/paste, but you will need to change the mouse handlers to force the ctrl+drag to begin an action. Sorry.
    Posted to Forum by James Westgate on 08-19-2007
Page 1 of 1 (2 items)