To do this, create desktop files and save them in the folder /usr/share/applications/.
Start Geany via terminal with sudo
sudo geany
File: /usr/share/applications/purebasic.desktop
Sometimes you need admin rights for certain hardware.[Desktop Entry]
Type=Application
Icon=/home/pi/Apps/purebasic/logo.png
Name=PureBasic v6.00
Comment=Developer Utility
Exec=/home/pi/Apps/purebasic/compilers/purebasic
Path=/home/pi/Apps/purebasic/compilers
StartupNotify=true
Terminal=false
Categories=Development;IDE
File: /usr/share/applications/purebasic-sudo.desktop
Then restart the LXpanel[Desktop Entry]
Type=Application
Icon=/home/pi/Apps/purebasic/logo.png
Name=PureBasic v6.00 (sudo)
Comment=Developer Utility
Exec=sudo /home/pi/Apps/purebasic/compilers/purebasic
Path=/home/pi/Apps/purebasic/compilers
StartupNotify=true
Terminal=false
Categories=Development;IDE
sudo lxpanelctl restart
If you wish, you can use the 'Main Menu Editor' under settings to adjust the order of the entries.