Macintosh measures color intensity on a scale from 0 (completely dark) to 65,535 (full brightness). Values in between denote intermediate intensity. By combining the three primary colors with different intensities you can create virtually any color. The table below shows a small sample of the colors that are possible.
A color in a field or variable is just a piece of data that describes a color… you can’t actually see the color. However, some advanced form objects allow you to control their color using a color data item, and you can look at or modify the color of any graphic object in a form. See changeobjects and objectinfo( for more information.
Another way to specify a color is the HSB, or Hue, Saturation, Brightness system. Like the RGB system, the HSB system uses three numbers from 0 to 65,535 to describe a color. However, the three components have different meanings in this system.
The Hue component specifies where this color falls in the spectrum. If you are familiar with the standard Apple color picker, the Hue would specify the angle of the color from the center of the wheel.
The Saturation component refers to how intense this color is. Is it a very intense deep color, or is it a soft pastel color, or somewhere in between? Again using the standard Apple color picker, the Saturation would specify the distance of the color from the center of the wheel.
The Brightness component refers to how light or dark the color is. Is the color very bright, or is it almost black? This sounds similar to Saturation, but it isn’t. Imagine a blue ball under a white light. As the light gets dimmer, the Hue and Saturation of the color don’t change, but the Brightness does. On the Apple color picker the Brightness is specified by the scroll bar on the bottom.
setprocedureoptions "","Danger Level","MENUCOLOR",rgb( 65535 , 0 , 0 )
Instead of using separate color components you can specify colors using an HTML color specification, like this:
setprocedureoptions "","Danger Level","MENUCOLOR",htmlrgb("FF0000")
An alternative shortcut is to simply use a text string containing the HTML color, like this:
setprocedureoptions "","Danger Level","MENUCOLOR","FF0000"
No function is required, Panorama simply automatically recognizes that a color is required and an HTML color specification has been supplied.
An optional color component is opacity. Opacity can vary from 0 (transparent) to 65535 (completely opaque). Note: Some Panorama components, for example menu items, do not support the alpha component, and are always completely opaque.
|10.0||Updated||Carried over from Panorama 6.0, but now includes an optional alpha (opacity) component, as well as automatic recognition of HTML colors without a function.|