If you take a look at the doIt() method of CmdCreateNode you will see that this creates an instance of ModePlace.
ModePlace has methods such as mousePressed, mouseReleased etc. If you have your own extension of CmdModeCreate then you could modify this to create your own extension of ModePlace and do whatever work required in those methods. Regards Bob. On 6/10/06, Sam <[EMAIL PROTECTED]> wrote:
Hi, I was wondering if there's a way to see where a new element is going to be placed before the Fig is created. I'm trying to check if the element I'm going to create is inside a State. And if it isn't inside a state to not create it. If there's a way to know the last position a mouse click took place that should also be enough to implement my check. I was thinking of putting the check in my CmdCreateNode extended element, is there maybe a better place to put such a check ? Greets, Sam
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
