SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Member
    Join Date
    Nov 2000
    Location
    Shelton, CT, USA
    Posts
    32
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: multi-parenting a dialog in the include file

    Have you tried the syntax of
    "~ActiveApp/[DialogBox]Open"

    For example:
    DialogBox Open
    tag "~ActiveApp/[DialogBox]Open"

    Notice you don't use a parent statement.
    The ~ActiveApp prefix deals with the multiple parents. See Help under MultiTags for a better description.

    [This message has been edited by mvpl (edited 03-21-2001).]

  2. #2
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: multi-parenting a dialog in the include file

    Ian,

    You don't have to put everything in your main .inc file. You can always split your big .inc file into smaller ones and then either using the "use" statement(s) to include all the other .inc files in your main .inc file or in a .lib (library) file which you can enter in the Options/Runtime...Use Files: field.

  3. #3
    Member
    Join Date
    May 2000
    Location
    NY
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: multi-parenting a dialog in the include file

    Gilbert,

    How would using multiple .inc files help solve the problem, unless they were loaded dynamically at runtime based on which parent window was invoked ?

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

    Re: multi-parenting a dialog in the include file

    Thanks for your suggestions. I'm aware of splitting the .inc file into smaller sections, but for issues of portability we have decided not to implement this. Right now, I'm most interested on hearing solutions to the multiparenting issue posted above. We might want to start another thread discussing other optimization issues.

    Thanks again!
    =====
    Ian Sims
    ESRI, Inc.

  5. #5
    Super Member
    Join Date
    Jul 1999
    Location
    Rancho Santa Margarita, CA
    Posts
    1,439
    Post Thanks / Like
    Mentioned
    4 Post(s)
    Tagged
    1 Thread(s)

    Re: multi-parenting a dialog in the include file

    JoeV,

    Sorry, about the missing info. I wasn't really addressing the "multiparenting problem". I thought Ian has a concern on an extremely long .inc file that he wanted to make shorter so I made my suggestion so that if he opens that .inc file next time, he won't have those 53,000 lines in one file.

  6. #6
    Senior Member
    Join Date
    Aug 1999
    Location
    MA
    Posts
    129
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: multi-parenting a dialog in the include file

    Create your own winclass for this dialog box, and where it has multiple parents, just "nest" an instance there. This will consolodate the declarations to the buttons, controls, etc... to one place. Say your dialog box takes up 10 lines in declaration, your "instance" will take up 1 line

    For instance:
    Now you have two different locations in your INC file for this dialog, using classes you see this:

    Just expand on this idea, and you can start reducing lines and making your project easier to manage.

    [This message has been edited by styler (edited 03-21-2001).]
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  7. #7
    Junior Member
    Join Date
    Mar 2001
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    multi-parenting a dialog in the include file

    Testers,
    Our software uses dialog boxes that are accessible from multiple locations, in effect giving a dialog box multiple parents.
    Our .inc file is extremely long (at last count over 53,000 lines) and we've been looking for ways to make this shorter. Have any of you had any luck making one declaration that has multiple parents? If so, I'd be very interested to see a brief code example.
    We have mentioned this issue with a couple of Segue consultants, and none of their suggestions have been successful. We've tried the GetParent() command as well as working with custom winclasses. Neither have been successful.

    Any suggestions? Many thanks.

    ------------------
    =====
    Ian Sims
    ESRI, Inc.
    =====
    Ian Sims
    ESRI, Inc.

  8. #8
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: multi-parenting a dialog in the include file

    Aside from the fact that I love styler's solution, does SilkTest even allow multiparenting?

  9. #9
    Senior Member
    Join Date
    Oct 1999
    Location
    Tyngsborough, MA
    Posts
    211
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: multi-parenting a dialog in the include file

    mvpl's suggestion is exactly what the Segue Adv OO 4Test manual recommends,
    DialogBox Open
    tag "~ActiveApp/[DialogBox]Open"

    The interesting thing is that this tag would be satisfied wether or not there was a parent at all.

    If you used the form
    tag "../[DialogBox]Open"
    there would need to be a parent to satisfy the "../"

  10. #10
    Junior Member
    Join Date
    Feb 2001
    Location
    Portland, OR, USA
    Posts
    21
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: multi-parenting a dialog in the include file

    I have found that you can provide for multiple parents by using "../" in the tag statement. something like this:


    [-] window DialogBox CommonList [+] multitag "../*Link*"
    [ ] "../*List"
    [ ] "../List*"
    [ ] "../*List*"

    Bill Hull
    QA Engineer
    Timberline Software
    www.timberline.com

 

 
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
  •  

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 03:50 PM.

Copyright BetaSoft Inc.