User (Legacy) Posted March 1, 2004 Report Share Posted March 1, 2004 I've created a chart where the user can create annotation picture objects where they click. Dependingon the mode I also let them move any of the objects they created. 1) If the user has created, for example five annotation objects, when he moves one of the objects, the SelectionChange event is raised, but how do I know WHICH object has been changed. I'd like to know the new location of the object. 2) Is there a way to get the location in the units of the X and Y axes? 3) When the item is selected it grows black handles at each corner which the user can drag to resize the object. Is there a way to disable the user from dragging these handles? I set AllowModify to false, but that didn't work. 4) I also don't understand how items are deselected. It seems that sometimes selecting a different item does not UNselect the previously selected item. (i.e there are two items that look selected). What's the logic here? Note that each annotation object is contained in its own AnnotationX "parent". Thanks Mitch Link to comment Share on other sites More sharing options...
Software FX Posted March 2, 2004 Report Share Posted March 2, 2004 The selection can be obtained from the annotation extension as follows: annot.SelectionList It may be more than one object that was selected. -- FP Software FX Link to comment Share on other sites More sharing options...
User (Legacy) Posted March 2, 2004 Author Report Share Posted March 2, 2004 How about my other questions: 1) How to keep the user from attempting to resize a picture object. AllowModify = false doesn't work. 2)How can I prevent multiple objects (from different AnnotationX objects) from being "selected". Mitch "SoftwareFX Support" <noreply@softwarefx.com> wrote in message news:2NtMeAHAEHA.196@webserver3.softwarefx.com... > The selection can be obtained from the annotation extension as follows: > > annot.SelectionList > > It may be more than one object that was selected. > > -- > FP > Software FX > > Link to comment Share on other sites More sharing options...
Software FX Posted March 4, 2004 Report Share Posted March 4, 2004 Oops ! I got caught up with the first question and didn't see the others. > 1) How to keep the user from attempting to resize a picture object. > AllowModify = false object.AllowMove = false; Will disable Movement and Re-Sizing. There is no property to stop only re-sizing but keep allowing movement. You can implement this by reverting the object to its original size in the SelectionChanged event. Although this will allow the user to start resizing the object with the mouse, the change will not be committed. > 2)How can I prevent multiple objects (from different AnnotationX objects) > from being "selected". Same deal. You can manipulate the SelectionList object to un-select objects and so forth. -- FP Software FX Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.