This is easy to use Visual Prolog editor, wrapped into class.
|
VP Studio Shell |
Description |
|
|
Create custom control with the name:
cl_editor_colored |
|
|
Edit Object properties using VP Studio Shell property editor. You can define:
|
|
|
Preview object and compile application. The parameters entered will be passed to the object in final application. The same data will appear in your compiled application |
Note:
Editor object classes are not compatible with previous version of Editor
Object.
If you are user of VP Studio Setup utility - please use follow instruction
below.
To include this editor into your application - simply add a constant
use_vpstudio_colored_object = 1
into Project.inc file.
Note: - you need your project to be updated with Visual Prolog Studio setup utility.
To add editor to your visual resource (dialog or window), simply create custom control with the class name editor_colored_class
Use the following code to obtain reference to the create object:
TxtWin = win_GetCtlHandle(_Win, id_editor_colored_class),
editor_colored_object(TxtWin,EDITOR_COLORED),
Once you have class reference EDITOR_COLORED - you can access it's properties and interfaces, such as:
|
editor_string(STRING) - (i),(o) |
Get/set text in editor |
|
editor_resize(RCT) - (i) |
Resize editor object |
|
editor_set_font(FONT) |
Set editor font |
|
editor_window(WINDOW)- (o) |
Get handle to editor window. With Window handler you can use all Visual Prolog editor predicates directly. |
|
editor_coloring(integer NColoring) - (i) |
Set editor coloring scheme |
|
editor_callback(EHANDLER) - (i),(o) |
Redefine Editor handler |
For more information about use of the Colored Editor - see samples:
Copyright 1998-2002 EDMGROUP (Australia)
Last Updated: April 17, 2002