⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wre.gml

📁 开放源码的编译器open watcom 1.6.0版的源代码
💻 GML
📖 第 1 页 / 共 2 页
字号:
.*
.ix 'Resource Editor' 'create new resource'
.ix 'Resource' 'create new'
.ix 'New' 'in Resource menu'
.np
From the &company Resource Editor window, you can create any of the
following resources:
.begbull $compact
.bull
Accelerator
.bull
Bitmap
.bull
Cursor
.bull
Dialog
.bull
Icon
.bull
Menu
.bull
String
.endbull
.np
To create a new resource, choose the type of resource from the
cascading menu that appears when you choose New from the Resource
Menu. The editor for the selected resource type appears on the screen
on top of the Resource Editor window. From here, create the desired
resource, referring to the appropriate editor section in this guide
for more information.
.*
.section Editing an Existing Resource
.*
.np
.ix 'Resource' 'edit existing'
.ix 'Resource Editor' 'edit existing resource'
From the Resource Editor window, you can select any resource within a
resource file and edit it by opening the editor with which the
resource was created. This makes editing resources efficient as you
have access to every resource in a resource file and you can invoke
the appropriate editor quickly.
.begstep To edit an existing resource:
.step Select the desired resource file
on the Resource Editor window by selecting the appropriate Resource
window.
.result
This is the resource file whose resource you want to edit.
.step Select the resource type
by selecting on the appropriate line in the type listbox.
.result
A list of all resources of the selected type for this resource file
appears in the Resource listbox.
.keep 19
.figure *depth='3.20' *scale=56 *file='RES7' Each resource type contained in the resource file appears in the Types listbox.
.step Double click on the resource you want to edit
.orstep Select the desired resource,
then
.bd choose Edit from the Resource menu
.orstep Select the desired resource,
then
.bd press ENTER.
.result
The appropriate editor for the selected resource opens on top of the
Resource Editor window. Use this editor to make changes to the
selected resource.
.step
Refer to the appropriate editor section in this guide for information
on using the editor to edit the selected resource.
.endstep
.*
.section Saving a Resource
.*
.np
.ix 'Resource Editor' 'save resource'
.ix 'Resource' 'save'
The Save As menu item in the Resource menu enables you to save a
resource to a new or existing resource file. Saving a resource to an
existing resource file replaces the existing resources for that
resource file with the resource you are saving. You can save only one
resource at a time with this function.
.begstep
.step Select the desired resource.
.result
You can select only one resource at a time and the selected resource
appears highlighted. This is the resource you want to save to another
resource file.
.step Choose Save As
from the Resource menu.
.result
A Save Resource dialog appears where you specify the resource file to
which you are saving the selected resource.
.step Specify the file to which you are saving
by selecting an existing file or entering the name of a new file.
.step Click on OK
when completed.
.result
How you proceed from here depends on whether you are saving the
resource to a new or existing resource file.
.endstep
.*
.beglevel
.*
.section Saving to a New Resource File
.*
.np
.ix 'Resource' 'save to new resource file'
.ix 'Resource Editor' 'save resource to new resource file'
Once you enter the name of the new resource file to which you are
saving the selected resource and click on OK in the Save Resource
dialog, the dialog closes.
.*
.section Saving to an Existing Resource File
.*
.np
.ix 'Resource Editor' 'save resource to existing resource file'
When you choose an existing file from the Save Resource dialog, a Save
Resource message box appears on the screen. This message box informs
you that the selected file already exists and asks if you want to
replace the existing file.
.keep 17
.figure *depth='1.65' *scale=67 *file='RES8' A Save File As message box appears when you attempt to save the current resource file to an existing file.
.begstep To cancel the save:
.step Choose No
.result
The Save Resource dialog reappears.
.step Select another file
to which you can save the selected resource
.orstep Cancel the save function
.result
The dialog closes and the Resource Editor returns you to the Resource
Editor window.
.endstep
.begstep To replace the existing file:
.step Choose Yes
to replace the contents of the existing resource file with the
selected resource.
.result
The dialog closes and the Resource Editor saves the resource file,
returning you to the Resource Editor window.
.endstep
.*
.section Copying Into an Existing Resource File
.*
.np
.ix 'Resource Editor' 'copy resource into an existing file'
The Copy To function enables you to copy the selected resource into an
existing resource file. This does not remove the resource from its
current resource file and it does not delete the resources in the
existing resource file, as in the Save As function.
.begstep To copy a resource to another resource file:
.step Select the desired resource.
.result
The selected resource appears highlighted in the Resource window. This
is the resource you want to copy to another resource file. Copying a
resource does not remove it from its current resource file.
.step Choose Copy To from the Resource menu.
.result
A Copy Resource Into File dialog appears where you select an existing
resource file to which you want to copy the selected resource.
.keep 15
.figure *depth='2.69' *scale=65 *file='RES9' In the Copy Resource Into File dialog, select the resource file to which you want to copy the selected resource.
.step Double click on the desired resource file
.orstep Click on the desired resource file
to select it, then
.bd click on OK.
.result
The Resource Editor copies the resource to the selected resource file.
The dialog closes and you return to the &company Resource Editor
window.
.begnote
.note Note:
If the resource file to which you copied the selected resource is open
on the Resource Editor window, the copied resource will not appear. To
view the updated resource file, simply open that resource file again.
The copied resource now appears in the Resource window for the
resource file.
.endnote
.endstep
.*
.endlevel
.*
.section Using Shortcuts to Create a Resource
.*
.np
.ix 'Resource Editor' 'shortcut to create resource'
The Edit menu on the &company Resource Editor window contains some
standard Windows items that you can use to quickly create resources.
The items are:
.begbull $compact
.bull
Cut
.bull
Copy
.bull
Paste
.endbull
.ix 'Resource' 'cut'
.ix 'Resource' 'copy'
.ix 'Resource' 'paste'
.ix 'Resource' 'copy to'
.np
These items allow you to cut or copy selected resources from one
resource file, then open a second resource file and paste them into
it. You can also paste them directly into the appropriate editor.
.begstep Cut
.step Select the resource
you want to cut to the clipboard.
.result
The selected resource appears highlighted in the Resource window.
.step Choose Cut
from the Edit menu of the Resource Editor window.
.result
The Resource Editor removes the selected resource from the Resource
window and places it on the clipboard.
.endstep
.np
Refer to
.us Paste
in this section for details on pasting information from the clipboard.
.begstep Copy
.step Select the resource
you want to copy to the clipboard.
.result
The selected resource appears highlighted in the Resource window.
.step Choose Copy
from the Edit menu of the Resource Editor window.
.result
The Resource Editor copies the selected resource to the
clipboard.
.endstep
.np
Refer to
.us Paste
in this section for details on pasting information from the clipboard.
.begstep Paste
.step Select the resource file in which you want to paste the resource
that is currently on the clipboard.
.step Choose Paste
from the Edit menu
of the Resource Editor window.
.result
The Resource Editor places the resource from the clipboard into the
current resource file in the Resource Editor window.
.endstep
.*
.section Deleting a Resource
.*
.np
.ix 'Resource Editor' 'deleting a resource'
The Delete item in the Edit menu enables you to quickly delete
resources from a resource file.
.begstep To delete an object from a resource file:
.step Select the resource you want to delete
from a resource file on the Resource Editor window.
.result
The selected resource appears highlighted in the Resource window.
.step Choose Delete
from the Edit menu.
.orstep Press the Delete key
on the keyboard.
.result
A Delete Resource dialog box appears displaying the name of the
resource chosen to delete.
.keep 14
.figure *depth='1.35' *scale=70 *file='RES10' The Delete Resource dialog prompts you to verify that you want to delete the resource indicated.
.step Click on OK
to delete the selected resource.
.result
The Delete Resource dialog closes and the Resource Editor removes the
selected dialog from the Resource window.
.endstep
.begnote
.note Note:
Choosing Cancel on the Delete Resource dialog cancels the deletion and
returns you to the Resource Editor window.
.endnote
.*
.section Renaming a Resource
.*
.np
.ix 'Resource Editor' 'renaming a resource'
You can change the name of a resource from either the Resource Editor
or from the editor in which the resource was created.
.begstep To rename a resource:
.step Select the resource you want to rename.
.step Choose Rename
from the Resource menu in the &company Resource Editor window.
.result
A Rename Resource dialog appears containing two fields:
.begbull $compact
.bull
Old Name
.bull
New Name
.endbull
.keep 16
.figure *depth='1.49' *scale=68 *file='RES11' In the Rename Resource dialog, you enter the new name of the selected resource.
.step Enter the new name for the resource
in the New Name field.
.step Click on OK
to close the Rename Resource dialog.
.result
The dialog closes and the new resource name appears in the Resource
window. The Resource Editor automatically reorders the resources into
alphabetical order.
.endstep
.*
.section Resource Editor: Changing Memory Options
.*
.np
.ix 'Resource Editor' 'Memory Flags option'
.ix 'Memory Flags options'
The Memory Flags item in the Resource menu of the Resource Editor
window enables you to change the memory options for the selected
resource without opening the editor for that resource. These options
indicate the memory type and loading instructions for the resource.
.begstep To set the memory options for a resource:
.step Select the resource
whose memory options you want to change.
.step Choose Memory Flags
from the Resource menu in the &company Resource Editor window.
.result
The Memory Options dialog opens displaying the current memory options
for the selected resource.
.keep 20
.figure *depth='2.20' *scale=65 *file='RES12' In the Memory Options dialog, you change the memory options for the selected resource.
.step Select the required flags
in the Memory Options and Load Options sections of the dialog by
clicking on the check box or radio button beside the appropriate
field.
.result
Following is a description of each option.
.begpoint $break
.point Moveable
Selecting this option marks this resource to be stored in moveable
memory when it is loaded by an application.
.point Discardable
Selecting this option marks this resource to be stored in discardable
memory when it is loaded by an application.
.point Pure
When marked as Pure, Windows does not allow the memory into which the
resource is loaded to be modified.
.point Preload
All resources marked as Preload are loaded when the application for
which the resource is created is loaded.
.point LoadOnCall
Resources marked as LoadOnCall are loaded only when an application
issues a call to load them.
.endpoint
.endstep
.*
.endlevel

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -