Demo of Positioning Plugin | ||||||||||
This page demonstrates a plugin
which implements the positioning work that I did in OverLIB 3.33 which cleans
up and rationalizes all the positioning issues that have been discussed
in the overlib newsgroup. It is 100% compatable with the intent of the positioning
commands as documented, but it makes their operation more reliable and predictable.
This plugin requires a Core Module with a version number of 4.10 or later
to work correctly.
This page demonstrates the improved Horizontal and Vertical Positioning commands, and follows with expanded User Documentation and Installation Instructions. For a complete discussion of the plugin demonstrated here - including the evolution, before and after examples, credits, tooling instructions, and in-depth technical discussion of the modifications - see the related Technical Discussion page. I would like to thank Robert E Boughner for modifying my original patches to work with the new plugin version of overlib. |
||||||||||
Some facts about this page
and your browser. The background image on this page is a 50 pixel by 50 pixel grid. Use it for counting. |
||||||||||
Horizontal Positioning | ||||||||||
The Yellow bar is an anchor for a popup handled by OverLIB 4.11 WITH THE PLUGIN positionMod.js. Slide your mouse the length of each bar to see the behavior of the popup at different x-positions on the screen. | ||||||||||
Default to right of mouse with automatic edge justification.
(Default offset of 10px) To left of mouse with automatic edge justification. (Default offset of 10px) Right OR left of mouse with automatic edge justification. (Default offset of 10px) Centered below mouse with automatic edge justification. (NO mid-point offset) Right OR left of mouse and snapped to a 50px grid, with automatic edge justification. Centered below mouse but offset to the left by 75px. Using OFFSETX suppresses automatic edge justification. Centered below mouse, offset to the left by 75px and snapped to a 30px grid. Using OFFSETX suppresses automatic edge justification. RELX in a revised implementation. Always 15px from the left margin of the VISIBLE WINDOW. This overrides all other horizontal positioning commands, so it doesn't matter if we leave them in the arg list. They will be ignored. RELX in a revised implementation. Always 450px from the left margin of the VISIBLE WINDOW. Watch out. This looks OK on a 1024px wide monitor, but it is horrid on an 800px monitor. This demonstrates why autopositioning is so important. Use RELX (with large values) with caution. RELX in a revised implementation. Always 100px from the right margin of the VISIBLE WINDOW. This adapts to screen resolution, window width and horizontal scrolling. |
||||||||||
Vertical Positioning | ||||||||||
|
||||||||||
|
||||||||||
Revised User Documentation | ||||||||||
RIGHT (Default) Place the popup to the right of the mouse, but do not overrun the right margin of the window. LEFT CENTER HAUTO OFFSETX,x
OFFSETX/OFFSETY - general comment - located after OFFSETY, below. SNAPX,grid RELX,x BELOW ABOVE VAUTO OFFSETY,y
OFFSETX/OFFSETY - general comment SNAPY,grid RELY,y WIDTH HEIGHT |
||||||||||
Installation Instructions | ||||||||||
This plugin is written as an
ADDITION to the OverLIB Core Module v4.11. In other words, the faint-of-heart
do not have to edit their copy of OverLIB.
|
||||||||||
Please let me know if you encounter problems.Modified by REB, May 11, 2004 |