Can you point me to some information in the Visual Prolog manuals, online
documentation, or example applications to assist with adding color to windows ?
Visual Prolog manuals, Help file and examples provide information on how to handle
colors for windows.

Online Help References
Topic
|
Description
|
Path in the Online Help
|
Color Handling |
The topic describes the problems of color handling in Visual Prolog |
Visual Prolog Contents ->
The VPI (Visual Programming Interface)->
Color Handling |
Coloring Text |
The topic describes two predicates to change the foreground and background
color for the drawing text: win_SetBackColor and win_SetForeColor. |
Visual Prolog Contents ->
The VPI (Visual Programming Interface)->
Drawing (Overview) -> Drawing Text -> Coloring Text |
User Selection of a Color |
The topic describes the common dialog to let a user choose colors |
Visual Prolog Contents ->
The VPI (Visual Programming Interface)-> Common Dialogs -> User Selection of a Color |
Examples
- The "Getting Started" manual describes how to create a project MYPROJ.VPR
including the Sweep Window (p.69).
If you compile this project and run the application, you will see, how to select and
change colors.
- Color handling for drawing predicates is illustrated in the VPI\EXAMPLES\DRAWING example
project.
- The VPI\EXAMPLES\COLORS example project shows, how to draw a number of rectangles with
different colors and how to compose and decompose colors.
- Color handling is also shown in the VPI/PROGRAMS/HANOI and VPI\TOOLEXAM\COLORDLG
examples.
- The example VPI\EXAMPLES\CTLCOLOR demonstrates, how to set colors to edit controls. The
example works under Windows NT only.
|