Fred thanks for the reply. I don't think I explained what I am after
correctly. I'll try again
------------------------------
| A |
| ------------------- |
| | B | |
| | | |
| |-----------------| |
| |
|----------------------------|
-----------
| C |
| |
|----------|
B is what I want to be the drop target. Think of it as looking in a
window.
Assume C is a box you can drop onto B.
I want to be able to move C around within B. However Instead of B
being the bounding constraint. I want to use A as the constraint.
So if C was dragged around within B it would appear to be Clipped if
it extended beyond B's Bounds, however A would provide a reasonable
constraint so you would never clip your entire C object entirely.
All it really does is provide you some extra room to move C around
within B. If C is moves slightly outside of B's bounds then it appears
clipped.
That is what I mean by fudge factor. just a little buffer.
If A was the drop target then the C would not appear Clipped. I want B
to be a Window
Hope this help clear up what I am asking for. Maybe there is a way to
achieve this already.
Adam
On Sep 3, 9:25 pm, "Fred Sauer" <
f...@allen-sauer.com> wrote:
> Calculation wise its probably not a lot, but allowing a widget to slightly
> stick outside of a container panel would be quite tricky to do generally.
> What about just wrapping the boundary panel around a drop target that is
> slightly smaller: smaller by the number of pixels of your fudge factor?
>
> Fred Sauer
>
f...@allen-sauer.com