Heaventools

 

Resource Editor: How To Edit A Dialog Box

Resource Tuner lets you visually modify a selected dialog and its controls. You can resize, redesign, and reposition the controls inside the dialog or simply change their font properties to suit your needs. Size and position changes to dialog boxes and child controls are automatically reflected in the resource script.

Edit Dialog Box

1. Expand the Dialog folder that’s found in the Resource Tree view, and select the dialog resource item to be changed. You will see a preview of what the dialog box looks like. To see the script behind the dialog box that makes it work, select the Script View tab.

The dialog box preview

2. Anything that you see on a dialog box can be moved or resized. Select a control by clicking it in the displayed dialog. The selected control will show resizing handles.

The Object Inspector allows for changing the Style and ExStyle parameters of a selected control:

Changing the Style and ExStyle parameters

You can set/reset the extended style parameters for a dialog box and its control items (e.g. "right-to-left" reading order for Hebrew/Arabic script as well as "right-aligned text").

3. A dialog box can be modified primarily by editing the item lable - e.g. the caption, as well as changing the size or position of a control. This can be accomplished using the mouse as well as entering the new properties directly into the corresponding edit fields in the Object Inspector. As you rearrange and resize objects, the resource script related to the objects changes accordingly.

Resource script

4. Select 'File' -> 'Save File' to save the altered file to disk. Any change you make can be restored prior to quitting the editor.

Dialog IDs cannot be edited. These values are hard coded into the target file. Changing them is likely to cause the modified program to crash.

< previous | next >

 

Order Now!
Give Resource Tuner a trial run for 30 days free! Once you try it, we think you will find it hard to go back to other resource hacking utilities. So if you decide to purchase it, it's only $49.95 for a Personal License.