Resource Editor


The resource editor is Winteracter's core GUI design tool, combining menu, dialog, toolbar and image editors in a single easy-to-use program.

The resource editor saves user interface definitons as a resource script. The resulting file is incorporated into Winteracter based applications, via the resource compiler and linker. Importantly, the resource script can be reloaded into the editor, allowing your user interface to be edited and maintained by this tool throughout the life of your application.

A Fortran source file is also saved by the resource editor. This contains PARAMETER statements defining identifiers for each item in the resource file. This file is USE'd or INCLUDE'd by a Winteracter program to enable it to refer to items in the resource using meaningful names.

The resource editor can optionally generate Fortran source code to perform message processing or dialog data assignment/retrieval. Both options are sensitive to the identifiers assigned in the resource and provide full control over the message types or dialog fields to be processed.

Resources window

The entire contents of your program's resource are accessible via a simple treeview window:

A Resource Shortcuts menu (shown above) provides access to various common resource editor options, via a right-click or single button press.

Menu editor

The menu editor allows menus to be created in the conventional horizontal+pop-up format or as vertical floating menus. Each menu is edited via a WYSIWYG mimic of the runtime menu:

The initial state of each option (enabled/disabled, checked/unchecked) can be specified. Keyboard shortcuts for menu options can be specified without requiring any additional code.

Dialog editor

Dialogs are visually laid out and maintained using the dialog editor:

Various field types and controls are supported including:

  • String fields (single line and multi-line)
  • Menus (list-boxes and combo-boxes)
  • Push buttons
  • Bitmaps
  • Checkboxes
  • Progress bars
  • Group boxes
  • Radio buttons
  • Trackbars
  • Treeviews, with optional check-boxes
  • Numeric fields (integer, real and double precision)
  • Spinners on numeric fields
  • Independent foreground/background colours for each field
  • Tab controls (to create multi-part tabbed dialogs)
  • Grid controls (see below)

Grids are a particularly powerful spreadsheet-like field type. These are invaluable when entering array based data. Grid controls designed in the resource editor can be used both in dialogs and resizable dedicated 'grid windows'. Grid controls incorporate row/column cut+paste features, allowing easy data transfer to/from 3rd party applications such as Excel or Word. Supported grid column types are:

  • String
  • Numeric (integer, real or double precision)
  • Menu (combo box)
  • Push button
  • Checkbox
  • Radio button

A set of alignment tools help to simplify dialog layout. A 'clone' option allows quick replication of multiple copies of a single field.

A 'test drive' option is also provided allowing developers to quickly try out their dialogs without having to recompile/relink their application.

Toolbar editor

Each toolbar is edited via a WYSIWYG mimic of the runtime toolbar:

Toolbars can be created from the supplied bitmap buttons or from customised buttons created using the built-in image editor (see below).

Where a toolbar is used to provide shortcuts to options in a conventional menu, such a toolbar can be added to your program with only a single line of code. Your existing menu handling code will then automatically process toolbar selections too.

Tooltips (or bubble help) can also be specified for each button. Adding these tooltips requires no extra coding.

A selection of stock toolbar button images are supplied, in 16x16, 24x24 and 32x32 pixel resolutions. Alternatively, new toolbar button images can be created using the built-in image editor (see below) or 3rd party tools.

Image editor

The resource editor includes a built-in image editor which can be used to create icons, button bitmaps and cursors.

Colour images with 16, 256 or 16 million colours can be created at any size between 8x8 and 128x128 pixels. Supports icons with binary or 8-bit (RGBA) transparency. Pixel, line, rectangle, ellipse, text and flood fill drawing tools. Rotate, mirror/flip and resize (shrink/stretch) image manipulation. Cut, copy and paste facilities. Multi-level undo and full colour control also provided.

A selection of stock icons are also supplied, in both ICO and PNG formats, at 32x32, 64x64 and 128x128 resolutions. As for the stock toolbar buttons, these identify a variety of common actions. Several stock cursor images are also included.


Click here to return to Visual Tools page.