Skip to main content

SalQuickHTML

Namespace: PPJ.Runtime.Windows.QO

Assembly: PPJ.Runtime.50 (5.0.0.0)

Hosts an HTML browser with Quick Objects navigation methods and optional toolbars.

public class SalQuickHTML : SalUserControl

Example:

using PPJ.Runtime.Windows.QO;

var viewer = new SalQuickHTML();
viewer.HomePage = "https://example.com";
viewer.ShowAddressBar = true;

Constructors​

Instance member SalQuickHTML()​

Initializes the browser control and its toolbar components.

Properties​

Instance member AddressBar​

ToolStrip: Gets the toolbar containing the address input.

Instance member AllowBrowserDrop​

Boolean: Gets or sets the stored browser drag-and-drop preference. (Default: False)

The preference is applied during browser navigation processing where supported.

Instance member BrowserEmulation​

Int32: Gets or sets the browser emulation value for the current executable.

Values below 7000 are ignored. Assigning a new value updates the current user's FEATURE_BROWSER_EMULATION registry entry; registry failures are suppressed.

Instance member BrowserName​

String: Gets or sets the stored browser name compatibility value. (Default: "")

This property stores a value without applying it to the embedded browser.

Instance member FromName​

String: Gets or sets the stored sender identity compatibility value. (Default: "")

This property stores a value without applying it to the embedded browser.

Instance member HomePage​

String: Gets or sets the address loaded by GoHome. (Default: "")

Instance member LinkColor​

Int32: Gets or sets the stored unvisited-link color compatibility value.

This property stores a value without applying it to the embedded browser.

Instance member LinkFollowedColor​

Int32: Gets or sets the stored visited-link color compatibility value.

This property stores a value without applying it to the embedded browser.

Instance member LoadImages​

Boolean: Gets or sets the stored image-loading preference compatibility value. (Default: True)

This property stores a value without applying it to the embedded browser.

Instance member PageURL​

String: Gets or sets the stored page address compatibility value. (Default: "")

This property stores a value without applying it to the embedded browser.

Instance member ProxyPort​

Int32: Gets or sets the stored proxy port compatibility value. (Default: 0)

This property stores a value without applying it to the embedded browser.

Instance member ProxyServerName​

String: Gets or sets the stored proxy server name compatibility value. (Default: "")

This property stores a value without applying it to the embedded browser.

Instance member SaveDirectory​

String: Gets or sets the stored download directory compatibility value. (Default: "")

This property stores a value without applying it to the embedded browser.

Instance member SearchPage​

String: Gets or sets the address loaded by GoSearch. (Default: "")

Instance member ShowAddressBar​

Boolean: Gets or sets whether the address bar is visible. (Default: True)

Instance member ShowStatusBar​

Boolean: Gets or sets whether the status bar is visible. (Default: True)

Instance member ShowToolbar​

Boolean: Gets or sets whether the command toolbar is visible. (Default: True)

Instance member ShowToolbarBack​

Boolean: Gets or sets whether the Back button is visible. (Default: True)

Instance member ShowToolbarCopy​

Boolean: Gets or sets whether the Copy button is visible. (Default: True)

Instance member ShowToolbarCut​

Boolean: Gets or sets whether the Cut button is visible. (Default: True)

Instance member ShowToolbarForward​

Boolean: Gets or sets whether the Forward button is visible. (Default: True)

Instance member ShowToolbarHome​

Boolean: Gets or sets whether the Home button is visible. (Default: True)

Instance member ShowToolbarOpen​

Boolean: Gets or sets whether the Open button is visible. (Default: True)

Instance member ShowToolbarPaste​

Boolean: Gets or sets whether the Paste button is visible. (Default: True)

Instance member ShowToolbarRefresh​

Boolean: Gets or sets whether the Refresh button is visible. (Default: True)

Instance member ShowToolbarSearch​

Boolean: Gets or sets whether the Search button is visible. (Default: True)

Instance member ShowToolbarStop​

Boolean: Gets or sets whether the Stop button is visible. (Default: True)

Instance member Statusbar​

StatusBar: Gets the browser control's status bar.

Instance member Toolbar​

ToolStrip: Gets the toolbar containing navigation and editing commands.

Instance member UserAgent​

String: Gets or sets the embedded browser session's user-agent string.

Empty values are ignored. Assigning a different nonempty value updates URLMON session settings.

Instance member UserName​

String: Gets or sets the stored user name compatibility value. (Default: "")

This property stores a value without applying it to the embedded browser.

Instance member UserPassword​

String: Gets or sets the stored user password compatibility value. (Default: "")

This property stores a value without applying it to the embedded browser.

Instance member WebBrowser​

WebBrowser: Gets the embedded Windows Forms browser instance.

Methods​

Protected member Dispose(disposing)​

Detaches the application-idle handler and releases base control resources.

ParameterTypeDescription
disposingBooleanWhether managed resources are being disposed.

Extracts link destinations and labels from the current HTML source.

ParameterTypeDescription
sLinksSalArray<SalString>Receives the link destinations.
sTextSalArray<SalString>Receives the corresponding link labels.

Returns: SalNumber. The number of extracted links.

Instance member GetCurrentURL(sURL)​

Copies the cached current navigation address into a SAL string.

ParameterTypeDescription
sURL by referenceSalStringThe navigation address, or the output address for GetCurrentURL.

Returns: SalNumber. The cached address character count.

Instance member GetPageTitle(sTitle)​

Copies the document title into a SAL string.

ParameterTypeDescription
sTitle by referenceSalStringReceives the document title; unchanged by the Web implementation.

Returns: SalNumber. The title character count.

Instance member GetSource(sHTML)​

Copies the browser's HTML source into a SAL string.

ParameterTypeDescription
sHTML by referenceSalStringReceives the HTML source.

Returns: SalNumber. The source character count.

Instance member GetStatus()​

Reads the embedded browser's readiness state.

Returns: SalNumber. The numeric WebBrowserReadyState value.

Instance member GoHome()​

Loads the address configured in HomePage.

Returns: SalNumber. Zero after requesting navigation.

Instance member GoSearch()​

Loads the address configured in SearchPage.

Returns: SalNumber. Zero after requesting navigation.

Protected member OnLoad(e)​

Initializes the browser at runtime and sends QOM_ControlCreate.

ParameterTypeDescription
eEventArgsThe load event data.

Starts at about:blank when no address is set and subscribes to idle toolbar updates.

Instance member PageBackward()​

Requests the preceding page in browser history.

Returns: SalNumber. Zero.

Instance member PageCancel()​

Stops the current browser load.

Returns: SalNumber. Zero.

Instance member PageForward()​

Requests the following page in browser history.

Returns: SalNumber. Zero.

Instance member PageLoad(sURL)​

Requests navigation to an address.

ParameterTypeDescription
sURLSalStringThe navigation address, or the output address for GetCurrentURL.

Returns: SalNumber. Zero after requesting navigation.

Instance member PageOpen()​

Displays a file picker and loads the selected HTML, image, or XML file.

Returns: SalNumber. Zero, including when the file picker is canceled.

Instance member PageReload()​

Refreshes the current browser document.

Returns: SalNumber. Zero.

Instance member SetSource(sPath, sSource)​

Writes HTML into the current browser document.

ParameterTypeDescription
sPathSalStringReserved for compatibility; ignored.
sSourceSalStringThe HTML markup to display.

Returns: SalNumber. Zero after writing the HTML.

Requires an available document. The path argument is ignored.

Implements​

NameDescription
ISalWindowExposes SAL message dispatch and runtime metadata for child controls, forms, dialogs, and MDI windows.