SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Aug 2001
    Location
    california
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Selecting Popup menu item using index

    Here's my question, i have a popupmenu whose items are not recognized by SilkTest. now, what i intend to do is select the item using an index but i just don't know how and where to start?

    any input is very much appreciated. thanks is advance!

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

  2. #2
    Member
    Join Date
    May 2001
    Posts
    56
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Selecting Popup menu item using index

    Frist item should be "#1". Second item should be "#2" etc....

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

  3. #3
    Junior Member
    Join Date
    Aug 2001
    Location
    california
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Selecting Popup menu item using index

    that i understand but the part that i don't know how to do is whether i declare each menu items in my windows declaration, which methods could i use to select an object using indexing.

    i know popupmenuselect doesn't allow index but instead a string.

    [ ] //RightClickMenu class definition
    [-] winclass RightClickMenu : PopupMenu
    [-] POINT Point
    [ ] tag "$PopupMenu/({Point.x}, {Point.y})"
    [-] MenuItem Add [ ] tag "#1"
    [-] MenuItem Delete
    [ ] tag "#2"
    [-] MenuItem Help [ ] tag "#3"

    Above is actually what i attempted to do but from here don't know where to go.

    thanks!

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


    [This message has been edited by beya (edited 08-02-2001).]

  4. #4
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Selecting Popup menu item using index

    When I define objects that SilkTest can't see I use the Control object. This is a clickable object.

    Mike

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

  5. #5
    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: Selecting Popup menu item using index

    Beya,

    There are a couple of ways you could do this.

    PopUpMenus also support GetItemCount, so you know how many items are in your menu. You can do something like:


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

 

 

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 AM.

Copyright BetaSoft Inc.