{TAB}

Syntax

{TAB=[%Directives%]Variable_Name[!Event_Name]}{PANE=Description1[?Condition1]} ... {PANE=Description2[?Condition2]} ... {PANE=DescriptionN[?ConditionN]} ... {ENDTAB}

Argument

Type

Description

%Directives%

C

Refer to Xdialog Language Directives and Operators.

Variable_Name

C

A variable that is set to the name of the current tab. You can also control which tab has initial focus by setting the value of Variable_Name before the dialog is open.

Event_Name

C

Optional. Refer to Event Syntax.

Description1 ... DescriptionN

C

The labels (and the names) of the tab pages.

Condition1 ... ConditionN

C

Optional. See Enabled Syntax.

Description

Tabbed dialogs allow you to organize your dialog into logical sections, and to pack a lot more information onto the dialog than a single dialog would allow.

Supported By

Alpha Five Version 5 and Above

Limitations

Desktop applications only

Example

The following script displays a dialog with a tab control: [Picture] [Picture]

dim a_card_type[100] as C

x = "American Express,Visa,Master Card,Discover"

a_card_type.initialize(stritran(x,",",crlf()))

dim a_expire_month[12] as C

x = "01,02,03,04,05,06,07,08,09,10,11,12"

a_expire_month.initialize(stritran(x,",",crlf()))

dim a_expire_year[10] as C

x = "2000,2001,2002,2003,2004,2005,2006,2007,2008,2009"

a_expire_year.initialize(stritran(x,",",crlf()))

page = "Billing"

result = ui_dlg_box("Title",<<%dlg%

{tab=page}

{pane=Billing}

{region}

First name:| [.32firstname] ;

Last name:| [.32lastname] ;

Address 1:| [.32address1] ;

Address 2:| [.32address2] ;

City:| [.32City] ;

State:| [State] ;

Zip:| [Zip]

{endregion};

{pane=Shipping}

{region}

First name:| [.32firstname] ;

Last name:| [.32lastname] ;

Address 1:| [.32address1] ;

Address 2:| [.32address2] ;

City:| [.32City] ;

State:| [State] ;

Zip:| [Zip]

{endregion};

{pane=Credit Card}

{region}

Card Type:| [.32card_type^=a_card_type] ;

Card Number:| [.32card_number] ;

Expiration:| [.4expiry_month^=a_expire_month] [.5expiry_year^=a_expire_year] ;

{endregion};

{endtab}|

{Region3}

 <10&OK>;

 <10&Cancel>

{Endregion3}

%dlg%)

See Also

Xdialog Commands, {PANE}