Custom controls - advice wanted

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm building a custom control based on scrollablecontrol. I want to show a
tool panel in the client rectangle. This is a panel holding some text boxes
etc through which the user enters business data. I want the Tool panel to

1. stay in the client rectangle when the user scrolls, and

2. be draggable (so that the user can drag it away from the business object
he is viewing in the custom control).

It doesn't seem to be possible to use a Form to do this. Is there another
control I could use to meet the above requirements?

Thanks,

Nigel B
 
Hi Nigel,

There is no ready-made control. WHat you can do is the following - create a
composite User Control consisting of two panels - the tool panel and the
business object panel. The business object panel will be scrollable and will
display business object data. The tool panel can be docked to all four sides
of the outer composite control. You will have to implement the mouse
dragging of the panel yourself though (through capturing the mouse and
drawing a rectangle suggesting the new position of the panel).

Hopefully you don't need your tool panel to be "floating", even though it
also can be done, it's rather a challenge.
 
Back
Top