bdeSetBlockFrameColor

Sets the block's frame color.

Syntax

bdeSetBlockFrameColor(block, color)

bdeSetBlockFrameColor(block, red, green, blue, alpha)

Inputs

block
The block to set the frame color of.
Type: block
colorname
The name of the color to change the frame color to.
Type: string
red
Value to set the block frame red color value to. Values can range from 0-255.
Type: integer
green
Value to set the block frame green color value to. Values can range from 0-255.
Type: integer
blue
Value to set the block frame blue color value to. Values can range from 0-255.
Type: integer
alpha
Transparency to set the block frame color to. Values can range from 0-255.
Type: integer

Examples

Set a block's frame color to red:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockFrameColor(block, 'red');
        
Set a block's frame color to red:

          diagram = bdeGetCurrentDiagram();
          block = bdeGetSelectedBlock(diagram);
          bdeSetBlockFrameColor(block, 255, 0, 0, 255);