Create a dialog with RisohEditor

To Top Page | Previous Page | Next Page


Let's start the resource editor. And select "Edit" → "Add" → "Add Dialog" from the "Edit" menu.

[Dialog creation]

The "Add Resource" dialog is displayed. Enter "1" (one) in "Resource Name" and click the "OK" button.

[Dialog creation done]

"RT_DIALOG (5)" → "1" → "Japanese (Japan) (1041)" is added to the tree view and it is in the selected state. Something is written on the right side.

LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT

1 DIALOG 0, 0, 215, 135
CAPTION "サンプル ダイアログ"
STYLE DS_CENTER | DS_MODALFRAME | WS_POPUPWINDOW | WS_CAPTION
FONT 9, "MS UI Gothic"
{
    DEFPUSHBUTTON "OK", IDOK, 35, 115, 60, 14
    PUSHBUTTON "キャンセル", IDCANCEL, 115, 115, 60, 14
}

(Translation Note: "サンプル ダイアログ" in Japanese means "Sample Dialog". And then "キャンセル" means "Cancel")

This is the source of the resource. The resource data is created based on the text called this source. Rewrite the "Sample Dialog" as "Interactive Window Test".

LANGUAGE LANG_JAPANESE, SUBLANG_DEFAULT

1 DIALOG 0, 0, 215, 135
CAPTION "対話型窓の試験"
STYLE DS_CENTER | DS_MODALFRAME | WS_POPUPWINDOW | WS_CAPTION
FONT 9, "MS UI Gothic"
{
    DEFPUSHBUTTON "了解", IDOK, 35, 115, 60, 14
    PUSHBUTTON "取り消し", IDCANCEL, 115, 115, 60, 14
}

(Translation Note: "対話型窓の試験" means "Interactive Window Text". And "了解" means "OK". "取り消し" means "Cancel")

[Edit dialog source]

Then click the "Recompile" button in the upper left. The "Recompile" button and "Cancel Edit" button on the toolbar are displayed when you rewrite the source. If you don't see an error message, your edits are now accepted.

Double-click "Japanese (Japan) (1041)" to display the "Edit Dialog" window.

[Edit dialog]

The title text have been correctly changed. You can edit the dialog using this "Edit Dialog" window. As a test, let's change the position by dragging the "Cancel" button.

[Move control]

Finally, let's save this dialog data in a .rc file. Select "Save As" from the "File" menu. The following window will display the "Save As" dialog as shown below.

[Save As]

Specify ".rc" as the file type, enter an appropriate name ("kessaku.rc"), select an appropriate location (such as "Desktop") and press the "Save" button. The following "Save Options" will be displayed.

[Save Options]

It is OK if you click the "OK" button without changing anything. The file "kessaku.rc" is generated.

[Save done]

Close RisohEditor when you are done.


To Top Page | Previous Page | Next Page

inserted by FC2 system