Adding Button Widgets
- Last UpdatedJun 30, 2020
- 2 minute read
Add buttons to allow setting the local/remote status of MTL1_REMOTE by following the instructions below.
-
Expand the Widgets library and select Button.

-
Add a button to Tank Level Control.
-
Right-click near the button to bring up the context menu, and then choose Draw Attributes.
-
Enter MTL1_REMOTE in the Point Name field and enter 1 in the Point Value field. Now pressing the button sets MTL1_REMOTE to 1.
-
Enter REMOTE in the Button Label field.
-
Click OK.

-
Select Button in the Widgets library.
-
In the Tank Level Control window, click anywhere to the right of the REMOTE button to add a button.
-
Right-click near the button to bring up the context menu. Select Draw Attributes.
-
Enter MTL1_REMOTE in the Point Name field and enter 0 in the Point Value field. Now pressing the button sets MTL1_REMOTE to 0.
-
Enter LOCAL in the Button Label field.
-
Click OK.

-
In the Tank Level Control window toolbar, click the Lasso Select icon (
).
-
Draw a box around both the REMOTE and LOCAL buttons. Both buttons should be selected.
-
On the main window, click the Draw menu, select Align and then Align Vertical Middle or click the appropriate toolbar icon (
). Notice that the buttons are now aligned vertically.