Initially, the menu is consistent with the State of the toolbar, but when a property is dynamically changed in the program, the toolbar does not change accordingly, so you must write the code to complete the synchronization.
Complete the synchronization by calling the following function:
App_standard. SYNCHRONIZE
It is important to note that when the following trigger are triggered, synchronization is done automatically, without manual completion.
When–new–record–instance
When–new–block–instance
When–new–item–instance
During the development of the form, we set the modifiable, removable properties of the block in the code, but the toolbars on the menu bar do not respond immediately.
For example: In When-new-record-instance, we set the block's Delete_allowed property value to Property_true. However, the Delete button on the toolbar in the menu bar is not available. If this happens, we only need to follow the code that sets the properties of the block, plus a snippet of code that solves the problem:
App_synch.menu_toolbar_sync (event);
The value of the event is: When-new-record-instance, When-new-block-instance, When-new-item-instance.
The synchronization App_standard of the menu and the toolbar. SYNCHRONIZE