Resource Manager
83
TPDesign4 (v3.2 or higher)
Working With Slots
Once an image file is imported into the Project (via the Resource Manager), it can be assigned to a Slot
position in the Slots tab of the Resource Manager dialog (see FIG. 61 on page 65).
Once an image is assigned to a Slot, it can be used as an Icon in your Project (see below).
Icons are applied to Pages, Popup Pages or Buttons via the Icon Slot (States) property.
By default, Icons are displayed on top of bitmap images. The Draw Order can be changed in the
State Draw Order dialog, accessed via the Draw Order (State Property). See the Changing the State
Draw Order for Selected States section on page 299 for details.
TPD4 supports up to 500 icon slot assignments.
Icons
The term Icon refers to any image file that has been imported into the Project and assigned to a Slot position in
the Resource Manager. Icons are different than Bitmaps in several ways:
All imported images are considered to be Bitmaps, but an image cannot also be referenced as an
Icon until it is assigned to a slot in the Resource Manager. Having an image assigned to a slot
allows you to reference the same image as either a Bitmap or an Icon.
When an image's slot position assignment is deleted from the Project, the image is still available as
a Bitmap (and remains in any other slot it is assigned to), however, when a Bitmap is deleted, that
image is removed from the project, including all slots to which it was assigned.
Icons occupy slots in the Resource Manager; Bitmaps cannot.
By default, Icons are drawn on top of Bitmaps - see State Draw Order section on page 298for
details.
Icon Slot Assignments that have been specified in the Project are listed in the Slots tab of the
Resource Manager.
Assigning Images to Slot Positions
See the Assigning Images To Slot Positions section on page 69.
Assigning Dynamic Images to Slot Positions
See the Assigning Dynamic Images to Slot Positions section on page 72.
Moving Slot Assignments
To move (change) a slot assignment position:
1. Select Panel > Resource Manager (or click the toolbar button) to open the Resource Manager.
2. Open the Slots tab.
3. Select the Slot assignment that you want to move.
4. Ctrl + click on the desired target slot.
5. Click the Move button (FIG. 89):
The Slot Assignment is moved to the selected slot position.
FIG. 89 Resource Manager (Slots tab) - Moving Slot Assignments
Comments to this Manuals