User Tools

Site Tools


tplcontrolframebrowsecontrol.htm
Navigation:  Templates > Guide to all Templates > Control Templates >====== FrameBrowseControl ====== Previous pageReturn to chapter overviewNext page

The FrameBrowseControl places thirteen (13) standard command buttons on the toolbar of an MDI APPLICATION (Frame). When the user presses these buttons, the template generated code posts appropriate events (scroll up, scroll down, add, change, delete, help, etc.) to the active procedure.

TipBox.jpg

You may delete buttons that your application does not use. For example, the standard templates by default do not use the locate button.

The buttons are designed to work with the BrowseBox Control template, the RelationTree Control template, and the FormVCRControls Extension template; that is, the buttons remain disabled until the program calls a procedure with a BrowseBox template or a RelationTree template whose Accept browse control from Toolbar box is checked, or the BrowseBox procedure calls a Form procedure with a FormVCRControls extension template.

In addition, the called procedure's WINDOW must have the MDI attribute–the standard Browse and Form templates declare MDI windows by default–you don't need to do anything special to accomplish this. The BrowseBox and RelationTree templates also checks the Accept browse control from Toolbar box by default–so again, you don't need to do anything special to accomplish this.

The FrameBrowseControl toolbar buttons operate as follows:

C6H0043.jpg Scrolls to the first row in a BrowseBox or to the previous parent record in a RelationTree. For Form procedures, saves the current record before scrolling.
C6H0044.jpg Scrolls up one page in a BrowseBox or to the previous record on the same level in a RelationTree. For Form procedures, saves the current record before scrolling.
C6H0045.jpg Scrolls up one row in the BrowseBox or to the previous record on any level in a RelationTree. For Form procedures, saves the current record before scrolling.
C6H0046.jpg Locates a specific record in a BrowseBox. See Control Templates–BrowseBox for information on specifying these locators.
C6H0047.jpg Scrolls down one row in the BrowseBox or to the next record on any level in a RelationTree, expanding the tree branch if necessary. For Form procedures, saves the current record before scrolling.
C6H0048.jpg Scrolls down one page in the BrowseBox or to the next record on the same level in a RelationTree. For Form procedures, saves the current record before scrolling.
C6H0049.jpg Scrolls to the last row in the BrowseBox or to the next parent record in a RelationTree. For Form procedures, saves the current record before scrolling.
C6H0050.jpg Selects the highlighted row in a BrowseBox.This is only appropriate when the Procedure is called to select a record. For example, when called as a lookup.
C6H0051.jpg For a BrowseBox, calls a Form procedure to add a new record. For a RelationTree, calls a Form procedure to add a child record of the currently highlighted record. For a Form procedure, adds another record of the same type.
C6H0052.jpg Calls a Form procedure to change the record highlighted in the BrowseBox or RelationTree.
C6H0053.jpg Deletes the record highlighted in the BrowseBox or RelationTree. The BrowseBox delete behavior is determined by the settings on the Update Buttons Control template.
C6H0054.jpg On a Form procedure only, pastes into the field with focus, the corresponding value from the previously processed record (the value in the record buffer). In other words, repeat the value from the previous saved record. Also known as the “ditto” button.
C6H0055.jpg Invokes Windows standard help behavior: calls WINHELP.EXE with the help topic or keyword specified by the WINDOW's HLP attribute.

The Properties dialogs for the FrameBrowseControl buttons is the normal Button Properties dialog.

tplcontrolframebrowsecontrol.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1