SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Dec 2001
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    How to get property(eg.object name ) of the focused object

    Hi all,
    Is there a function wich can give any Property/Description of the focused object.
    Thanks.
    Ark.


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

  2. #2
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to get property(eg.object name ) of the focused object

    Look into the GUI_...(); functions, or
    the obj_check_gui() or win_check_gui(); functions.



    ------------------
    JP

  3. #3
    Senior Member
    Join Date
    Mar 2002
    Location
    Irvine, CA 92606 USA
    Posts
    384
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to get property(eg.object name ) of the focused object

    See if this helps any.
    You will need to make changes to suit your needs.

    function get_active_object ( inout object1 )
    {
    auto class, text1, text2, text3, rc1;
    rc1 = _set_window ( "{active: 1}", 5 );
    printf ( "rc1 = %s", rc1 );
    if ( obj_exists("{focused: 1}",1) != 0 )
    return(E_NOT_FOUND);
    obj_get_info ( "{focused: 1}", "class", class );
    obj_get_info ( "{focused: 1}", "attached_text", text1 );
    obj_get_info ( "{focused: 1}", "label", text2 );
    obj_get_info ( "{focused: 1}", "value", text3 );
    object1 = "class: " & class & "\r\nname: " & text1 & "\r\nname: "& text2 & "\r\nname: " & text3;
    }

    set_window ( "Find", 5 );
    win_activate ( "Find" );
    win_highlight ( "{active: 1}", 8 );

    static object1 = "";

    rc1 = get_active_object ( object1 );

    printf ( "Object with Focus is:\r\n%s", object1 );

    wait (999);


    ------------------
    cranem451 - cranem@addendum.com

  4. #4
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to get property(eg.object name ) of the focused object

    Another method available is:

    GUI_buf_get_desc();
    which will capture the entire description with one call.

    ------------------
    JP

  5. #5
    Junior Member
    Join Date
    Dec 2001
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to get property(eg.object name ) of the focused object

    Dear JP and cranem451,
    Thank you for your help.
    Unfortunately I still cannot get the property of the focused object. The problem is that I don't know the object name. It is an html_frame of the deals, which everybody can create, thus I don't know their names. So I need to know if the deal/object is focused without knowing the logical name of the object. I am trying to calculate the number of deals and the only way is to identify when the focus gets out of the html_frame.
    Could you help me on this?
    Thanks.
    Ark.


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

  6. #6
    Moderator JakeBrake's Avatar
    Join Date
    Dec 2000
    Location
    St. Louis - Year 2025
    Posts
    15,609
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to get property(eg.object name ) of the focused object

    I think you need to post here the gui descriptions out of the gui map for the table in question. If the name varies according to what you suggested above, post the descriptions for at least two of the instances. You of course, will have to gui learn each instance if not in the gui map.


    ------------------
    JP

  7. #7
    SQA Knight
    Join Date
    Jun 2002
    Location
    Cupertino, CA, USA
    Posts
    2,164
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: How to get property(eg.object name ) of the focused object

    if (win_exists("{MSW_class: html_frame, focused: 1}",1) == E_OK)
    {
    win_get_info("{MSW_class: html_frame, focused: 1}","html_name",name);
    pause(name);
    }

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

 

 

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 10.71%
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 02:43 AM.

Copyright BetaSoft Inc.