place

This property of a Toolbar Button controls its display (visible on the Toolbar or placed in the dropdown list).

You can configure this setting in form's .fm2 XML file or in the Form Builder:

Form XML code:

<ToolbarButton text="Navigation bar" visible="true" identifier="tbb1" place="top">

Theme property filter XML code:

<SetProperty>

  <PropertyPath>

<PropertyName>Place</PropertyName>

  </PropertyPath>

<PropertyValue>top</PropertyValue>

</SetProperty>

Possible values:

Note: The order of the buttons is defined with the order in which they are sent by the server, and the place property affects their visibility in the Toolbar's navigation bar.

Default value:

top

Associated containers, widgets, and theme elements:

ToolbarButton

Associated UI methods:

setPlace()

getPlace()

Influence and behavior:

By default, the amount of buttons displayed in the Toolbar is defined by the available toolbar space and the space each of the buttons occupy, adjusting to the program window size:

If the buttons exceed the available Toolbar space, the More button appears, containing the dropdown menu with the buttons that don't fit:

 

At runtime, you can use ui methods to specify the place of the toolbar button:

LET widget_var = ui.<widget>.ForName("widget_id")

CALL widget_var.setPlace(...)

DISPLAY widget_var.getPlace()

There is a special way to rearrange Toolbar Buttons. With the ClassName tbutton-default-place-popup specified for the application, the default is turned to popup instead of top / auto. All buttons that don’t have the place property set explicitly are placed in the dropdown list.

CALL ui.Application.GetCurrent().setClassNames(["tbutton-default-place-popup"])

 

 

Contact Us

Privacy Policy

Copyright © 2025 Querix, (UK) Ltd.