Dimensions of Height and Width Arguments
Description
By default, the width of an Xdialog control (that has a width argument) is dimensioned in characters. The width of a single character is based on 8 point Arial font. Likewise, the height of an Xdialog control (that has a height argument) is dimensioned in lines. Again, the height of a line is based on 8 point Arial. Fractional decimal values are allowed for width and height arguments. The following two scripts produce similar dialog boxes.
dim employees[100] as C ' there are tab characters between the entries Names = <<%a% 1 Smith Fred Boston Programmer 2 Jones Jenny Boston Designer 3 Isaacs Hank Ithaca Programmer 4 Wayne Ira Boston Accounting 5 Perlow Peter Ithaca Developer %a% employees.initialize(names) result = ui_dlg_box("Employees",<<%dlg% Employees:; [.64,10selected^|1|1|1|2|2|employees] ; <*&OK> %dlg%)
You may optionally dimension both width and height arguments in inches by placing a double quote (") character after the number.
dim employees[100] as C ' there are tab characters between the entries Names = <<%a% 1 Smith Fred Boston Programmer 2 Jones Jenny Boston Designer 3 Isaacs Hank Ithaca Programmer 4 Wayne Ira Boston Accounting 5 Perlow Peter Ithaca Developer %a% employees.initialize(names) result = ui_dlg_box("Employees",<<%dlg% Employees:; [3.5",1.1"selected^|1|1|1|2|2|employees] ; <*&OK> %dlg%)