| SAT Demo2 Application - addhost |
|
| Home | SATGUI | SATSHELL | SATFORM | SATFILTER | SATREPORT | SATMYSQL | License | Download | Examples | Contact |
| Source Code |
newScreen {{"Add Host"} 67x12 add}
addEntries {1,1
{9,15 {Host focus alphanum} {Serial_No} {Company} {Model} {OS}}
{11,8 {Processors int} {Speed_MHz int} {Memory_Mb int} {} {IP_Address 16 ip}}
}
unlock
| Comments |
This SAT/DL screen adds a new host to the demo database.
Called by: Menubar option.
newScreen {{"Add Host"} 67x12 add}
Clear the screen/message line, set the application screen size to 67 characters by 12 rows,
set the window title to "Add Host", and set the current Group to add.
addEntries {1,1
{9,15 {Host focus alphanum} {Serial_No} {Company} {Model} {OS}}
{11,8 {Processors int} {Speed_MHz int} {Memory_Mb int} {} {IP_Address 16 ip}}
}
Add two columns of entry fields with its top left corner at column 1, row 1.
The first column has a label text width of 9 characters and a default entry width of
15 characters. The second column has a label text width of 11 characters and
a default entry width of 8 characters.
The first entry has the focus and alphanum options set. The cursor will appear in this entry, which will be validated to check if the contents are alphanumeric (alphanum). The remaining three entries in the first column will accept any data. The first four entries in the second column have the int option set. These entries will be validated to check that the contents are an integer. The fourth entry is null, which leaves a one entry gap in the column. The last ("IP_Address") entry in the second column has an integer as the first option, which will override the default entry width. In this case it is set to 16 characters. The ip option will validate the entry to check that the contents match the pattern for an IP Address.
unlockAs this screen doesn't have a process which returns data immediately, it is necessary to explicitly unlock the display.