DR SET DRAW MODE

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR SET DRAW MODE (area; mode)

ParameterTypeDescription
areaLongint4D Draw area
modeInteger0=Edge
1=Center

Description

The command DR SET DRAW MODE controls whether new objects in area are drawn from their centers or from their edges.

If mode equals 0, objects are drawn from their edges.

If mode equals 1, objects are drawn from their centers.

The default setting is to draw objects from their edges.

Example

The following example is the object method for a check box named bMode. In the Before phase, it determines the drawing mode of Area and sets the check box accordingly. It then allows the user to set the drawing mode by clicking the check box. If the check box is checked, objects in Area are drawn from their centers. If the check box is unchecked, objects are drawn from their edges.

   Case of
      :(Before)
            `If we are in the Before phase
         bMode := DR Get draw mode (Area)
            `Set bMode equal to the drawing mode   
      :(During)
            `If we are in the During phase
         DR SET DRAW MODE (Area;bMode)
            `Set the drawing mode
   End case

See Also

DR Get draw mode.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next