Results 1 to 2 of 2
  1. #1

    Toolbar item count

    how can i know how much items i have on the toolbar?
    or if toolbsr item is exist?

  2. #2

    Re: Toolbar item count


    The number of items on a toolbar is kept in the Win32ToolBar.wButtonCount property. To check whether an item exists on a toolbar, please use the Win32ToolBar.wButtonID property. For example:

    <font class="small">Code:</font><hr /><pre>
    // JScript
    var toolbar = // Obtain the toolbar object
    if(toolbar.wButtonID("ItemName") &lt; 0)
    Log.Message("The \"ItemName\" item does not exist on the toolbar");
    </pre><hr />

    For more information on these properties, please refer to the "Win32ToolBar.wButtonCount" and "Win32ToolBar.wButtonID" help topics.

    Please note that this script will not work for you if your toolbar is not a standard Win32 toolbar. If this is the case, please let me know what toolbar control is used in the tested application (name, version).
    Best regards,
    David - SmartBear Support



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
BetaSoft Inc.
All times are GMT -8. The time now is 04:13 PM.

Copyright BetaSoft Inc.