HTML Object

back to main page

The idea of HTML objects came after completion of commercial project, where we were involved in designing of various dialogs and were tired do it by ourselves.

So, I designed HTML objects, which allow to store dialog definitions (layout) inside HTML file and display it. For information exchange this object can recognize special text as variables and display them, updating HTML page dynamically. Download HTML project

The HTML object is not perfect and works with primitive texts only. However, you are free to enhance it.

To include FTP object - open your project.inc file with VP Studio Setup utility and checkout necessary options:

To use HTML objects - include:

Create custom control with the name: html_text

Include object initialization code at TaskWin e_create():

task_win_eh(_Win,e_Create(_),0):-  html_format_register,...

When Dialog or Window with HTML object created:

Call HTML object and assign HTML page to it:

dlg_html_formatted_text_eh(_Win,e_Create(_CreationData),0):-
    .......
    file_str(_FILENAME,DOC_STR),
    html_set_text(_Win,html_text,DOC_STR,b_true),...

The following predicates can be used with the object:

html_set_file(WINDOW,INTEGER CTRLID,STRING FILENAME,BOOLEAN)-(i,i,i,i)
html_set_text
(WINDOW,INTEGER CTRLID,STRING DOC_STR,BOOLEAN)-(i,i,i,i)
html_set_slist
(WINDOW,INTEGER CTRLID,SLIST DOC_LINES,BOOLEAN)-(i,i,i,i)
set_message_variables
(DOC_FLOW, DOC_FLOW) - (i,o)
set_variable
(STRING VARNAME_NAME,STRING VALUE)

View HTML Original

 


Copyright 1998-2000 EDMGROUP (Australia)

Last Updated: March 20, 2002