Note: In Form Designer, color properties are displayed as $00BGR and in code, an Integer must be assigned or a runtime error is thrown.
Colors can be expressed as:
<six hex digits>, such as 0000FF.#<six hex digits>, such as #FF0000.Red", when using the ColorByName function.See the Color table for available colors and their RGB Notation.
To set the Color property of an FD component in MaxBasic, you can either use ColorByName, or ColorRGB. For example, to change the color of a component, you could use one of these code examples:
panPanel1.color = 123456
panPanel1.color = "123456"
panPanel1.color = ColorByName("green")
panPanel1.color = ColorRGB(064,226,001)