TB API

TB API

Release Date: 11/25/2020
Versions: 8.5 and Higher

Toolbar Functionality

This API affects the appearance and functionality of the Amigos buttons (Notes, Attributes, Contacts, Links, Events, General Events) and Special Functions button on the Elliott legacy screen toolbar:


Following are the details of this API:
  • TB,00:  Clear the Amigo key information.  Reset the state (hot = red) of the Amigo bitmaps.
  • TB,01Set the Amigo key information from PASSING-NOTE-FILE-NAME and PASSING-NOTE-FILE-REF-NUMBER.  Set the state of all Amigos buttons if the associated records exist.
  • TB,10:  Clear any special function information for the program in TB-SF-PROGRAM-ID.
  • TB,11,x:   Add a special function.  It stays available until it is removed. TB-SF-Program_ID contains the program to call; TB-SF-Menu-Text contains the menu text; x contains the hot-key letter; TB-SF-Passing-Parameters contains any passing parameters; Screen-SF-DD-Parameters, if it starts with "DD," contains any DD parameters.
  • TB,20,nn:  Disable a specific toolbar button
  •                   nn:  01 = Note, 02 = Attribute, 03 = Contact, 04=Event, 05 = Link01
  • TB,21,nn:   Enable a specific Amigo Toolbar button and, optionally, specify a PASSING-NOTE-FILE-NAME and PASSING-NOTE-FILE-REF-NUMBER.
  • TB,31,01: Allow changing notes by calling the Notes program, using PASSING-NOTE-FILE-NAME, PASSING-NOTE-FILE-REF-NUMBER. Show the Note window even if there are no matched notes.
  • TB,31,01,10,tttttt:  Call the Notes program, using PASSING-NOTE-FILE-NAME, PASSING-NOTE-FILE-REF-NUMBER and, optionally, a specific NoteType (tttttt). Show the Note window only if there is at least one matched note.
  • TB,31,01,11,tttttt: Same as TB,31,01,10,tttttt except that any notes will be presented as ReadOnly, with no ability to add, modify or delete any note. Show the Note window only if there is at least one matched note.
  • TB,31.02:  Call the Attribute program, using PASSING-NOTE-FILE-NAME, PASSING-NOTE-FILE-REF-NUMBER.
  • TB,31,03:  Call the eContacts program using PASSING-NOTE-FILE-NAME, PASSING-NOTE-FILE-REF-NUMBER.
  • TB,31,04:  Call the Events program using PASSING-NOTE-FILE-NAME, PASSING-NOTE-FILE-REF-NUMBER.
  • TB,31,05:  Call the Links program using PASSING-NOTE-FILE-NAME, PASSING-NOTE-FILE-REF-NUMBER.
  • TB,98:   Delete all associated Amigo records for the current Amigo. 
  • TB,99:   Delete all associated Amigo records for the Amigo specified in PASSING-NOTE-FILE-NAME and PASSING-NOTE-FILE-REF-NUMBER.
JEG


    • Related Articles

    • Programming API Codes

      This document is provided for Elliott software developers. If you are not an Elliott software developer, this document is not meaningful for you. AP: Get SMA Values This API returns various values from the Shared Memory Area. For example: Move ‘AP’ ...
    • VA API Changes (V9.0)

      VA: Verify Access Elliott V9.0 supports a series of 999 security flags to control access by users to specific features in the software. At runtime, the VA,nnn API is sent (where nnn is a number identifying the security flag) and either “Y” or “N” is ...
    • LK: Links API

      LK: Links Modified: 5/12/2019 Default links are established by the TB calls. The LK APIs provide additional links functionality. LK,00 Launch the Link whose type is in SCREEN-ALPHA-FIELD. LK,01 Add a temporary link. SCREEN-ALPHA-FIELD contains the ...
    • GK API

      Release Date: 07/08/2021 Revised Date: 05/05/2022 This API allows the programmer to determine whether or not certain keystrokes have been pressed. Screen-Parameters: GK,nn nn provides different functionality as follows: GK Wait for the next keystroke ...
    • FF API: File Functions

      Date Revised: 9/12/23 FF: File Function This API has several options that help perform operations for file names; in particular, on long file names (length greater than 100 characters and/or containing one of more embedded SPACEs). Notes: This API ...