Introduction

Introduction to ResEd

Features.

The resource editor handles the following resource types:

● Dialogs with more than 30 windows controls + custom controls.

● Menus.

● String tables.

● Accelerator tables.

● Version info.

● Language setting.

● Resources like bitmaps, icons, manifest and several others.

● Unlimitted Undo / Redo on dialog editor.

● Several pre defined name export formats.

● User defined name export format.

● Can read and write unicode files.

This helpfile is intended for experiencd programmers familiar with windows resources.

NOTE!
The help file is a work in progress and is in no ways complete.


ResEd File Menu

File Menu

● New Project.

Create a new project.

● Open Project.

Open existing progect.

● Open Project As Text.

Open existing project in text edit mode.

● Close Project.

Close current open project.

● Save Project.

Saves the current open project.

● Save Project As.

Saves the current open project with a new filename.
The Unicode checkbox lets you save a file in unicode format.
It can be used to convert a file to or from unicode

● Exit.

Exits ResEd.

● Mru Projects.

Lists the most recent used projects.


ResEd Edit Menu

Edit Menu

● Undo.

Undo last change.

● Redo.

Redo last change.

● Cut.

Copies the control(s) to the clipboard and deletes the control(s).

● Copy.

Copies the control(s) to the clipboard.

● Paste.

Paste the control(s) on the clipboard to the current dialog.

● Delete.

Deletes selected control(s).

● Find.

Text mode only. Shows the find dialog.

● Replace.

Text mode only. Shows the replace dialog.


ResEd Format Menu

Format Menu

● Lock Controls.

Locks / Unlocks controls on the dialog.

● Send to Back.

Sends current selected control to the back.

● Bring to Front.

Brings the current selected control to front.

● Show Grid.

Shows / Hides the dialog grid.

● Snap to Grid.

Snaps controls to the grid.

● Align Controls.

Left, Center, Right. Horizontal alignment.
Top, Middle, Bottom. Vertical alignment.

● Same Size.

Width. The width of all selected controls will be the same.
Height. The height of all selected controls will be the same.
Both. The width and height of all selected controls will be the same.

● Center in Dialog.

Horizontal. All selected controls will be centered horizontally.
Vertical. All selected controls will be centered vertically.

● Set tabindex.

Lets you set the tabindex for the controls om the dialog.
Use Ctrl+Left click to start at an offset.

● Auto renumber ID's.

Renumbers ID's for selected controls.


ResEd View Menu

View Menu

● Output.

Shows / Hides output window.

● Preview Dialog.

Shows a preview of the current dialog.

● Text mode.

Lets you edit the dialog in text mode.


ResEd Project Menu

Project Menu

● Add Dialog.

Adds a new dialog to your project.

● Add Menu.

Adds a new menu to your project.

● Add Acceleratot.

Adds a new accelerator table to your project.

● Add Versioninfo.

Adds a new versioninfo to your project.

● Add Stringtable.

Adds a new string table to your project.

● Add XP Manifest.

Adds a new manifest to your project.

● Add RCData.

Adds a new rcdata to your project.

● Add Toolbar.

Adds a new toolbar to your project.

● Language.

Set the language for your project.

● Include files.

Add / remove included files.

● Resource files.

Add / remove resource files.

● Names.

Shows a list of names used in your project.

● Export Names.

Export names to file / output.

● Remove from Project.

Removes selected project item from your project.

● Undo Remove.

Undo last remove.

● Save as RadASM dlg file.

Saves current dialog as a dlg file.


ResEd Option Menu

Option Menu

● Tools menu.

Lets you add / remove items from the tools menu.

● Help menu.

Lets you add / remove items from the help menu.

● Options.

Lets you set various ResEd options.


ResEd Tools Menu

Tools Menu

● Compile.

Compiles your project.

● Clear MRU projects.

Clears the MRU list on the File menu.

● Optional entries.

Use Option / Tools Menu to add / remove menu items.


ResEd Help Menu

Help Menu

● About.

Shows the About dialog.

● Optional entries.

Use Option / Help Menu to add / remove menu items.


Dialog Editor

● Adding a control to the dialog.

Select a control from the toolbox to the left. Then left click on the dialog where you want your control. You can also hold the mouse button and draw it to the size you want.
NOTE!
If you hold the Ctrl key while selecting from the toolbox, the selected button will stay down. This can save time when you want several controls of the same type.

● Selecting controls.

Select a control by left clicking on the control. If you hold the Ctrl key you can select more than one control. You can also hold Shift and left click on the dialog. Hold the mouse button and draw a rectangle. All controls in the rectangle will be selected when you release the button.
You can also use Tab or Arrow keys to select a control.

