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.
- colorname
- The name of the color to change the frame color to.
- red
- Value to set the block frame red color value to. Values can range from 0-255.
- green
- Value to set the block frame green color value to. Values can range from 0-255.
- blue
- Value to set the block frame blue color value to. Values can range from 0-255.
- alpha
- Transparency to set the block frame color to. Values can range from 0-255.
Examples
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetBlockFrameColor(block, 'red');
diagram = bdeGetCurrentDiagram();
block = bdeGetSelectedBlock(diagram);
bdeSetBlockFrameColor(block, 255, 0, 0, 255);