customize:creating_your_own_buttons:editing_the_toolbar:field_buttons

Field buttons are another special type of button. They are used to place field controls (for example, the location fields) on your toolbars. In Customize mode they appear as a simple frame which you can resize by clicking and dragging the border.

The above image shows the search field from the default Menu toolbar and the location field from the default File Display Border toolbar. You can see that the search field has grab handles at the right-hand edge, which let you resize the field. The location field does not, because it is set to Full Width mode, meaning it will expand to fill all available space on the toolbar.

Once we leave Customize mode you can see that the frames revert to fully functional fields:

Note that the compatibility files button disappeared when leaving Customize mode; this is because when the screenshot was taken the Lister was not currently displaying a folder that has compatibility files, and so the button was automatically hidden. You'll find that many buttons on Opus toolbars can change their state (checked or unchecked, enabled or disabled, hidden or shown) dynamically. If we had navigated to C:\Program Files before taking the screenshot the compatibility files button would have been visible.

Field buttons are the only type of button that you can't create manually (by starting with a new button). To add a field button to a toolbar you have to find its entry in the list on the Commands page and drag it to the toolbar. Once it is on the toolbar, however, you can change what type of field it is as well as configure certain properties by right-clicking it when in Customize mode.

The context menu for a field button lets you configure two options that only apply to fields:

  • Full Width: If this option is enabled, the field will use all the available space on the toolbar (that is, any space that's not used by another button). If two or more fields on the same toolbar have this flag set, they will share the available space.
  • Restore Focus: If this option is enabled, pressing the Enter key in the field will return focus automatically to the file display.

The Field Type sub-menu lets you switch between the various types of field:

  • Content Type: If folder content type detection is enabled, displays the current content type format in use. You can also use the drop-down list to instantly switch to one of the defined content type formats.

  • Drives: The Drive List field is drop-down list of your disk drives. Selecting a drive from the list navigates the source file display to that location.

  • Label: A label field has no function other than to display a static label. You can use it to provide a label for other controls or just to display a static text string on a toolbar.

Label fields in drop-down menus are drawn in a bold font and left-aligned to stand out visually from the other items in the menu.

  • Path (Basic): The basic path (location) field is a minimalist text field that displays the current path and lets you type a new path to navigate in the Lister. By default this field controls the current source file display, but you can configure it to specify the display it is linked to.

  • Path (Breadcrumbs): The breadcrumbs path (location) field is a powerful navigation tool that provides instant access to prior locations in the current path. This field has lots of configurable options that can modify its appearance and behaviour.

  • Path (Favorites List): The favorites list path field combines the basic path field with a drop-down menu of your favorite folders, which you can navigate to by selecting them from the drop-down. By default this field controls the current source file display, but you can configure it to specify the display it is linked to.

  • Path (Folder Tree): The folder tree path field combines the basic path field with a drop-down list containing the folder tree hierarchy leading to the current location. This lets you navigate to previous folders in the tree from the drop-down. By default this field controls the current source file display, but you can configure it to specify the display it is linked to.

  • Path (Recent List): The recent list path field combines the basic path field with a drop-down menu of your recently visited folders. By default this field controls the current source file display, but you can configure it to specify the display it is linked to.

  • Search Field: The search field lets you search the current folder using the indexed Windows Search system.

  • Spacer: A spacer field has no function other than to take up room on the toolbar - it's used to right-justify toolbar elements.
  • Thumbnail Size: The thumbnail size field lets you dynamically resize thumbnails in the current folder. It will be hidden when the Lister is not in thumbnail mode.

By default, the slider affects all folder tabs in the window if it's on a normal toolbar, and just the side it's over if it's on a Location Bar toolbar. You can change this by editing the field and adding both, source, dest, left, or right to the Args string. (both differs from the default in that it only affects the visible tabs, not inactive ones.)

By default the slider will set the thumbnail size using the aspect ratio configured in Preferences; however, if you edit the field and add preserve to the Args string, it will preserve the current aspect ratio (this would only be useful if the aspect ratio has been changed manually using the Set THUMBNAILSIZE command). If a side is also specified, put a comma between the two arguments; e.g. left,preserve.

See the Editing The Toolbar section for more information on how to edit toolbar fields.

More:

Path Field Configuration
Breadcrumbs Configuration
Filter Field Configuration
Drive List Configuration