Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dragable content

Status
Not open for further replies.

seanbo

Programmer
Jun 6, 2003
407
GB
i need a component with the following attributes:

1/ should be draggable
2/ should be rectangular
3/ should be resizable, by draggin corners.

what should i use, and how?
 
UPDATE:

as a test, i have created a rtf box that i responds to cerain mose actions. when the mouse is pressed in it, it records it's current position, and the current mouse position, an starts the drag operation. every time the mouse moves, if the drag operation is true, the box is moved by how far the mouse has moved ((box start position - mouse start position) + current mouse position).

the problem is that it seems to be flicking between two location very quickly; it looks as though there are two rtf boxes on the screen while i'm dragging. why might this be? i still haven't made it resizable, but if i can get it dragging correctly then it should be too difficult a task.

what i really want is a component similar to the ones used is vs.net design view; which allow you to easily scale and size a component. what component would let me do this?
 
UPDATE:

as a test, i have created a rtf box that i responds to cerain mose actions. when the mouse is pressed in it, it records it's current position, and the current mouse position, an starts the drag operation. every time the mouse moves, if the drag operation is true, the box is moved by how far the mouse has moved ((box start position - mouse start position) + current mouse position).

the problem is that it seems to be flicking between two location very quickly; it looks as though there are two rtf boxes on the screen while i'm dragging. why might this be? i still haven't made it resizable, but if i can get it dragging correctly then it should be too difficult a task.

what i really want is a component similar to the ones used is vs.net design view; which allow you to easily scale and size a component. what component would let me do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top