SATGUI Examples
S@
Home SATGUI SATSHELL SATFORM SATFILTER SATREPORT SATMYSQL License Download Examples Contact

"SATADMIN: Activity Summary". This is the code used by the SATGUISVR to generate the "Activity Summary" display.

(See SATGUI Server Administration).

This example uses toolbar (with "Balloon Help" and "Action Confirmation Dialog"), disabled entry fields, radio buttons and user defined validations.

Sample Screen

Example SAT/DL

newScreen {{SATADMIN} 44x12}
addToolbar {flat
   {reload help(Refresh) main}
   {}
   {computer help(Connections) connections}
   {person help(Users) users}
   {list help(Profiles) profiles}
   {}
   {stop help(Stop_Server) confirm(Stop_Server) {stopserver stop_mode}}
}
addEntries {0,3 {8,18 {-Started 32} {-Users} {-Actions} {-Bytes}}}
addRadioButtons {Stop_Mode 30.5,5.8 {+Logout Kill} outline title}
addValidation {satadmin1 {^\[a-zA-Z0-9_\]+$}}
addValidation {satadmin2 {^\[a-zA-Z0-9_\]*$}}
All of the addToolbar options make use of the balloon help facility. The stop option ("Stop Server") also uses a confirm ("Action Confirmation Dialog"), which will pop-up when this option is selected containing the text: "Stop Server".

The addRadioButtons command demonstrates that the column/line postion of an item may have a decimal component. In this example the "Stop_Mode" Radio Buttons are positioned 30.5 characters from the left edge, and 5.8 lines from the top of the application screen.

The addValidation commands for "satadmin1" and "satadmin2" set up two validation patterns to be used by the "Profiles" and "Users" screens (See SATGUI Server Administration). Each of the patterns allow upper and lower case A-Z, numbers 0-9 and underscore. The "satadmin1" pattern requires that at least one character be entered, "satadmin2" allows the entry to be null.


Copyright © 2003 Adrian Davis.