SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Guest

    Window Locations and control locations...how to? ---- very *********

    Iam working on webbased application,and need to find the location of the window on Desktop(upper/lower/center/upperleft/uppercenter/upperleft/lowerleft/lowercenter/lowerright...etc).
    And, control locations on window(next to other control...)...is it possible?

    How I might accomplish above tasks...could anyone share ideas with me, it'd be greatly appreciated.

    Many thanks in advance.



    ------------------
    Satya

  2. #2
    Junior Member
    Join Date
    Dec 2000
    Location
    Camberley, UK
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Window Locations and control locations...how to? ---- very *********

    You can use the GetProperty("Rect") method to return the x and y co-ordinates of any window or control

    does that answer your question?

    Steve

  3. #3
    Senior Member
    Join Date
    Jun 2000
    Location
    Sunyyvale CA USA
    Posts
    422
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Window Locations and control locations...how to? ---- very *********

    Hi,

    Try to use Record\Window Location for window position manually after that you can automate it with properties like Rect as said by our friend in earlier posting.

    For controls you can use the same. Why you want to do this for

    Sree

  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: Window Locations and control locations...how to? ---- very *********

    Expanding on Steve's answer:

    RECT r
    r = Browser.GetRect ()
    r.xPos = distance from the left side of desktop
    r.yPos = distance from top of desktop

    RECT rDesktop = Desktop.GetRect ()
    rDesktop.xSize = Screen width (Ex. 1024)
    rDesktop.ySize = Screen height (Ex. 768)

    Hope this helps

    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

 

 

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 04:06 AM.

Copyright BetaSoft Inc.