>They need to be able to:
>-- Edit the text in the field
>-- Drag the field to a new location
Well, the interface for this could be messy. If I were you, I'd make
sure that several modifier keys have to be down to drag the field, and
make sure you change the mouse cursor to something like a hand to give a
good indication of what's going to happen.
As to the how of it -- you're going to have to overlay a canvas over the
whole window (or at least the whole area the field can occupy). The
canvas will screen clicks, and if they land on the field AND the
appropriate modifiers are down, it starts dragging the field. Otherwise,
the canvas' MouseDown event returns false to let the next control handle
the click.
The only disadvantage is that every control under the canvas will be
obscured in the IDE, making editing of the window a pain.
I wrote a quick little hack in about 5 minutes that does it. If you want
to see it, let me know.
-Thomas
Personal web page: http://home.earthlink.net/~thomasareed/
My shareware: http://home.earthlink.net/~thomasareed/shareware/
Pixel Pen web pub. guide: http://home.earthlink.net/~thomasareed/pixelpen/
The bus station is the place where the bus stops. The train station is the
place where the train stops. So if I have a workstation...
|