● Sizeing controls.

Select a control and move the mouse to one of the six sizing rectangles. Left click and drag to the size you want.
You can also hold the Shift key and use Arrow keys to size the control. This also works on a multiselection.

● Moving controls.

Select a control by left clicking on the control. Hold the button and drag the control to where you want.
You can also hold the Ctrl key and use Arrow keys to move the control. This also works on a multiselection.

Control properties

Here you can change the looks and behaviour of your control.
Each control type has different properties.

When the properties list has the focus you can use the keyboard to navigate.
Arrow keys moves the selection up or down.
Typing the first letters of a property selects the property item.
Enter enters the edit box or selects the next item in the list of possible values.


Style manager

To show this dialog click on the button in property xStyle or xExStyle.
Here you can change the control style or extended style.
Each control class has a different style set.
The WS and WS_EX styles are common for all controls.

NOTE!
With the style manager it is possible to turn a button into a checkbox or any other control with the same class.
Don't do that as it is only a source for human confusion.


Menu Editor

● Caption.

The text entered will be shown on the menu.
A - (minus) as caption will create a separator.
Preceed the character you want as shortcut with an &
Example: &Copy

● Accelerator.

Press the key(s) you want as the accelerator.
NOTE!
Some keys can not be entered using the hotkey control. In those cases use the caption preceeding the key with \t.
Example caption: Delete\tDel

● Name.

The name you want for the menuitem.
Example: IDM_FILE_OPEN
NOTE!
Only MENUEX resources can have a name / ID on menu bar, popup and separator items.

● ItemID.

The ID for the menu item.
NOTE!
The ID can not be greater than 32767.

● HelpID.

The help ID.
NOTE!
Only MENUEX resources can have a help ID.

● Checked.

The menu item will be checked.

● Grayed.

The menu item will be grayed (disabled).

● Right alling.

The menu item will be right alligned.

● Radio.

The menu item will have a radio button.

● Ownerdraw.

The menu item will be owner drawn.

● Arrow buttons.

Left: Outdent. Right: Indent. Up: Move item up. Down: Move item down.

Menu properties

● (ID).

The ID of the menu.

● (Name).

The name of the menu.

● (StartID).

The start ID of menu items.

● Language.

The language setting for the menu.

● MenuEx.

If True the menu will be a MENUEX resource.


Accelerator Table Editor

● Add button.

Adds a new line.

● Delete button.

Deletes the selected line.

● Name.

The accelerators name.

● ID.

The accelerators ID.
NOTE!
If the name is defined elswhere the ID can be 0.

● Key.

The accelerator key.
NOTE!
If .Ascii is selected then the Ascii cell contains the ascii character.

● Ascii.

If the Key cell is .Ascii then this cell contains the ascii character.

● Ctrl.

Checked if control key should be down.

● Shift.

Checked if shift key should be down.

● Alt.

Checked if alt key should be down.

Accelerator table properties

● (ID).

The accelerator tables ID.

● (Name).

The accelerator tables name.

● Language.

The accelerator tables language.


Version Info Editor

● File Ver:

Example: 1.0.1.4

● Product Ver:

Example: 1.0.1.4

● OS:

Select operating system from the combobox.

● File Type:

Select file type from the combobox.

● Language:

Select language from the combobox.

● Char Set:

Select character set from the combobox.

● Properties list.

Select the propety item to be edited from the list.

● Properties text.

Edit the text for the selected property item.

● Adding a new property.

Type the property name and push Add button.
The new item will be added to the properties list.


Accelerator table editor

String Table Editor

● Add button.

Adds a new line.

● Delete button.

Deletes the selected line.

● Name.

The strings name.

● ID.

The strings ID.
NOTE!
If the name is defined elswhere the ID can be 0.

● String.

The string text.

String table properties

● Language.

The string tables language.


Accelerator table editor

Manifest Editor

● Text editor.

Manifest properties

● (ID).

The manifests ID.

● (Name).

The manifests name.

● File.

The manifests filename.


RCData Editor

● Text editor.

RCData properties

● (ID).

The RCData ID.

● (Name).

The RCData name.

● Language.

The RCData language.


Toolbar Editor

● Text editor.

Toolbar properties

● (ID).

The toolbar ID.

● (Name).

The toolbar name.

● Height.

The button height.

● Width.

The button width.


Language Editor

● Language.

Select language from the combobox.

● Sub Language.

Select sub language from the combobox.


Include editor

Include Files

● Add button.

Adds a new include file.

● Delete button.

Removes selected include file.

● Browse button.

Browse for include file.


Resource editor

Resource Files

