Image button This button works like a normal pnFormButton with the exception that it displays a clickable image instead of a text button. It further more returns the X and Y coordinate of the click position in the image.
Buttons can be used to fire command events in your form event handler. When the user activates a button the command name and command argument will be sent to the form event handlers handleCommand function. Example:
The command arguments ($args) passed to the handler contains 'commandName' and 'commandArgument' with the values you passed to the button in the template.
If you set a confirmation message then a ok/cancel dialog box pops and asks the user to confirm the button click - very usefull for buttons that deletes items. You can use _XXX language defines directly as the message, no need to call <!--[pnml]--> for translation.