→Quick Dragging Code
m (detagging) |
|||
| Line 66: | Line 66: | ||
Using this method can result in the frame not responding to other mouse events, also both mouse buttons will drag the frame. | Using this method can result in the frame not responding to other mouse events, also both mouse buttons will drag the frame. | ||
You can also specify <Size> and <Anchors> within <TitleRegion>, e.g. | |||
<Frame name="myname" frameStrata="HIGH" toplevel="true" enableMouse="true" movable="true" parent="UIParent"> | |||
<TitleRegion> | |||
<Size> | |||
<AbsDimension x="200" y="20"/> | |||
</Size> | |||
<Anchors> | |||
<Anchor point="TOP"/> | |||
</Anchors> | |||
</TitleRegion> | |||
... | |||
</Frame> | |||
This way, your <Frame> can still receive mouse events, and you can only drag it by clicking within its <TitleRegion>. | |||
[[Category: HOWTOs]] | [[Category: HOWTOs]] | ||