Introduction to Toolbars

Author: Morgan

Sep. 30, 2024

26

0

0

Introduction to Toolbars

DockedCells->

cells

If you are looking for more details, kindly visit HUAYONGXIN.

notebook option that gives a list of cells that are displayed as "docked" at the top of the notebook

Understanding toolbars - 4Js

This is an introduction to toolbars definition.

A toolbar defines action views presented as a set of buttons that can trigger events in an interactive instruction.

Figure:

Toolbar rendering on desktop

This section describes how to define toolbars with XML in files or in programs as global/default toolbars; it is also possible to define toolbars in forms with the TOOLBAR section, as form-specific toolbars.

Toolbar files can be loaded by a program with the methods ui.Interface.loadToolBar() (for global/default toolbars) or ui.Form.loadToolBar() (to load form-specific toolbars).

The global/default toolbar is displayed in all windows, while form-specific toolbar is displayed in the form where it is defined.

If you are looking for more details, kindly visit PC Bar.

The position and overall rendering of toolbar can be defined with presentation style attributes of Window elements, such as toolBarPosition. Typical "modal windows" (windowType="modal") do not display toolbars. See FGLDIR/lib/default.4st, where toolBarPosition is set to "none" for that kind of windows. Toolbar position can also be specified individually with the position style attribute for ToolBar elements.

The toolbar items (or buttons) are enabled/disabled based on the ON ACTION handlers defined by the current interactive instruction. A toolbar item is bound to an action handler by name. A click on the toolbar button will execute the user code in the action handler.

Toolbar items can be automatically hidden when inactive, if the AUTOHIDE attribute is specified for the item.

Toolbar elements can get a style attribute in order to use a specific rendering/decoration following presentation style definitions. Specific decoration can be achieved with the aspect and size toolbar-specific style attributes. For more details, see toolbar style attributes.

The DOM tag names are case sensitive; Toolbar is different from ToolBar.

When binding to an action, make sure that you are using the right value in the name attribute. As ON ACTION and COMMAND generate lowercase identifiers, it is recommended to use lowercase names.

It is recommended that you define the decoration of toolbar items for common actions with action defaults.

Toolbars can get automatic options with the AUTOITEMS element, to show action views for all default action views, running applications list and open window list. For more details, see Automatic action views.

Contact us to discuss your requirements of PC Strand Bonded. Our experienced sales team can help you identify the options that best suit your needs.

Comments

Please Join Us to post.

0

0/2000

Guest Posts

If you are interested in sending in a Guest Blogger Submission,welcome to write for us.

Your Name: (required)

Your Email: (required)

Subject:

Your Message: (required)

0/2000