Width is defined by multiplying the SIZE value by the standard or wide font measure. If this control is also boxed, the space required for the box is added to the width. The Web browser control has a minimum width of at least one character.
This property enables you to apply CSS styles to the control when the program is run through AcuToWeb. The value of ATW-CSS-CLASS should represent a corresponding class in the current theme (that is, a .class-name entry in the cascading style sheet) deployed when you run your program through AcuToWeb. This property can be applied to more than one control in your program.
If both the ATW-CSS-CLASS and ATW-CSS-ID properties are specified for this control, and both correspond to the same style in the style sheet, the style specified by ATW-CSS-ID takes precedence.
See Cascading Style Sheet Syntax for more information about additional in-built styles in AcuToWeb.
This property enables you to apply CSS styles to the control when the program is run through AcuToWeb. The value of ATW-CSS-ID should represent a corresponding ID in the current theme (that is, a #class-name entry in the cascading style sheet) deployed when you run your program through AcuToWeb. The value of this property must be unique, and only applied to one control in your program.
If both the ATW-CSS-CLASS and ATW-CSS-ID properties are specified for this control, and both correspond to the same style in the style sheet, the style specified by ATW-CSS-ID takes precedence.
See Cascading Style Sheet Syntax for more information about additional in-built styles in AcuToWeb.
Methods are implemented as properties in ACUCOBOL-GT. To invoke a method, you modify the control, setting the values of various properties that represent the method parameters. Then, usually in the same modify statement, you set a particular property that represents the method to invoke. Sometimes just setting the value of a control invokes a method.
Here is a table of the methods with their corresponding ACUCOBOL-GT Web browser control properties and descriptions:
Method | Control property | Description |
---|---|---|
GoBack | GO-BACK | Navigates to the previous item in the history list |
GoForward | GO-FORWARD | Navigates to the next item in the history list |
GoHome | GO-HOME | Navigates to the current configured home or start page |
GoSearch | GO-SEARCH | Navigates to Microsoft's web portal site |
Navigate | VALUE | Navigates to a resource identified by a URL or file path |
Refresh | REFRESH | Reloads the current page |
StopBrowser | STOP-BROWSER | Stops any pending navigation or download |
To invoke the GoBack, GoForward, GoHome, GoSearch, Refresh, and StopBrowser methods, modify the control, setting the appropriate properties to 1. To invoke the Navigate method, modify the control setting the VALUE property to the desired URL. For example, to invoke the GoBack method:
MODIFY BROWSER-1 GO-BACK=1.
To invoke the Navigate method:
MODIFY BROWSER-1 VALUE="https://www.microfocus.com".
Alternatively, if you have defined the WEB-BROWSER control with value URL-1 in a screen section item called BROWSER-SCREEN:
MOVE "https://www.microfocus.com" to URL-1. DISPLAY BROWSER-SCREEN.
These methods are invoked asynchronously. This means that the MODIFY verb may finish executing before the operation is complete. You may check the value of the BUSY property (see below) to determine whether the operation has completed.