New Main Toolbar
Main Toolbar
The toolbars in Layout Developer have remained unchanged for years. This release provides a new main toolbar which provides icons for many common tasks when developing templates.
The actions associated with the icons are, in order from left to right:
• New — open a .3f template file
• Open — open a .3d file
• Save — save the current file
• Print — open the print dialog
• Undo — undo the last change
• Redo — redo the last undone change
• Reformat — reformat the whole document
• Refresh — refresh the current page
• Browse — open the ‘browse tags’ dialog
• New tag — open the ‘new tag’ dialog to create a new tag
• Open tag — open the tag edit dialog
• Debugger — launch the external debugger via socket 9002 and redirect application alerts to the debugger
• Run — run the current tag open in the yellow bar (if the tag is a runnable script type)
• Frame guides — toggle the frame guides in the WYSIWYG view
• Table guides — toggle the table guides in the WYSIWYG view
• Block guides — toggle the block guides in the WYSIWYG view
• Grid — toggle the grid in the WYSIWYG view
• Rulers — toggle the horizontal and vertical rulers
• Left bar — toggle the left (blue) bar
• Yellow bar — toggle the yellow bar
• New frame — create a new frame on the currently selected layer
• Import — open the import content dialog
• Zoom — activate the zoom marquee
• Fit page — fit the current page in the view available
• Config — open the Document Configuration (Document Preferences) dialog
• Document mode — switch to document mode
• Page mode — switch to page mode
• Text mode — switch to text mode
• Graphics mode — switch to graphics mode
JavaScript Toolbar
The JavaScript toolbar is now present by default. Alongside the JavaScript error window are four icons:
The icons on this toolbar activate the following actions (reading from left to right):
• Record — start recording JavaScript errors
• Open — open the stream containing the recorded JavaScript errors
• Go to — go to the line in the tag where the last error was raised (see new ttop macro extensions)
• Clear — clear the stream containing the recorded JavaScript errors
PNG Icons
In order to provide the new toolbars, Layout Developer toolbars can now use PNG icons. When defining icon definitions in external files, use the following syntax:
icondef "NEW_trfwdr_icon",0
24 24 0 15
{#TestMenus}icons\icons8-record-16-small.png
• Line 1 is the standard icon definition giving it a name..
• Line 2 specifies the size and type — in this case 24 pixels by 24 pixels
• Line 3 specifies the location path of the PNG to use
If a grey test is applied to the action, the PNG is given a colour mask by Layout Developer. The colour definition for this mask is provided by colour 218 specified in the scol256c.3ad file. Additionally, the mouseover colour is also defined in this file as colour 217 to give the icon a highlight when the user’s mouse goes over the icon in the toolbar. The mouseover colour only applies when the raised border thickness is set to 0.
Using the Old Toolbars
Of course, old toolbars and icons are still available and can be used, especially if a fully customised environment is used. Should you wish to bring back the pre-version 12.0.0.0 default toolbars and icons, use the tprefl =11 macro (tprefl=12 will bring back the version 12 toolbars and menus) or select the option in the Application Preferences dialog.