Module 08 - Basic Graphical Objects
Module 08 - Basic Graphical Objects
Graphical objects
Purpose
n About the basic shapes,
n Create a button,
n Insert an image in a mimic.
Contents
1. Introduction 3
1.1. PcVue version 3
1.2. Files used in this module 3
1.3. Third party software used in this module 3
4. Summing-up 20
The following image files, taken from Materials folder, should be copied to B folder of
your project before starting.
l Floor_Standard.png
l floorplan123.png
l Ld_Led01_Blue.bmp
l Ld_Led01_Green.bmp
l light_ns_48.png
l light_off_48.png
l light_on_48.png
None.
Figure 1
All graphical objects available in PcVue are located in the Drawing toolbar.
Figure 2
Step 2
2. The mouse is in Select mode:
3. Step 3 Select the command Draw / <object to include> or click the object’s icon
4. Step 4 Click and drag the mouse in the mimic to draw the selected object.
5. Step 5 The mouse stays in drawing mode. Select the command Draw / Select to
switch the mouse to Select mode.
The best way to switch the mouse to Select mode is to press the ESC key.
You can move an object with the mouse after selection. By default when moving, the
object “snaps” to the grid. You can disable this function in Window properties (option Dis-
play tab / Grid / Enable).
You can move a selected object one pixel at a time using the arrow keys, or one grid
unit using SHIFT and the arrow keys.
l Select one object, press and hold the Shift key, select another object and so on …
When several objects are selected you can move them together.
There are several ways to duplicate an object. You can select the object and copy it by:
l Right-clicking where you want to paste it and using the Paste here command.
l Select the object and hold down the left mouse button,
Of course, these methods also work when several objects are selected (multiple selections).
Exercise 1.
l Create a new mimic: Basic objects.
Every graphical object has various properties: color, size, position etc…
There are several ways to display the properties of an object. Select the object and:
l Double-click on it
Here, you can change any property you want and click the OK button.
1. Step 1 Click (don’t double-click) the color icon. PcVue displays the Colors palette.
There are also Advanced Properties which are hidden by default. To display the Advanced
Properties of an object :
Exercise 2.
Change properties of several objects.
Figure 7
A description of the Arrange tools is available in the online Help in: Developing
the HMI / Drawing / Selecting moving and arranging drawing elements /
Arrange toolbar.
After making a multiple selection you can group the objects. Then if you change a property
of the group it is applied to all objects belonging to the group.
If you don’t want to move an object by mistake you can lock it using this tool.
Every time you insert a new object it is automatically displayed in the top level of the hier-
archy of objects. You can use these tools to change the level of an object.
When you are manipulating several objects you often need to align, centre or resize them
in bulk with respect to each another. These tools allow you to do so.
To align, resize or centre objects you must have a reference object. It is highlighted by
black handles as follows:
Figure 9
In this example if you select Align Top the result will be as follows:
Figure 10
Exercise 3.
Use the Arrange tools to group/ungroup, lock/unlock, align, order and resize
objects.
If you want to change the color of a button in Runtime mode you must select
Colored button.
Exercise 4.
Create a normal button.
The HMI supports the use of images in BMP, JPG, PNG, WMF, GIF and animated GIF
formats.
The use of images can greatly enhance the appearance of your application, however there
are two points which you must always take into account.
Images, particularly those with many colors, use large amounts of memory.
Images frequently use different color palettes. If you display two or more images at the
same time with different palettes, and the graphic adapter you are using does not have suf-
ficient colors to display them, then you will get bizarre effects with the displayed colors
changing from their usual appearance.
Before you can insert an image you must copy it to the correct folder: Project path\B.
To insert an image:
1. Step 1 Select the command Insert / Image or click the object’s icon in the
Drawing toolbar. The Insert Image dialog appears.
2. Step 2 Select the image needed and click the OK button or drag and drop it dir-
ectly on the mimic.
When you copy an image into the project subfolder Project path\B while PcVue
is running you will not see it in the Insert Image dialog!! You must refresh the
image list using the Refresh button.
If you select the Medium icon display option, the contents of the dialog
changes from just a list, to actual previews the images.
Figure 13
You can define one of the colors that is used in an image as transparent. That is, you can
see the background of the mimic or any drawing elements under it through any area of
that color.
3. Step 3 Click the color icon to select the transparent color in the colors palette (see
Figure 14) or click directly on the image. The corresponding pixel’s color will
become the transparent color (see Figure 15).
Figure 15
Transparent color is not handled the same way with a PNG image.
Exercise 5.
Using images.
PcVue provides a large library of images. To insert an image from the library select the
Library drop-down list in the Insert Image dialog.
Figure 16
You can recognize an image that is from the library by its path displayed in the
Image properties / Picture tab.
Figure 17
Note that the folder name is not necessarily the same as the library name!
Exercise 6.
Module 08 _ Basic graphical objects 18
Arc Informatique © Copyright 2020. All rights reserved Updated 12/11/2020
Insert the image BUILDING_ELEC_Energy.bmp from the BUILDING library.
l Using the basic graphical objects you can draw the most common mimics used in a tra-
ditional SCADA project.
l There are many Arrange tools that enable you to make a complete mimic.