PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Control in a window, in a report, or in a static or dynamic page
  • Use in a page
  • Creating an HTML control
  • Creating an HTML control in a page
  • Creating an HTML control in a report
  • Creating an HTML control in a report
  • Page control: Characteristics
  • Page control: variable width and height
  • Report control: Characteristics
  • Description window and programming
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview

Control in a window, in a report, or in a static or dynamic page

The HTML control can be used:
  • WEBDEV - Server codePHP In a page.
    The HTML control of a page is used to display or use an HTML code or a JavaScript code. This code can correspond to HTML scripts for example. The HTML control cannot be used to display an HTML page or an HTML site. This control can only be used to display an HTML code.
  • Versions 18 and later
    WEBDEV - Server codeWindows In a report.
    The HTML control of a report is used to print an HTML code or the content of a local page.
    New in version 18
    WEBDEV - Server codeWindows In a report.
    The HTML control of a report is used to print an HTML code or the content of a local page.
    WEBDEV - Server codeWindows In a report.
    The HTML control of a report is used to print an HTML code or the content of a local page.
WEBDEV - Server codePHP

Use in a page

The HTML control of a page is used to display or use an HTML code or a JavaScript code. This code can correspond to HTML scripts for example. The HTML control cannot be used to display an HTML page or an HTML site. This control can only be used to display an HTML code.
An HTML control can be programmed in server code only if the control is defined as being a "Dynamic" control. The HTML control cannot be associated with an item of a data file.
Caution:
  • When the control is defined as being a dynamic control, it can only be assigned by programming.
  • The option "Allow the execution of scripts" is not checked by default for the control ("General" tab of control description).The option "Forbid the execution of Javascript scripts" is checked by default ("General" tab of control description).
If the window displayed in the HTML control contains scripts and if the user clicks active areas in this HTML control (forms, tab, ...), the requested action triggers the opening of default browser and displays the URL of HTML control in order to allow the user to run these scripts.
To allow the user to navigate inside the HTML control, check "Allow the execution of scripts".To allow the user to navigate inside the HTML control, uncheck "Forbid the execution of JavaScript scripts".
Creating an HTML control
To create an HTML control:
  1. In the window or page editor, click HTML icon (or select "Insert .. Control .. HTML control").
  2. Click the position where the control will be created in the window or page. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control.
WEBDEV - Server codePHP

Creating an HTML control in a page

To create an HTML control in a page:
  1. On the "Creation" pane, in the "Integration" group, click "HTML".
  2. Click the position where the control will be created in the page. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control.
Versions 18 and later
WEBDEV - Server codeWindows

Creating an HTML control in a report

To create an HTML control in a report:
  1. On the "Creation" pane, in the "Usual controls" group, click "HTML".
  2. Click the position where the control will be created in the report. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control.
New in version 18
WEBDEV - Server codeWindows

Creating an HTML control in a report

To create an HTML control in a report:
  1. On the "Creation" pane, in the "Usual controls" group, click "HTML".
  2. Click the position where the control will be created in the report. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control.
WEBDEV - Server codeWindows

Creating an HTML control in a report

To create an HTML control in a report:
  1. On the "Creation" pane, in the "Usual controls" group, click "HTML".
  2. Click the position where the control will be created in the report. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control.
WEBDEV - Server codeWindows

Creating an HTML control in a report

To create an HTML control in a report:
  1. On the "Creation" pane, in the "Text" group, click "HTML".
  2. Click the position where the control will be created in the report. The control appears in creation mode.
To display the control characteristics, select "Description" from the popup menu of control.
Note: From version 22, the HTML control in a report corresponds to an HTML Static control.
WEBDEV - Server codePHP
Page control: Characteristics

Page control: variable width and height

By default, the dimensions of HTML control are defined in the editor. If the HTML content of control is bigger, the content is truncated.
To modify this operating mode, check "Variable width" and "Variable height" ("Details" tab of the description window). In this case, the dimensions of the HTML control will adapt to the content of the control and the controls located beside or below the HTML control it will be moved accordingly.
WEBDEV - Server codeWindows
Report control: Characteristics
Versions 18 and later

Description window and programming

