no edit summary
m (IE6 floating bug.) |
No edit summary |
||
| Line 8: | Line 8: | ||
:(owner, "Anchor"[, +x, +y]) | :(owner, "Anchor"[, +x, +y]) | ||
:;owner : Frame - Owner frame, which defines the element where the tooltip is centered on. A pointer to the frame is required, not the frame name itself (use getglobal() to get the pointer from the frame name). | :;owner : Frame - Owner frame, which defines the element where the tooltip is centered on. A pointer to the frame is required, not the frame name itself (use getglobal() to get the pointer from the frame name). | ||
:;anchor : String - a string that describes the anchor point as it would be set via the SetPoint() function. Anchoring | :;anchor : String - a string that describes the anchor point as it would be set via the SetPoint() function. Anchoring methods as follows: | ||
::ANCHOR_TOPRIGHT ------- SetPoint("BOTTOMRIGHT",object,"TOPRIGHT") | ::ANCHOR_TOPRIGHT ------- SetPoint("BOTTOMRIGHT",object,"TOPRIGHT") | ||
::ANCHOR_RIGHT ------- SetPoint("BOTTOMLEFT",object,"TOPRIGHT") | ::ANCHOR_RIGHT ------- SetPoint("BOTTOMLEFT",object,"TOPRIGHT") | ||
| Line 17: | Line 17: | ||
::ANCHOR_CURSOR | ::ANCHOR_CURSOR | ||
::ANCHOR_PRESERVE | ::ANCHOR_PRESERVE | ||
::ANCHOR_NONE | |||
You can also move the tooltip by x or y, where positive x is to the right and positive y is up. Thus, negative x is to the left and negative y is down. Doesn't work if anchor is ANCHOR_CURSOR. | You can also move the tooltip by x or y, where positive x is to the right and positive y is up. Thus, negative x is to the left and negative y is down. Doesn't work if anchor is ANCHOR_CURSOR. | ||