Specifications
Section 10. Custom Keyboard Display Menus
10-2
'Define Custom Menu:
DisplayMenu ("Example Custom Menu",1)
SubMenu("Current Temperatures")
DisplayValue("Panel Temp",Tpnl)
DisplayValue("TC 1",Ttc(1))
DisplayValue("TC 2",Ttc(2))
EndSubMenu
SubMenu("Last 1 Min. Averages")
DisplayValue("Panel Temp",Temp.Tpnl_Avg(1,1))
DisplayValue("TC 1",Temp.Ttc_Avg(1,1))
DisplayValue("TC 2",Temp.Ttc_Avg(2,1))
EndSubMenu
SubMenu ("Play with Down Count")
MenuItem ("Enable",CountFlag)
MenuPick (Yes,No) 'Create a pick list with constants
MenuItem("Down Count",Counter)
MenuPick(15,30,45,60) 'Create a pick list for Counter
'While the counter can be reloaded with the above menu item,
'using a sub menu allows slightly more descriptive text:
SubMenu("Reload Down Counter")
MenuItem("Pick Count",Counter)
MenuPick(15,30,45,60) 'Create a pick list for Counter
MenuItem("Enter No.",Counter) 'no pick list = user enters #
EndSubMenu
EndSubMenu
EndMenu
'Main Program
BeginProg
Scan (1,Sec,3,0)
PanelTemp (Tpnl,250)
TCDiff (Ttc(),2,mV20C ,1,TypeT,Tpnl,True ,0,250,1.0,0)
If CountFlag Then
Counter=Counter-1
If Counter <=0 Then Counter=0
EndIf
CallTable Temp
NextScan
EndProg
DisplayMenu/EndMenu
Syntax:
DisplayMenu ("MenuName", AddtoSystem)
menu definition (DisplayValue, MenuItem, and SubMenu)
EndMenu
The DisplayMenu/EndMenu instructions are used to mark the beginning and
ending of a custom menu. The DisplayValue, MenuItem, and
SubMenu/EndSubMenu instructions are used to define what will be
displayed in the custom menu.