source: xtideuniversalbios/trunk/Assembly_Library/Inc/MenuEvents.inc@ 53

Last change on this file since 53 was 48, checked in by Tomi Tilli, 14 years ago

Changes to Assembly Library:
Added functions to clear Menu Title and Information areas.
Implemented automatic line change when writing Menu Title and Information areas.
CGA snow related functions have been moved to CgaSnow.asm.
Keyboard input functions no longer produce beep for backspace.

File size: 1.7 KB
RevLine 
[41]1; File name : MenuEvents.inc
2; Project name : Assembly Library
3; Created date : 13.7.2010
[48]4; Last update : 5.10.2010
[41]5; Author : Tomi Tilli
6; Description : Defines for Menu events send to the user.
7%ifndef MENUEVENTS_INC
8%define MENUEVENTS_INC
9
10;--------------------------------------------------------------------
11; Events to be processed in user implemented handler.
12; Common parameters for all events:
13; BX: Menu event (anything from MENUEVENT struct)
14; SS:BP: Menu library handle
15; Common return values for all events:
16; CF: Set if event processed
17; Cleared if event not processed
18; Corrupts registers:
19; All
20;--------------------------------------------------------------------
21struc MENUEVENT
22 ; Parameters:
23 ; DS:SI: Ptr to MENUINIT struct to initialize
24 ; Returns:
25 ; DS:SI: Ptr to initialized MENUINIT struct
26 .InitializeMenuinitFromDSSI resb 2
27
28 ; Parameters:
29 ; None
30 .ExitMenu resb 2
31
32 ; Parameters:
33 ; None
34 .IdleProcessing resb 2
35
36 ; Parameters:
37 ; CX: Index of new highlighted item
38 ; DX: Index of previously highlighted item or NO_ITEM_HIGHLIGHTED
39 .ItemHighlightedFromCX resb 2
40
41 ; Parameters:
42 ; CX: Index of selected item
43 .ItemSelectedFromCX resb 2
44
45 ; Parameters:
46 ; AL: ASCII character for the key
47 ; AH: Keyboard library scan code for the key
48 .KeyStrokeInAX resb 2
49
50 ; Parameters:
[48]51 ; CX: Index of highlighted item
52 ; Cursor has been positioned to the beginning of first line
[41]53 .RefreshTitle resb 2
54 .RefreshInformation resb 2
55
56 ; Parameters:
57 ; CX: Index of item to refresh
58 ; Cursor has been positioned to the beginning of item line
59 .RefreshItemFromCX resb 2
60endstruc
61
62
63%endif ; MENUEVENTS_INC
Note: See TracBrowser for help on using the repository browser.