How to Get Rid of a Button in a Control Application

Working with a control application I realised that I had defined a button more than I required and now I would like to get it out of the form, but I cannot see how it is done.

Under Control–Toolbar there are options to change the position of the buttons for the top and bottom toolbar and it seems that one should be able to remove buttons by moving them from the list in the right side to the left side, but it doesn’t seem to work.

My first instinct, however, was to go to Control–Buttons and select my button. Then I can specify the trigger code and some options for the button itself. But I cannot see any “Delete” function, which I would have expected.

As is typically the case, I (partly) found an answer just after posting. I can see how the button at least can be taken out of the toolbar now with the buttons in the middle between the list boxes.

However, I still don’t see how to delete the button altogether, although that is not as critical now.

If you have created a button using ‘add button’ then there’s a bin icon behind the button under the button menu. Click on it and you can delete the button.

Ahh… I knew that the outcome of my post would be either that I had stumbled upon some obscure bug, or I that would feel somewhat stupid – it turned out to be the latter :-).

After trying a lot I went to applcation_api.php and converted $this->nmgp_botoes[‘cancel’] = “on”; to $this->nmgp_botoes[‘cancel’] = “off”; and $this->nmgp_botoes[‘exit’] = “off”;