Files
lba1-classic/LIB386/LIB_SYS/WINBOX.H
Gwen Gourevich c5f4f6ba25 Initial commit
2021-10-27 10:34:18 +02:00

70 lines
1.5 KiB
C
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#define SELECT_NO_FLAG 0
#define SELECT_SHOW_EXT 1
#define NO_FLAG 0
#define FLAG_PUSHED 0x0001
#define FLAG_RED 0x0002
#define FLAG_NO_PUSH 0x0004
#define FLAG_CENTRE 0x0100
#define FLAG_CONTOUR 0x0200
typedef struct { WORD X1 ; /* size/pos pixel box */
WORD Y1 ;
WORD X2 ;
WORD Y2 ;
WORD Handle ; /* info retourne si != -1 */
WORD Flags ; /* texte centr... */
UBYTE *PtrString ;
} T_CLICK_BOX ;
typedef struct { WORD NbBox ;
WORD MaxBox ;
WORD LastClicked ;
WORD LastSelected ;
T_CLICK_BOX *PtrMallocList ;
WORD Largeur ; /* en caractere */
WORD Hauteur ;
WORD X1 ;
WORD Y1 ;
WORD X2 ;
WORD Y2 ;
WORD Flags ;
} T_MENU ;
/*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*/
WORD OpenMenu( T_MENU *ptrmenu,
WORD largeur, WORD hauteur,
WORD maxbox ) ;
WORD AddButton( T_MENU *ptrmenu,
WORD handle,
WORD x1, WORD y1,
WORD largeur, WORD hauteur,
WORD flags,
UBYTE *ptrstring ) ;
void DrawMenu( T_MENU *ptrmenu, WORD x1, WORD y1 ) ;
WORD GereMenu( T_MENU *ptrmenu, WORD flagwaitclick ) ;
/*ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ*/
void ChangeButtonFlags( T_MENU *ptrmenu, WORD handle, WORD flags, WORD flagaff ) ;
WORD GetButtonFlags( T_MENU *ptrmenu, WORD handle ) ;
void ChangeButtonString( T_MENU *ptrmenu, WORD handle, UBYTE *string, WORD flagaff ) ;
UBYTE* GetButtonString( T_MENU *ptrmenu, WORD handle ) ;
/*ÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ*/