NXKnowledge

Block UI Styler > Block Catalog > Basic

Object Color Picker

The Object Color Picker block provides a control to specify colors. This block supports 216 colors and allows the selection of more than one color.

(Compare with RGB Color Picker, which supports the full RGB color space and is intended for the graphics window's background colors.)

Inherited general properties

  • BlockID
  • Enable
  • Group
  • Label
  • Show
  • Expanded

Block-specific properties

Property Name Description Access Property Type List of Values
BalloonTooltipText Specifies text for the balloon tooltip. CIGS String Any string value. Type \n for a line feed.
BalloonTooltipImage Specifies the file name of the image displayed in the balloon tooltip. CIGS String Valid bitmap file name from the NX library (no suffix/extension needed), or complete path. Supports TIFF, PNG, GIF, JPEG, BMP.
BalloonTooltipLayout Specifies the location of text with respect to the image in the balloon tooltip. Applicable only when both text and image are specified. CIGS Enum Horizontal — default; text to the right of image. Vertical — text below image; use when image is >300px wide or width:height ratio > 4.
RetainValue Determines if the block's value will be saved in dialog memory (upon OK, Apply, or Close). CSG Logical TRUE — retains the previous value. FALSE — does not retain.
Localize Allows localization of the block Label if it matches an English string in the NX localization database. CIG Logical TRUE — translates the Label to current locale language. FALSE — does not translate.
Value Contains the numeric code of the color(s) selected. CSG Integer vector Any value between 1 and 216.

Access column legend

Character Stands for Meaning
C Creation Modifiable interactively in Block UI Styler at design time.
I Initialize Modifiable at run time via NXOpen API, but only during the Initialize callback.
G Get Readable via NXOpen API in any callback.
S Set Modifiable at run time via NXOpen API in any callback.

Related Basic blocks

Action Button, Drawing Area, Enumeration, Label/Bitmap, Multi-Line String, RGB Color Picker, Separator, String, Toggle, List Box.

Source: https://docs.sw.siemens.com/en-US/doc/209349590/PL20220512394070742.blockstyler/bs_object_color_picker · retrieved 2026-07-07