---
name: "d_button_proc"
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/d_button_proc"
---

# d\_button\_proc(3alleg)

Dialog procedure implementing a button object. Allegro game programming library.

## NAME

d\_button\_proc - Dialog procedure implementing a button object. Allegro game programming library.

## SYNOPSIS

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

**int d\_button\_proc(int msg, DIALOG \*d, int c);**

## DESCRIPTION

A button object (the dp field points to the text string). This object can  be selected by clicking on it with the mouse or by pressing its keyboard  shortcut. If the D\_EXIT flag is set, selecting it will close the dialog,  otherwise it will toggle on and off. Like d\_text\_proc(), ampersands can  be used to display the keyboard shortcut of the button.

## SEE ALSO

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