● Add button.

Adds a new resource file.

● Delete button.

Removes selected resource file.

● Preview button.

Preview selected resource file.

● Edit button.

Edit selected resource file.

● Type.

Select resource type from the combobox.

● Name.

The name of the resource.

● ID.

The ID of the resource.

● Filename.

The filename of the resource.

● Browse button.

Browse for resource file.


Name Editor

● Add define button.

Adds a new name.

● Delete button.

Removes selected name.

● Export button.

Exports names.


Tools Menu

● Menu item.

The text shown on the menu.

● Command.

The tool file (.exe, .bat).
If path is \\ the application path is used.
A $ as parameter will use the current open project (without extension) as parameter.
Example: notepad.exe $.rc
This will open the current project in notepad.


Help Menu

● Menu item.

The text shown on the menu.

● Command.

The help file (.chm).
If path is \\ the application path is assumed.


Options

Export options.

● Name Export Format.

Assembly equ's: IDC_BUTTONADD equ 1001
C defines: #define IDC_BUTTONADD 1001
hla: IDC_BUTTONADD := 1001;
PureBasic: #IDC_BUTTONADD = 1001
PowerBasic: %IDC_BUTTONADD = 1001
User Defined: %name and %id will be replaced by the actual values.

● Name Export Output.

File: The names are written to file.
Clip Board: The names are pasted to clipboard.
Output: The names are sendt to output window.

● Default Export Filename.

Name of file if File is selected.

● Auto export when saved.

If checked the export will be done when the project is saved.


Options

Custom controls.

● Custom control column.

This field contains the filename of a RadASM compatible custom control or a quoted string.
Format RadASM control: filename.dll
Example1: RAEdit.dll
RadASM compatible code edit control.
Format quoted string: "[dll],class,name,[caption],tooltip,width,height,style,exstyle"
Example2: "Riched32.dll,richedit,IDC_RED,Text,RichEdit,100,100,503110C4,00000200"
Old rich edit control.
Example3: ",static,IDC_LINE,,Horizontal line,100,2,50000110,00000000"
Horizontal line.

● Style mask column.

This field contains the style mask. There can be max 3 masks.
Format: Mask1[,Mask2[,Mask3]]
Example: WS_,SS_


Options

Behaviour.

● Grid X-Size, Grid Y-Size

Sets the size of the grid.

● Grid color, Back color, Text color

Click on the color box to change.

● Show Grid

The grid will be visible.

● Snap To Grid

While designing, controls will move and size according to grid.

● Show Size/Pos

A tooltip will show size or position.

● Grid as lines

The grid will be shown as lines.

● Styles as hex

Control styles will be saved as hex values.

● Size Dialog to Font

The dialog will be resized if a bigger or smaller font is selected.

● Font button

Selects a font for text editing.

● #defines

● Included in project file.
Control names and ID's will be included in project file.
● In [PROJECT].h file.
Control names and ID's will be saved to a separate [PROJECT].h file.
● Browse for defines file.
Control names and ID's will be saved to a separate .h file of your chice.

● Simple Properties

Only common properties will be shown.
Common properties are HelpID, ID, Name, Caption, Enabled, Height, Left,
Tabindex, Tabstop, Top, Visible, Width, xExStyle and xStyle

● Define IDC_STATIC

IDC_STATIC will be defined.

● Standard menu

The IDE will use a standard windows menu.

● Borland compatible

The project will be saved in a Borland compatible format.


Options

Resource ID's.

Here you can set the start and increment values for some resources.


Options

Custom styles.

Here you can add control styles that ResEd normally does not support.
The Value and Mask must be entered as hex values.
Normally the Mask is the same as the Value, but if the style is part of a group the group value should be entered.


Options

Paths.

● Default project path.

Here you can enter a default project path.

● System include.

Here you can enter a path for system includes.
When adding an include file, and the path matches, the file will be braced instead of quoted.
Example: #include <windows.h>

● Compile command.

Here you can enter a compile command. Note the use of quotes
Example: "C:\masm32\bin\rc" /v "$.rc"


Options

Resource types.

Here you can add resource types that are not initially supported by ResEd.
You can also select an editor for existing resource types.
NOTE!
Some columns are read only for resource types that ResEd initially supports.

● Name column.

The resource name.
Example: MTTEXT

● Value column.

Normally 0, if user defined a value can be set.
Example: 0

● Files column.

Open files of type.
Example: Ini (*.ini)|*.ini|Text (*.txt)|*.txt|All (*.*)|*.*
NOTE!
If left blank the resource type uses embedded file data.

● Editor column.

Here you can specify an editor for the file.
Example: notepad.exe