In the description window of control, you have the ability to type a text in the "General" tab of control. This text will be automatically converted to HTML.
The HTML control is used to display:
  • the content of a local HTML file.
  • the HTML content of an item.
To initialize the HTML control by programming, it can be assigned with:
  • an HTML code directly. For example:
    HTM_Code = "Hello"
  • the path of a local HTML file.
    HTM_Code = fExeDir() + "\MyHTMLFile.htm"
Notes:
  • The images in PNG and SVG format found in the HTML are not supported.
  • If the CSS style sheet corresponds to an external file, it is ignored.
  • All the external files that must be found on Internet are ignored.
  • The Javascript codes are not run.
New in version 18

Description window and programming

In the description window of control, you have the ability to type a text in the "General" tab of control. This text will be automatically converted to HTML.
The HTML control is used to display:
  • the content of a local HTML file.
  • the HTML content of an item.
To initialize the HTML control by programming, it can be assigned with:
  • an HTML code directly. For example:
    HTM_Code = "Hello"
  • the path of a local HTML file.
    HTM_Code = fExeDir() + "\MyHTMLFile.htm"
Notes:
  • The images in PNG and SVG format found in the HTML are not supported.
  • If the CSS style sheet corresponds to an external file, it is ignored.
  • All the external files that must be found on Internet are ignored.
  • The Javascript codes are not run.

Description window and programming

In the description window of control, you have the ability to type a text in the "General" tab of control. This text will be automatically converted to HTML.
The HTML control is used to display:
  • the content of a local HTML file.
  • the HTML content of an item.
To initialize the HTML control by programming, it can be assigned with:
  • an HTML code directly. For example:
    HTM_Code = "Hello"
  • the path of a local HTML file.
    HTM_Code = fExeDir() + "\MyHTMLFile.htm"
Notes:
  • The images in PNG and SVG format found in the HTML are not supported.
  • If the CSS style sheet corresponds to an external file, it is ignored.
  • All the external files that must be found on Internet are ignored.
  • The Javascript codes are not run.
Related Examples:
The HTML control Unit examples (WINDEV): The HTML control
[ + ] Using an HTML control
HTMLClass property Unit examples (WEBDEV): HTMLClass property
[ + ] The property ..HTMLClass allows you to read and update the control's HTML attribute "class".
This property lets you select the CSS Style applied on the control.
WM HTML Dialog Cross-platform examples (WINDEV Mobile): WM HTML Dialog
[ + ] This example explains how to dialog with an HTML control.
It is using the WLanguage "ExecuteJS" function and the Javascript "WL.Execute" function.
Minimum version required
  • Version 9
This page is also available for…
Comments
Control HTML = Control View PDF
Did you know that the HTML control allows you to view various types of files like JPG, PNG, GIF, PDF and many other types? Well, it is possible to visualize different types of files, just inform the HTML control to open the file via programming code containing the PATH of the file.

==== CONTROL HTML OPEN PDF ====

Você sabia que o controle HTML permite visualizar diversos tipos de arquivos como JPG, PNG, GIF, PDF e muitos outros tipos? Pois bem, é possível SIM visualizar diferentes tipos de arquivos, basta informar para o controle HTML para abrir o arquivo via código de programação contendo o PATH do arquivo.

URL_FILE IS STRING = "c:\temp\pedido.pdf"

or

URL_FILE IS STRING = "http://mysite.com/pedido.pdf"

CONTROL_HTML_PEDIDOS = URL_FILE

OK
BOLLER
26 Jun. 2019
Video Pesquisa google
https://youtu.be/zN2jRmYPUhA

https://windevdesenvolvimento.blogspot.com/2019/06/dicas-2141-windev-webdev-mobile.html

// BTN_PESQUISA_GOOGLE
sPESQUISA is string="https://www.google.co.in/search?q="+EDT_Site
HTM_SITE=sPESQUISA
amarildo
05 Jun. 2019
Video Html WebDev
https://youtu.be/EWW9_urMBWQ
amarildo
28 Dec. 2018
Video Html WINDEV
https://youtu.be/RJHDt5BpOhA
amarildo
28 Dec. 2018
Video Html Windev Mobile
https://youtu.be/bKPR1UdsYxU
amarildo
28 Dec. 2018