Skip to Content
author's profile photo Former Member
Former Member

position window

what is the position window command in scripts ?

Regards,

pandu.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Sep 21, 2007 at 10:48 AM

    hi pandu

    If you want to set the position realtively to the window use POSITION WINDOW

    to set the position to the top/left start of the window. Then use POSITION

    to set the current position relatively to the start of the Window.

    Note that you uses "+" or "-" in the ORIGIN position to the set the position relatively.

    /: POSITION WINDOW

    /: POSITION XORIGIN '5' MM YORIGIN '10' MM

    the position is now 5 MM from the left and 10 MM from the top of the window

    NOTE: After using the position command you can move the current position

    realtively to the last used position

    /: POSITION XORIGIN '10' MM YORIGIN '20' MM

    Now the position will be X = 15 and Y = 30

    reward for use ful points

    regards

    Nagesh.Paruchuri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 21, 2007 at 10:51 AM

    Hi,

    SAP Scripts Boxes/Lines/Shading

    Setting default parameters for a box:

    You can use the POSITION and SIZE commands to set default parmeters for a box.

    Instead of:

    /: BOX XPOS '11.21' MM YPOS '5.31' MM HEIGHT '10' MM WIDTH '20' MM INTENSITY 10 FRAME 0 TW

    You can write:

    /: POSITION XORIGIN '11.21' YORIGIN '5.31' MM

    /: SIZE HEIGHT '2' MM WIDTH '76' MM

    /: BOX FRAME 10 TW INTENSITY 10

    This can be usefull if you gave several boxes that share the same parameters.

    If you want to set the position realtively to the window use POSITION WINDOW

    to set the position to the top/left start of the window. Then use POSITION

    to set the current position relatively to the start of the Window.

    Note that you uses "+" or "-" in the ORIGIN position to the set the position relatively.

    /: <b>POSITION WINDOW</b>

    /: POSITION XORIGIN '5' MM YORIGIN '10' MM

    the position is now 5 MM from the left and 10 MM from the top of the window

    NOTE: After using the position command you can move the current position

    realtively to the last used position

    /: POSITION XORIGIN '10' MM YORIGIN '20' MM

    Now the position will be X = 15 and Y = 30

    Drawing a line. You can draw a line by setting the Height or Weidth to 0

    and add a frane. E.g. a horizontal line:

    /: SIZE HEIGHT '0' MM WIDTH '200' MM

    /: BOX FRAME 10 TW XPOS '11.21' MM YPOS '14.81' MM INTENSITY 100

    Reward points if useful.

    Pritha.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.