---
name: "active_menu"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/active_menu"
---

# active\_menu(3alleg)

Global pointer to the most recent activated menu. Allegro game programming library.

## NAME

active\_menu - Global pointer to the most recent activated menu. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**extern MENU \*active\_menu;**

## DESCRIPTION

When a menu callback procedure is triggered, this will be set to the menu  item that was selected, so your routine can determine where it was called  from.

## SEE ALSO

, [**exgui**(3alleg)](/exgui/3alleg.md)
