Skip to content

Commit

Permalink
Clarify scrolling submenu behavior
Browse files Browse the repository at this point in the history
These are observations and tests based on Atari's AES 4.1 and their own
newsletter article on menu_popup().

One can make an attached submenu scroll, it would look weird with a
scrollbar and Atari clearly knew this.

N.AES mimics this behavior exactly.

Contributed by Lonny Pursell.
  • Loading branch information
mikrosk committed Jul 6, 2024
1 parent efebc2d commit 1ce855f
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions gem/aes/structures/menu.ui
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
!begin_verbatim
typedef struct
{
OBJECT *mn_tree; /* The object tree of the menu */
int16_t mn_menu; /* The parent object of the menu items */
int16_t mn_item; /* The starting menu item */
int16_t mn_scroll; /* The scroll field status of the menu: */
/* 0 - The menu will not scroll */
/* >0 - The menu will scroll */
int16_t mn_keystate; /* The [CTRL], [ALT], [SHIFT] key state at */
/* the time the mouse button was pressed */
OBJECT *mn_tree; /* The object tree of the menu */
int16_t mn_menu; /* The parent object of the menu items */
int16_t mn_item; /* The starting menu item */
int16_t mn_scroll; /* The scroll field status of the menu: */
/* 0 - The menu will not scroll */
/* >0 - The menu will scroll (no scrollbar) */
/* -1 - The menu will scroll (with scrollbar) */
int16_t mn_keystate; /* The [CTRL], [ALT], [SHIFT] key state at */
/* the time the mouse button was pressed */
} MENU;
!end_verbatim

Expand Down

0 comments on commit 1ce855f

Please sign in to comment.