Skip to main content

How to display more than 16 colours in a page created with Form Designer?

  • February 15, 2013
  • 0 replies
  • 0 views

Problem:

Only 16 colours are displayed when using the colour option.  The computer is set to unlimited number of colours.

Resolution:

The Form Designer Script Assistant helps you set up event handlers that:

Invoke methods

Get and set properties

Get and set styles

The Script Assistant has five tabs:

The Events tab

The Methods tab

The Properties tab

The Styles tab

The Scripts tab

The Events, Methods, Properties and Styles tabs provide you with a point and click method of creating event handlers, while the Scripts tab enables you to enter and edit your code directly.

The contents of the tabs and the behavior of the Script Assistant vary depending on whether you are working with HTML controls or ActiveX controls.

Styles contain information about the appearance of an element. Just as with properties, you can set a style to change an element s appearance, or get a style to discover its appearance.  For example, most ActiveX and HTML controls have a style called background colour.  To find out what the background color is, you get the backGround colour style. To set the colour, you set the background colour style.  The figure above shows the first few styles for an HTML pushbutton control.

When you set properties and most styles, you specify what you want by entering a string in a dialog box.  But when you set a color style, you see a colour palette containing 48 basic colours and 16 custom colours.  You can define new custom colours.  However, JavaScript supports a limited range of colors, and if you define a custom color that is not supported, the nearest supported color will be used instead.  See your Netscape or Internet Explorer references for a list of supported colours.  

Old KB# 5762

0 replies

Be the first to reply!