---
name: "d_check_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_check_proc"
---

# d\_check\_proc(3alleg)

Dialog procedure implementing a check box object. Allegro game programming library.

## NAME

d\_check\_proc - Dialog procedure implementing a check box object. Allegro game programming library.

## SYNOPSIS

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

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

## DESCRIPTION

This is an example of how you can derive objects from other objects. Most  of the functionality comes from d\_button\_proc(), but it displays itself  as a check box. If the d1 field is non-zero, the text will be printed to  the right of the check, otherwise it will be on the left.

Note: the object width should allow space for the text as well as the check box (which is square, with sides equal to the object height).

## SEE ALSO

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