Is there a system parameter or accepted standard for grab handles (the squares used to indicate that an object has the focus to be moved or resized)
Or any other thoughts on how to implement this in a .NET container component?
Printable View
Is there a system parameter or accepted standard for grab handles (the squares used to indicate that an object has the focus to be moved or resized)
Or any other thoughts on how to implement this in a .NET container component?
I haven't understood your question correctly. (I'm a n00b in .NET :D).
Are you looking for the DrawFocusRect API.
Yes, and it's called "DragAndDrop"Quote:
Originally Posted by Merrion
But it doesn't handle resizing
DragnDrop is the action of dragging and dropping from one source to a destination.
Merion: If you make a UserControl in .net it will handle th grab handles for you automatically. :)
Ah, but I want these grab handles available at run time - I am adding a design interface to the structured document utility classes so that the user can modify the document template before printing it.Quote:
Merion: If you make a UserControl in .net it will handle th grab handles for you automatically.
The GDI classes seem to have a DrawGrabHandle method which I will use...but without a seperate window for the grab handles the whole mouse icon and mouse event handling is going to be a pain in the whatsit...
I'm going to move this thread to th evb.net forum as I know you will get more direction on how to accomplish what you want. :)
What is this 'grab handle' you guys are talking about ? :confused:
Please post a screenshot.
Maybe this..Quote:
Originally Posted by iPrank
the squares used to indicate that an object has the focus to be moved or resized
iStupid. :o
iKnow :D ;) Jk.
I remember reading a thread on something like this a few months ago. It was here in the vb.net forum so maybe try a filtered search for it.
I'm creating an usercontrol in C# (playing) seems to be the cleaner way, then use it as a container, it's not hard to draw the grab handles, the hard part is adding some interaction to it, as Merrion said.
Something related in C#.. (CodeGuru)
http://www.codeguru.com/forum/showthread.php?t=318948