SPONSORS:






User Tag List

Results 1 to 5 of 5

Thread: TabControl

  1. #1
    Junior Member
    Join Date
    Jul 2001
    Location
    Glasgow, Scotland
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    TabControl

    The core of my app is a Tab Control with 20 + tabs on it. It supports multi-line, so I can't guarantee where a tab will be at any point in time. When I capture the declarations, SilkTest doesn't appear to see the individual tabs, and doesn't have a TabControl type that I can map to. How do I explicitly pick a tab to go to?

    Cheers,

    Sparks.

    ------------------

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

    Re: TabControl

    The TabControl should be represented in silktest by the PageList class; hopefully your window declaration will include one of these. The language reference entry for PageList has a complete explanation of how it's methods work.

    ------------------


    [This message has been edited by vincebowdren (edited 07-03-2001).]

  3. #3
    Senior Member
    Join Date
    Aug 1999
    Location
    San Diego, CA USA
    Posts
    219
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TabControl

    1. What is the development environment for the app? Java, VB, C/C++, PowerBuilder, etc. They are a little different in this regard.
    2. Have you worked with the PageList (not TabControl) class of controls in SilkTest before? Just trying to determine experience level.
    3. How 'bout providing your window dec for us to see.



    ------------------

  4. #4
    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: TabControl

    If you are testing PowerBuilder or Delphi apps, you would need to record the declarations for each Tab and put them all together into one window declaration.

    hope this helps!


    ------------------

  5. #5
    Senior Member
    Join Date
    Jul 2001
    Location
    Brookline,NH USA
    Posts
    147
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: TabControl

    I had the same problem, but I have only 10 tabs in my app.

    Anyway, I tried mapping it to the OLESSTab to no avail, tried mapping it to the PageList control to no avail and decided that I needed to write a custom method.

    This wasn't hard. I re-mapped my tabControl again as the OLESSTab and was about to write a complicated method that would explicitly check to see which controls were visible after sequentially proceeding through each tab. Then I realized that the tabs in my app have shortcut keys! The 'Select' method looks something like this:

    winclass YourTab : OLESSTab
    ...tag "[YourTabClass]"

    ...Select (String strTab)

    ...derived::SetFocus ()

    ...switch strTab

    ......case "Tab1Caption"
    .........MainWin.YourTab.TypeKeys ("<Alt-u>")
    ......case "Tab2Caption"
    .........MainWin.YourTab.TypeKeys ("<Alt-v>")

    Where you would include other derived methods as necessary (I doubt you will need any others), correct for your own variable names and declaration structure, and insert the applicable shortcut keys.

    Be sure to let us know if this helps.

    ~ Fred

    ------------------

    Edited to include preceding dots to show outline structure...


    [This message has been edited by RagerXS (edited 07-18-2001).]

 

 

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 02:23 PM.

Copyright BetaSoft Inc.