SPONSORS:






User Tag List

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

    Problem with Windows with same caption

    I have an app that has several dialogs with the same exact title. Each of these dialogs contains another dialog within (I could make out from the declaration) that is different in each of the dialogs. Can someone please help me deal with these dialogs. Here is what the dialog declarations look like:

    [+] window DialogBox One
    [ ] tag "Same Title"
    [ ] parent Parent
    [ ]
    [+] DialogBox DialogBox1
    [ ] tag "$0"
    [+] StaticText NameText
    [ ] tag "Name:"
    [+] TextField Name
    [ ] tag "#1"
    [+] StaticText DescriptionText
    [ ] tag "Description:"
    [+] TextField Description
    [ ] tag "#2"
    [+] PageList PageList1
    [ ] tag "#1"
    [+] StaticText StaticText1
    [ ] tag "#1"
    [+] PushButton OK
    [ ] tag "OK"
    [+] PushButton Cancel
    [ ] tag "Cancel"
    [+] PushButton Help
    [ ] tag "Help"
    [ ]
    [ ]
    [+] window DialogBox Two
    [ ] tag "Same Title"
    [ ] parent Parent
    [ ]
    [+] DialogBox DialogBox1
    [ ] tag "$0"
    [+] StaticText AddressText
    [ ] tag "Address:"
    [+] TextField Address
    [ ] tag "Address:"
    [+] ComboBox Timeout
    [ ] tag "Timeout (seconds):"
    [+] PageList PageList1
    [ ] tag "#1"
    [+] StaticText StaticText1
    [ ] tag "#1"
    [+] PushButton OK
    [ ] tag "OK"
    [+] PushButton Cancel
    [ ] tag "Cancel"
    [+] PushButton Help
    [ ] tag "Help"
    [ ]
    [ ]
    [+] window DialogBox Three
    [ ] tag "Same Title"
    [ ] parent Parent
    [+] DialogBox DialogBox1
    [ ] tag "$0"
    [+] StaticText TypeText
    [ ] tag "Type:"
    [+] TextField Type
    [ ] tag "Type:"
    [+] PageList PageList1
    [ ] tag "#1"
    [+] StaticText StaticText1
    [ ] tag "#1"
    [+] PushButton OK
    [ ] tag "OK"
    [+] PushButton Cancel
    [ ] tag "Cancel"
    [+] PushButton Help
    [ ] tag "Help"
    [ ]
    [ ]

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

    Re: Problem with Windows with same caption

    You have to change the tag to make the DialogBox unique using the parent/child/.. notation:

    [+] DialogBox DialogBox1
    [ ] tag "$0/[StaticText]Name:/.."
    [+] StaticText NameText
    [ ] tag "Name:"
    ...

    [+] window DialogBox Two
    [ ] tag "Same Title/[StaticText]Address:/.."
    [ ] parent Parent
    [ ]
    [+] DialogBox DialogBox1
    [ ] tag "$0"
    [+] StaticText AddressText
    [ ] tag "Address:"
    ...

    [+] window DialogBox Three
    [ ] tag "Same Title/[StaticText]Type:/.."
    [ ] parent Parent
    [+] DialogBox DialogBox1
    [ ] tag "$0"
    [+] StaticText TypeText
    [ ] tag "Type:"
    ...
    Steven Tyler
    Manager - Performance Engineering

    Kronos Incorporated
    tel: +1 978 947 4219

  3. #3
    Junior Member
    Join Date
    Mar 2000
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with Windows with same caption

    Can I do that? The StaticText Name, Address and Type are members of DialogBox1. Maybe it was not clear from my previous post, I will copy it here again:

    [+] window DialogBox One
    [ ] tag "Same Title"
    [ ] parent Parent
    [ ]
    [+] DialogBox DialogBox1
    [ ] tag "$0"
    [+] StaticText NameText
    [ ] tag "Name:"
    [+] TextField Name
    [ ] tag "#1"
    [+] StaticText DescriptionText
    [ ] tag "Description:"
    [+] TextField Description
    [ ] tag "#2"
    [+] PageList PageList1
    [ ] tag "#1"
    [+] StaticText StaticText1
    [ ] tag "#1"
    [+] PushButton OK
    [ ] tag "OK"
    [+] PushButton Cancel
    [ ] tag "Cancel"
    [+] PushButton Help
    [ ] tag "Help"
    [ ]
    [ ]
    [+] window DialogBox Two
    [ ] tag "Same Title"
    [ ] parent Parent
    [ ]
    [+] DialogBox DialogBox1
    [ ] tag "$0"
    [+] StaticText AddressText
    [ ] tag "Address:"
    [+] TextField Address
    [ ] tag "Address:"
    [+] ComboBox Timeout
    [ ] tag "Timeout (seconds):"
    [+] PageList PageList1
    [ ] tag "#1"
    [+] StaticText StaticText1
    [ ] tag "#1"
    [+] PushButton OK
    [ ] tag "OK"
    [+] PushButton Cancel
    [ ] tag "Cancel"
    [+] PushButton Help
    [ ] tag "Help"
    [ ]
    [ ]
    [+] window DialogBox Three
    [ ] tag "Same Title"
    [ ] parent Parent
    [+] DialogBox DialogBox1
    [ ] tag "$0"
    [+] StaticText TypeText
    [ ] tag "Type:"
    [+] TextField Type
    [ ] tag "Type:"
    [+] PageList PageList1
    [ ] tag "#1"
    [+] StaticText StaticText1
    [ ] tag "#1"
    [+] PushButton OK
    [ ] tag "OK"
    [+] PushButton Cancel
    [ ] tag "Cancel"
    [+] PushButton Help
    [ ] tag "Help"
    [ ]
    [ ]

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

    Re: Problem with Windows with same caption

    I am sorry... But it looks like, all the leading spaces and tabs are removed when the message is posted. Actually the textboxes and the static text that are different in the dialogs are members of DialogBox1. This time I am attaching a .t file to this message.

    test.t



  5. #5
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with Windows with same caption

    We have had this exact same problem with our app as well for a few years now; there's basically no way round it that we've ever found. You can't use the parent/unique child thing because it doesn't work when you try and specify a unique 'grandchild' control. The only way we've been able to get scripts working at all is to use lots of wildcards in our window tags, and have the scripts simply assume that the correct window is appearing at the right time. And shout at the developers a lot to see if they can sort out some more distinct captions on the windows.

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

    Re: Problem with Windows with same caption

    Tip: You can use the CODE tag on Ultimate Bulletin Board systems to preserve the tabs.

    Try this, you have to make those secondary dialog boxes unique as well.

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

    Kronos Incorporated
    tel: +1 978 947 4219

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

    Re: Problem with Windows with same caption

    Thank you very very much! I got it working... But I didn't have to use the StaticText in the tag, just "[DialogBox]Same Title/[DialogBox]$0/.." for the dialogbox and "$0" for the inner dialog box is working. Now I only hope it keeps working. Thanks again for all your help...

  8. #8
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with Windows with same caption

    I don't suppose anybody has ever had experience of the same problem, but when all the controls are one nest deeper than in the previous example dealt with - i.e. within the childwin there is only one dialogbox, and within that there is only one dialogbox, and it is only when you get to within this second dialogbox that the controls appear?

    I tried pretty much everything I can think of (including making the tags for these dialogboxes unique in this way); the tags for the dialogboxes look like this:
    [-] DialogBox DialogBox1
    [ ] tag "[DialogBox]$0/[DialogBox]$0/[StaticText]Initial/../.."
    [-] DialogBox DialogBox1
    [ ] tag "[DialogBox]$0/[StaticText]Initial/.."
    [-] StaticText InitialText
    [ ] tag "Initial"

    and this works fine (it seems that you need the double parent-operator in the outermost dialogbox to make it work properly, thus the "/../.."). But when I try to do the same thing to the childwin tag, then it stops working; the tag I am trying is:
    [ ] tag "[ChildWin]*/[DialogBox]$0/[DialogBox]$0/[StaticText]Initial/../../.."

    When it tries to use this, it errors, saying that "Childwin .. was not found". The same thing happens if I add more parent-operators to the tag; if I start removing them then it errors with:
    "*** Error: Window type mismatch - Expecting a top-level window or MDI child window"
    which seems to indicate that the tagline is resolving to point at one of the internal dialogboxes, so that doesn't work at all.

    Is there any way to get this working, or is it just a bug (or limited functionality) that you can't specify a unique great-grandchild in order to uniquely identify a childwin?

 

 

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 09:14 AM.

Copyright BetaSoft Inc.