⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 emenus.mnu

📁 SECS I, SECS II协议通讯源码
💻 MNU
📖 第 1 页 / 共 2 页
字号:
; Color menu button ids                                                    ss
const CB_EXIT = 0xc0
const CB_SAVE = 0xc1
const CB_USEOLD = 0xc2
const CB_USEDEFAULTS = 0xc3

; Edit menu button ids
const EB_CYCLE = 0xc0
const EB_DAY = 0xc1
const EB_DEL = 0xc2
const EB_INS = 0xc3
const EB_DOWN = 0xc4
const EB_LEFT = 0xc5
const EB_RIGHT = 0xc6
const EB_UP = 0xc7
const EB_CLEAR = 0xc8
const EB_ENTER = 0xc9
const EB_EXIT = 0xca
const EB_RUBOUT = 0xcb
const EB_SAVE = 0xcc
const EB_RESTORE = 0xcd
const EB_SPACE = 0xce

; Preset menu button ids
const MB_USEDEF = 0xc0
const MB_CLEAR = 0xc1
const MB_RUBOUT = 0xc2
const MB_EXIT = 0xc3
const MB_ENTER = 0xc4

; Password menu button ids
const PB_LOWEST = 0xc0
const PB_SHIFT = 0xc0
const PB_ENTER = 0xc1
const PB_CLEAR = 0xc2
const PB_RUBOUT = 0xc3
const PB_EXIT = 0xc4
const PB_SAVE = 0xc5
const PB_RESTORE = 0xc6
const PB_FACTORY = 0xc7
const PB_UP = 0xc8
const PB_DOWN = 0xc9
const PB_PAGE = 0xca


; Status display button ids
const SB_NEXT = 0xc0
const SB_LAST = 0xc1
const SB_METRIC = 0xc2
const SB_EXIT = 0xc3

; Verify menu button ids
const VF_YES = 0xc0
const VF_NO = 0xc1
const VF_QUIT = 0xc2

MENU mn_Verify {
     [ tx_BTQueryYes, VF_YES, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_veributton, null, null, null]
     [ tx_BTQueryNo, VF_NO, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_veributton, null, null, null]
     [ tx_BTQueryQuit, VF_QUIT, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_LASTITEM + MNF_NOPASSET, rn_veributton, null, null, null]
}
MENUREC mnr_Verify {
 [ mn_Verify, bt_Verify, 3, 0, 0, null, VerifyHandle, VerifyPaint ]
}

MENU mn_Query {
     [ tx_BTQueryYes, EB_ENTER, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTQueryNo, EB_CLEAR, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_LASTITEM + MNF_NOPASSET, rn_edibutton, null, null, null]
}
MENUREC mnr_Query {
 [ mn_Query, bt_Query, 2, 0, 0, null, null, EditMenuPaint ]
}


MENU mn_StatusDisplay {
     [ tx_BTNext, SB_NEXT, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, 0, rn_statusbutton, null, null, null]
     [ tx_BTLast, SB_LAST, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, 0, rn_statusbutton, null, null, null]
     [ tx_BTMetric, 0, VM_MODIFY, AM_BEEP, 0, MNP_FLOAT, 0 , rn_statusbutton, StatusDisplayMetric, null, metricmod]
     [ tx_BTExitMenu, SB_EXIT, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_LASTITEM + MNF_NOPASSET, rn_statusbutton, null, null, null]
}
MENUREC mnr_StatusDisplay {
     [ mn_StatusDisplay, bt_StatusDisplay, 4, 16, 0,
		StatusDisplayInit, StatusDisplayHandle, StatusDisplayPaint]
}

MENU mn_Autostart {
     [ tx_BTCycle, EB_CYCLE, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTDay, EB_DAY, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTDisabled, 0, VM_MODIFY, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, AutostartEnable, null, automod ]
     [ tx_BTDelete, EB_DEL, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTInsert, EB_INS, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTDown, EB_DOWN, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTUp, EB_UP, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTClear, EB_CLEAR, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTEnter, EB_ENTER, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTExit, EB_EXIT, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTRubout, EB_RUBOUT, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTSave, EB_SAVE, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTRestore, EB_RESTORE, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BT0, 0, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BTSpace, EB_SPACE, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null ]
     [ tx_BT1, 1, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BT2, 2, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BT3, 3, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BT4, 4, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BT5, 5, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BT6, 6, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BT7, 7, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BT8, 8, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_edibutton, null, null, null]
     [ tx_BT9, 9, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_LASTITEM + MNF_NOPASSET, rn_edibutton, null, null, null]
}
MENUREC mnr_Autostart {
 [ mn_Autostart, bt_Autostart, 24, 20, 0,
			AutostartInit, EditMenuHandle, EditMenuPaint ]
}

MENU mn_Preset {
     [ tx_BTStatusDisplay, 0, VM_MENU, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_status, null, null, mnr_StatusDisplay]
     [ tx_BTMenuBack, MB_EXIT, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_backmenu, null, null, null]
     [ tx_BT0, 0, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BT1, 1, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BT2, 2, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BT3, 3, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BT4, 4, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BT5, 5, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BT6, 6, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BT7, 7, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BT8, 8, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BT9, 9, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BTUseDefault, MB_USEDEF, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BTEnter, MB_ENTER, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_preset_button, null, null, null]
     [ tx_BTClear, MB_CLEAR, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_LASTITEM + MNF_NOPASSET, rn_preset_button, null, null, null]
}
MENUREC mnr_Preset {
 [ mn_Preset, bt_Preset, 15, 0, 0, null, PresetHandle, PresetPaint ]
}
MENUREC mnr_Timeset {
 [ mn_Preset, bt_Preset, 15, 0, 0, TimesetInit, TimesetHandle, TimesetPaint]
}

MENU mn_Password {
     [ tx_BTPage, PB_PAGE, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passclearexit, null, null, null ]
     [ tx_BTSave, PB_SAVE, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passclearexit, null, null, null ]
     [ tx_BTUp, PB_UP, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passclearexit, null, null, null ]
     [ tx_BTRestore2, PB_RESTORE, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passclearexit, null, null, null ]
     [ tx_BTDown, PB_DOWN, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passclearexit, null, null, null ]
     [ tx_BTFactory, PB_FACTORY, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passclearexit, null, null, null ]
     [ tx_BTEnter, PB_ENTER, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passclearexit, null, null, null]
     [ tx_BTRubout, PB_RUBOUT, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passclearexit, null, null, null]
     [ tx_BTClear, PB_CLEAR, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passclearexit, null, null, null]
     [ tx_BTExit, PB_EXIT, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passclearexit, null, null, null]
     [ tx_BTpw1, 0, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passbutton, null, null, null]
     [ tx_BTpw2, 1, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passbutton, null, null, null]
     [ tx_BTpw3, 2, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passbutton, null, null, null]
     [ tx_BTpw4, 3, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passbutton, null, null, null]
     [ tx_BTpw5, 4, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passbutton, null, null, null]
     [ tx_BTpw6, 5, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passbutton, null, null, null]
     [ tx_BTpw7, 6, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passbutton, null, null, null]
     [ tx_BTpw8, 7, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passbutton, null, null, null]
     [ tx_BTpw9, 8, VM_BLINK, AM_BEEP, 0, MNP_FLOAT, MNF_NOPASSET, rn_passbutton, null, null, null]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -