Custom button examples for TOP toolbar

PlanetCNC TNG software offers option of creating and adding custom buttons to software toolbars.

Buttons can be added to top, bottom, left sided and right sided toolbars.

Custom buttons can execute any feature from File, View, Program, Machine and Help menu.

For this tutorial we will create and add buttons to top toolbar of PlanetCNC TNG software for features: Settings (File/Settings) and Log dialogue (Help/Log)

 

Step 1.:

Create new text file and name it: PlanetCNC64.btntop

File should be located in PlanetCNC TNG install root folder.

Modifying this file, you create custom buttons located at top toolbar.

Please note: “PlanetCNC64” is name of settings used, if your settings are named differently then this file should have different name.

 

Step 2.:

Open file PlanetCNC64.btntop with your text editor.

Step 2.1.:

To create button for “Settings” insert this line:

File.Settings_… SET

Open File menu and locate Settings feature:

If you look closely at the text of inserted line you can see that it is actually path to location of this feature, with difference that level is replaced with “.” and spaces are replaced with “_”.

To name the newly created custom button, you add desired text at the end of the line(SET). Make sure that one space is added  before you type the name of the button.

 

Step 2.2.:

To create button for “Show Log” insert this line:

Help.Show_Log_… LOG

Open Help menu and locate Show Log feature:

If you look closely at the text of inserted line you can see that it is actually path to location of this feature, with difference that symbol level is replaced with “.” and spaces are replaced with “_”.

To name the newly created custom button, you add desired text at the end of the line(LOG). Make sure that one space is added  before you type the name of the button.

Step3:
Buttons will appear on top tool bar after you restart PlanetCNC TNG software:

 

To create a divider line between the buttons you just add three hyphen ( – – – ) between the text lines:

File.Settings_… SET
– – –
Help.Show_Log_… LOG

 

To add buttons on left, right, top and bottom toolbars create these files and use same procedure as above:

PlanetCNC64.btnbottom: With this file you create custom buttons located at bottom toolbar

PlanetCNC64.btnleft: With this file you create custom buttons located at left sided toolbar

PlanetCNC64.btnright: With this file you create custom buttons located at right sided toolbar

Attached are files for custom buttons for top and left toolbars:
Custom button examples for TOP toolbar
Custom button examples for LEFT toolbar