The Field_SetCustomPromptFormat() function sets the display characteristics for all text and field objects in an application whose BackColor, FontColor, PatternColor and Pattern properties are Custom.
Field_SetCustomPromptFormat(back_color, font_color, pattern_color, pattern)
• back_color – A long integer speciying the back color of the object. Use the following constants to set the back color:
Constant |
Constant |
---|---|
COLOR_SYSTEM |
COLOR_TEAL |
COLOR_TRANSPARENT |
COLOR_GREEN |
COLOR_BLACK |
COLOR_DARK_YELLOW |
COLOR_WHITE |
COLOR_VIOLET |
COLOR_RED |
COLOR_DARK_RED |
COLOR_BRIGHT_GREEN |
COLOR_DARK_BLUE |
COLOR_BLUE |
COLOR_MEDIUM_GRAY |
COLOR_TURQUOISE |
COLOR_LIGHT_GRAY |
COLOR_PINK |
COLOR_LIGHT_YELLOW |
COLOR_YELLOW |
|
• font_color – A long integer specifying the font color of the object. Use the constants listed above to set the font color.
• pattern_color – A long integer specifying the pattern color of the object. Use the constants listed above. COLOR_SYSTEM is not valid for this parameter.
• pattern – An integer specifying the pattern of the object. Use the following constants to set the pattern:
Constant |
Pattern |
Constant |
Pattern |
---|---|---|---|
PATTERN_NONE |
|
PATTERN_VERTICAL |
|
PATTERN_25_SHADING |
|
PATTERN_UP_DIAGONAL |
|
PATTERN_50_SHADING |
|
PATTERN_DOWN_DIAGONAL |
|
PATTERN_75_SHADING |
|
PATTERN_GRID |
|
PATTERN_HORIZONTAL |
|
PATTERN_TRELLIS |
|
The boolean value true.
The Field_SetCustomPromptFormat() function automatically adds several entries to the defaults file for your application. These entries store the characteristics that were just specified, and begin with the word “Custom”. If these entries exist in the defaults file, Dexterity or the runtime engine will automatically apply them when your application is run.
The User Interface Conversion Utility in Dexterity Utilities changes the BackColor, FontColor, Pattern and PatternColor properties for an application’s prompts (text objects that appear within a cyan rectangle that’s 18 pixels high) to Custom. The utility leaves properties for all other text objects unchanged.
If you don’t use the Field_SetCustomPromptFormat() function, objects that use the Custom setting for BackColor, FontColor, Pattern and PatternColor properties will appear with the following set of default display characteristics:
Attribute |
Default display |
---|---|
Back color |
Turquoise (Cyan) |
Font color |
Black |
Pattern |
None |
Pattern color |
Black |
These defaults do not apply to static text items for controls such as push buttons, check boxes and radio buttons. Your operating system color settings control the display characteristics for those objects if you chose the Use System Colors option in the User Interface Application Utility.