SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    359
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to click on a row in Activex Grid..

    I am able to get data from the cell/row, but how to click/highlight the row???

    val = trim(VbWindow("XXX").ActiveX("XXXGrid").Object.Tex tMatrix(Rw,Col))

    above code is working fine, but i am not able to click on the row... plz help..

    I tried below link as well...

    http://www.sqaforums.com/showflat.php?Ca...amp;Search=true

  2. #2
    Senior Member
    Join Date
    Aug 2006
    Location
    Montreal, Quebec, CANADA
    Posts
    106
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to click on a row in Activex Grid..

    Hello,

    When spying your ActiveX object, verify in Native Operations if there is a function that can help you select a specified row.

    What would happen if you try:

    VbWindow("XXX").ActiveX("XXXGrid").Object.TextMatr ix(Rw,Col).click

    Could you send a screenshot of your ActiveX object native operations?

    Thanks

  3. #3
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: How to click on a row in Activex Grid..


  4. #4
    Super Member
    Join Date
    Dec 2005
    Location
    USA
    Posts
    1,407
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: How to click on a row in Activex Grid..

    use VbWindow("XXX").ActiveX("XXXGrid").Selectrow(intRo wNum)
    ------------
    Chikki
    when things gets harder ,the harder gets going

  5. #5
    Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    359
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to click on a row in Activex Grid..

    @chikki

    Error: Object doem't support this method...

  6. #6
    Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    359
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to click on a row in Activex Grid..

    @Tarun

    VbWindow("XXX").ActiveX("XXXGrid").RowPos(6)

    above gives me the 'y' cordinate of the row number -6 (i.e. 1200)

    Now if I try..

    VbWindow("XXX").ActiveX("XXXGrid").Click 150, 1250
    or
    VbWindow("XXX").ActiveX("XXXGrid").Click 500, 1300,micLeftBtn
    It sats - "The statement contains one or more invalid function arguments"

  7. #7
    Super Member
    Join Date
    Dec 2005
    Location
    USA
    Posts
    1,407
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0

    Re: How to click on a row in Activex Grid..

    It should be AcxTable Object to use SelectRow method.
    ------------
    Chikki
    when things gets harder ,the harder gets going

  8. #8
    Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    359
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to click on a row in Activex Grid..

    any help guys??

  9. #9
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: How to click on a row in Activex Grid..

    That is because the documentation says that it returns the information in form of Twips and not Pixels. You would need to do that conversion somehow.

    Divide that by 15 and see if it works for you

  10. #10
    Member
    Join Date
    Mar 2011
    Location
    London, UK
    Posts
    359
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to click on a row in Activex Grid..

    Hi Tarun, thx for reply..

    Not working... still same error...

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 01:38 AM.

Copyright BetaSoft Inc.