SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Mar 2001
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Client Area Co-ordinates

    User sumitra (sumitra@prabodhan.com.nospam) posted:

    Hi,
    I want to know whether we can get the co-ordinates of the object's
    client area while run time?
    Thanks and Regards,
    Sumitra

  2. #2
    Junior Member
    Join Date
    Sep 2001
    Location
    chennai,India
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Client Area Co-ordinates

    Use GetRect() method of the window it will gives the position of the window as well as its width and height .

    [-] testcase getclientarea()
    [ ] RECT myarea
    [ ] Myappication.setActive()
    [ ] myarea=Myapplication.GetRect()
    [ ] Print("width of the window {myarea.xSize}")
    [ ] Print("height of the window {myarea.ySize}")

    -kvvv

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Client Area Co-ordinates

    Specifically, if you want the client area, you can use the ClientArea embedded object on any member of a MoveableWin class or its subordinates (e.g. ChildWin, DialogBox, MainWin). That is:

    Look up the MoveableWin class in the SilkTest help file for what other objects are, by default, included in MoveableWin objects. There are lots.

    - Dave


    ------------------
    Amelior Technology
    dreed@ameliortech.com

    [This message has been edited by dcreed (edited 09-20-2001).]
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  4. #4
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Client Area Co-ordinates

    User John Green (jwgreen@automationexpertise.com.nospam) posted:

    Sumitra,

    wObject.GetRect () will return a RECT object, which is a record including
    xPos, yPos, xSize, and ySize.

    It works on EVERY object, including Desktop.

    Hope this helps

    John Green
    Automation Expertise


 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 07:14 PM.

Copyright BetaSoft Inc.