Home :: Products :: ConceptDraw PRO :: Study :: Lessons :: Control Dots

ConceptDraw Smart Objects
Lesson 9. Control Dots

Prev :: Content :: Next

By using control dots of a ConceptDraw object you can manipulate objects or parts of an object such as text.

For example, you can add a control dot for moving text. To add a control dot you need to open the tables of an object. To do this select an object and press F3. In Tables window left-click with the mouse to open the context menu. Select Insert Section to open Insert Sections dialog.

Insert Control Handles Insert Control Handles

In the dialog mark Control handles option and press OK. This section will be added to the tables:

Controls Table

Note: If you already have Controls section Control handles option will be disabled.

Now, in order to link the control dot to the text, you need to type =Controls.X1 in the TextGPinX cell of Text Transform section and =Controls.Y1 in TextGPinY cell.

Control Dots Text Transform Table

Close Tables window and you will get an object like the following:

Insert Control Handles

Now you can move the object's text by dragging the control dot.

Also, using control dots you can create an object which can be resized only to the required sides. It is very useful if you have any other objects or a text near your object and you want this object to be resized only in specific directions. We will show you how to create an object which you can resize only to the right or downward.

First, you need to create a usual square by using drawing tools toolbar. Then select this square and press F3 to open Tables window. In s window add 2 control dots as was told above. You should see the following table:

Controls Table

In this table you need to enter 2 in XBehaviour field of the first control dot and 1 on YBehaviour field. Then enter 1 in XBehaviour field of the second control dot and 2 for YBehaviour field.

Controls Table

XBehaviour value 1 means that a control dot can't be moved across. YBehaviour value 1 means that a control dot can't be moved vertically.

XBehaviour value 2 means that a control dot saves the distance relatively to the left side of the control frame. YBehaviour value 2 means that control dot saves the distance relatively to the upper side of the control frame.

All control dots have now been created. You, next, need to lock the object's upper left corner and assign its width and height to the control dots. To do this enter =Controls.X1 in Width field of Transform table and =Controls. Y2 in Height field. Then enter Width*0 in LocPinX field and Height*0 in LocPinY field.

Controls Table Transform Section

Your object is ready. You can resize it only to the right or downwards.

Prev :: Content :: Next

 
Subscribe to CS Odessa Newsletter
      Copyright 2008 Computer Systems Odessa Corporation. All rights reserved.
SEARCH