going back to your original problem,
in "[power-pro] Re: Behavior of bottom edge (full screen)"...
Instead of using position: Bottom edge (full screen)
or Bottom edge (current size)
I suggest you try position: Fixed bottom left,
which keeps it above the taskbar.
(I mean "above" in the y dimension, rather than z.)
Then the vertical position should remain as you want it
automatically, also the left edge position will be correct,
so your HookWindowEvents script only needs to adjust
the bar's width to suit the current screen size.
barwidth = xscreen
barheight = window("height", "SystemBar1")
win.size("bar1_Top", barwidth, barheight)
which can be reduced to one line, with no variables needed:
win.size("SystemBar1", xscreen, window("height", "SystemBar1"))
---------------------------------------------------
About setting the value of the bar width:
I notice that currently you are using the width of the taskbar
to measure how wide to make your bar:
>local width = window("width","taskbar")
If you do it that way, it should be:
local width = window("width","taskbar") -4
because the taskbar is 4 pixels wider than the screen size.
win.debug(window("width","taskbar"))
returns 1028 for me on a 1024 monitor.
Or...
instead of using the taskbar to measure the screen width,
you could use the built in function: xscreen
like I did above.
Note: xscreen can be a problem on some dual monitor systems.
For some display driver setups, it returns the width of
only the primary monitor. On other setups, it returns
the sum of the widths of both monitors.
Attention: PowerPro's Web site has moved: http://www.ppro.org
SPONSORED LINKS
| Computer monitoring software | Power pro | Computer and internet software |
| Free computer monitoring software |
YAHOO! GROUPS LINKS
- Visit your group "power-pro" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
