QPR Knowledge Base 2015.1

Create a Shape Type for Images and Add Images to Hierarchy View

Create a Shape Type for Images and Add Images to Hierarchy View

Previous topic Next topic No directory for this topic  

Create a Shape Type for Images and Add Images to Hierarchy View

Previous topic Next topic Topic directory requires JavaScript Mail us feedback on this topic!  

mouse_24 Exercise 112: Create a Shape Type for Images and add an Image to the Hierarchy View.


BTN_AR131. Open the Dentorex Group Scorecard model.
BTN_AR132. Use a graphics editor to create a suitable default image for future image shapes. Save it either as a BMP, PNG, GIF, or a JPG image. Note that for transparent images you need to use either PNG or GIF.
BTN_AR133. On the Model tab of the ribbon, click the btn_modeling_options Modeling Options button. The Modeling Options window opens.
BTN_AR134. Switch to the Shape types tab and click New. The Shape Type window opens.
BTN_AR135. Type in Free Picture as the name of the shape and add a description if you want to:


BTN_AR136. Click OK.
BTN_AR137. In the Modeling Options window, select the newly created Free Picture shape type and click the Layout button:


BTN_AR138. The Symbol Layout window opens. Drag a Picture item from the list of items over the background shape:


BTN_AR139. A dialog for selecting a picture file opens. Search the file you created in step 2.
BTN_AR1310. Resize the image to the desired size and align it over the background shape. Note that the background shape is the area that will react when the shape is clicked for e.g. moving the shape. Therefore it is good to make the background shape cover as much of the shape as possible. However, background shape does not have transparency, so it should not cover areas where transparency is needed.
BTN_AR1311. Right-click the picture and select Properties... (Picture) from the pop-up menu:


BTN_AR1312. The Properties... (Picture) window will open. Switch to the Alignment tab.
BTN_AR1313. Set both the horizontal alignment and vertical alignment to container to Center:


BTN_AR1314. Switch to the Size tab. From the drop-down menus, set the Width and Height to use the Percent of container setting and set the value to 100:


BTN_AR1315. Click OK to close the Properties... (Picture) window.
BTN_AR1316. Close the Modeling Options window and open the Hierarchy View.
BTN_AR1317. Select the shape you defined earlier from the Shapes section in the Tool Palette. Alternatively right-click on an empty area and expand the Add Shape submenu in the pop-up menu that opens. Select the shape type you defined earlier.
BTN_AR1318. Drag the picture to a location of your choice.
BTN_AR1319. Add another image shape to the Hierarchy View.
BTN_AR1320. Right-click on the new image shape and select Symbol Layout from the pop-up menu. The Symbol Layout window opens.
BTN_AR1321. Uncheck the Use shape type's default symbol layout check box:


BTN_AR1322. Right-click on the symbol and select Select picture... from the pop-up menu.
BTN_AR1323. Select a new image for the shape and click OK. Note that the previous shape still uses the default image.

See the Symbol Layout Window topic in QPR Metrics - User's Guide for more information.