Spin Control Syntax
Syntax
[%[Z]SMinimum,Maximum[,Increment]%.Width Spin]
Note: You must not have any space characters in the finished command.
Argument |
Type |
Description |
| Z | C |
Suppresses the display of zero entries. |
Minimum |
N |
The minimum value that can be set. |
| Maximum | N |
The maximum value that can be set |
| Increment | N |
Optional. Default = 1. The amount that the number displayed changes by. |
| Width | N |
The width of the control. |
| Spin | N |
The numeric variable that contains the current value of the control. |
Description
The Spin Control increments or decrements a counter. One or more Spin controls may appear inside the Format section of a UI_DLG_BOX() or UI_MODELESS_DLG_BOX() function. The developer should initialize the Spin variable to a value between Minimum and Maximum.
Example
Tbl = table.current() Original_Filename = tbl.filename_get() Tbl = table.reset("clients") spin = 1 date1 = date() number = 345.23 url = "http://www.alphasoftware.com" email = "president@alphasoftware.com" result=ui_dlg_box("Smart Fields",<<%dlg% {ysize=2} {region1} This script demonstrates several kinds of "smart fields".; {endregion1}; {region=a} Filename:| [%fText files(*.txt)|Doc files(*.doc)%.52filename]; {lf}; Spin:| [%z;s1,10%.32spin]; {lf}; Field:| [%d%.32field]; {endregion}; The next smart fields are "user defined" smart fields.; {region=a} Path:| [%p=ui_get_path("Enter Path","c: ","c:\windows\ ");I=$a5_folder%.30path]; {lf}; Date:| [%P=popup.calendar(dtoc(date1));I=popup.calendar%.30date1]; {lf}; Number: | [%P=popup.calculator(number);I=popup.calculator%.30number]; {lf}; URL: | [%p=popup.url(url);i=popup.url%.50url]; {lf}; Email_A5: | [%p=popup.email_a5(email);i=popup.email%.50email] \(using Alpha Five mail client); {lf}; Email: | [%p=popup.email(email);i=popup.email%.50email] \(using default mail client); {endregion}; <*15&OK>; %dlg% ) table.reset(original_filename) |
See Also
Xdialog Language Directives and Operators, Xdialog Control Reference
Supported By
Alpha Five Version 5 and Above