> "Enter more commands":
> xscreen=win.GetSystemMetrics("SM_CXVIRTUALSCREEN")
> xscreen=xscreen/2
> 0 0 xscreen 839 under
One problem is, "xscreen" is a PowerPro builtin function,
so you cannot use it as your variable name.
Also, you need to use the new kind of syntax which is:
window.position(args which can be expressions such as variables)
instead of: window position literal args only
The differences are the point (dot) between Window and Position
and the arguments going into parentheses, like my second line:
xvar=win.GetSystemMetrics("SM_CXVIRTUALSCREEN")/2
window.position(0,0,xvar,839,"under")
---------------------------------------
> I try to create a captionmenu that positions a window in the upper
> right corner with the half width and the full height of the screen.
so we must change your arguments for window position:
xvar=win.GetSystemMetrics("SM_CXVIRTUALSCREEN")/2
yvar=win.GetSystemMetrics("SM_CYVIRTUALSCREEN")
window.position(xvar,0,xvar,yvar,"under")
If this is an item in a command list, put the first line
in the normal Command text box, and the other lines in the
box labelled "Enter more cpommands..."
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.
