Button B Directive

Syntax

%B= X %

Arguments

X

Character. The border style of the button. The default is the normal button style.

Description

The B directive sets the border style for a button.  When you have multiple directives in a Format string, you separate them with semi-colons ";".

Example 

The following example shows different border styles.

ui_dlg_box("Button Styles", <<%dlg%
{xmargin=5}
{ymargin=2}
{xpad=5}
{frame=1,1}{region}{'Left and top aligned with raised OnFlyover border}|{justify=right}<%B=F%15,2Button1>{endregion};
{frame=1,1}{region}{'Standard border}|{justify=right}<%M=F%15,2Button2>{endregion};
{frame=1,1}{region}{'Left and top aligned with no border}|{justify=right}<%B=N%15,2Button3>{endregion};
{frame=1,1}{region}{'Button with Shaded OnFlyover border}|{justify=right}<%B=T%15,2Button4>{endregion};
%dlg%, <<%code%
if (a_dlg_button="Button1") then
    a_dlg_button=""
end if
if (a_dlg_button="Button2") then
    a_dlg_button=""
end if
if (a_dlg_button="Button3") then
    a_dlg_button=""
end if
if (a_dlg_button="Button4") then
    a_dlg_button=""
end if
%code%)

The following example creates an invisible button (a hot spot) that is one line high and one character wide.

ui_dlg_box("Sample",<<%dlg%
...
<%B=N%1,1!hide_button_click>
...
%dlg%,<<%code%
if a_dlg_button = "hide_button_click"
    ' the action you want for the "hotspot"
    a_dlg_button = ""
end if
%code%)

See Also