Xbasic

{OVERLAY}

Syntax

{overlay=settings}

Arguments

settingsPointer

A dot variable that defines where the overlay is displayed and the content in the overlay window. The settings variable can have the following properties:

htmlCharacter

The HTML content to show in the overlay.

edgeCharacter

The edge of the control the Overlay is shown. Can be one of the following:

Description

Creates an HTML overlay.

Discussion

Floating 'overlay' windows can be added to Xdialog buttons, toolbars, etc, to add custom messages. The overlays are similar to bubble-help that you can define for toolbar buttons, Xdialog buttons, etc. except that the overlay content can be any HTML text and the overlay can be applied to any part of the Xdialog.

The Xdialog {overlay} directive is used to define an overlay. For example:

dim overlay1.html as c = <<%html%
<div style="margin: 0px; padding: 5px; border: 1px blue solid; border-radius:10px;">
This <b>combo</b> lets you pick a number on entries<br>
Your choices are one, two, three or four.
</div>
%html%

dim overlay2.html as c = <<%html%
This is the button that performs the action
%html%

dim item as c = "one"

ui_dlg_box("with_help",<<%dlg%
A Combo;
List {overlay=overlay1}[.60item^={one,two,three,four}];
{line=1};
{overlay=overlay2}
<&Do It...>
%dlg%)