SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    5
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to setup owner property of common dialog

    Hi All,

    I have an question about how to setup owner property of common dialog box.

    I have created one common dialog box by using the create object function
    Set cdlg = CreateObject("UserAccounts.CommonDialog")

    I am trying to setup owner property of newly created object by I do not know correct syntax to do that. What I am trying to achieve is to make web browser to be a parent of the newly created dialog box.
    I have tried to pass hwnd of the web Browser but I got “Invalid procedure call or argument” message
    hwnd1 = Window("name:=Browser Name").GetRoProperty("hwnd")
    cdlg.Owner = hwnd1
    If I do not specify this property owner of the dialog will be QTP itself but I would like to avoid that.

    Thanks in advance for all answers!

  2. #2
    Member
    Join Date
    Jan 2008
    Location
    China
    Posts
    89
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to setup owner property of common dialog

    in the code of your dialog, you may try to get browser handle via Windows API

 

 

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 11.54%
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 04:16 AM.

Copyright BetaSoft Inc.