This document is a single-page version of a a multi-page document, suitable for easy printing.

Icon Editor

The Icon Editor tool allows you to create icons for your application, both file icons used by file manager applications and simple tool monikers which you may use to provide graphic monikers for a geode's UI gadgetry.


Icon Editor: 1 Creating Icons

The icons produced by the icon editor are stored in an "icon database" so that they can be viewed and retrieved easily. The icon database is the Icon Editor's "document", so New/Open, Close, Save As, Make Backup and other Document-control commands will operate on the current database. "Save" actually saves the currently edited icon into the current icon database, and saves the database as well.

There are 3 standard kinds of icons in use in the system. Each standard type of icon has 3 default formats: One for VGA screens, one for MCGA (monochrome VGA) screens, and one for CGA screens.

Most icons are used in one of the following ways:

You may also create custom icons, which start with 1 default format. Custom icons are limited to 1024 pixels wide or tall, and the formats cannot be larger than 64k.

The first time the icon editor is started it will create a blank file icon named "untitled." After that, if there is an icon database available to the icon editor, the icon editor will start with the last icon that was being edited before the editor was shut down.

To create a new icon, choose "Create New Icon" from the Icon menu. The dialog will present 4 options for the type of icon. If you decide to create a custom icon, you should enter the height, width and color scheme for the icon in the provided fields.


Icon Editor: 2 Importing Icons

There are 2 other ways to create icons. You can import a graphic such as a GIF, TIF, BMP or other supported file format for use as an icon, provided that it is less than 64k (which is the limit for GEOS monikers). You do this using the "Import Graphic" dialog in the Icon menu.

The other way to make an icon in the icon database is to import a moniker or moniker group from the token database, which is the cache of file monikers kept by GeoManager. Select "Token Database" from the Icon menu to get a list of monikers that you may import.


Icon Editor: 3 Editing Icons

There are a number of features that are useful when editing icons:


Icon Editor: 4 Writing Source Code

When the icon is finished, make sure it's saved (File->Save), and then choose "Write Source Code" from the Icon Menu. Follow these steps to get source code:

  1. Enter a DOS 8.3 filename for the source file
  2. To write only the current format, leave the "Formats" group at "Current Format"
  3. To write source for all the formats, choose "All Formats"
  4. Select GOC source (assembler is used in-house)

A dialog should appear when the source code has been written, saying "Source Code Written Successfully". If a problem is encountered in creating or writing a file, check the permissions on your document directory, and make sure you have enough disk space for the text file (only a few hundred bytes should be necessary).

The file should appear in your document directory. It's a text file with GOC moniker source code. This source code can be included in your application after you make the following changes:


Icon Editor: 5 Icon Databases

The icon editor can work with more than one icon database at a time via the Multiple Document Interface standard. Each database has its own window, each window having four views. The leftmost view is the database. The top-right view is the "Pixel View", the main editing area. The two remaining views are next to each other in the lower-right portion of the window. The left view is the actual-size view of the icon, and is editable. The right window is the format list, showing all formats of the icon currently being edited.

Double-clicking an icon in the database viewer will select it for editing. The currently-edited icon is important in the following ways:

The database viewer supports all clipboard operations except for Undo. Icons may be selected and moved or copied between databases. This can be done via the Edit menu or quick-transfer.

The format list is used to switch editing to a different format in the same icon. This can only be done with the mouse.

To get more room for editing, use the Options menu to temporarily hide the database viewer or format list while editing.


Icon Editor: 6 Exporting to Database

This is the function that most people associate with an icon editor. The token database is a cache of moniker lists used by GeoManager and other applications. The token database exists so that every time an application's moniker is needed, it is not necessary to start the application in engine mode to request the moniker (a slow process).

The icon editor can change entries in the token database. You cannot change the "built in" moniker for a geode using the icon editor. If you make changes to the token database and then delete the database, then when it gets rebuilt your monikers will no longer be there.

Given that, it's still likely that people will want to set their own monikers in the token database; the icon editor has this ability.

To change an entry:

 

This document is a single-page version of a a multi-page document, suitable for easy printing.