---
name: "d_textbox_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_textbox_proc"
---

# d\_textbox\_proc(3alleg)

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

## NAME

d\_textbox\_proc - Dialog procedure implementing a text box object. Allegro game programming library.

## SYNOPSIS

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

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

## DESCRIPTION

A text box object. The dp field points to the text which is to be  displayed in the box. If the text is long, there will be a vertical  scrollbar on the right hand side of the object which can be used to  scroll through the text. The default is to print the text with word  wrapping, but if the D\_SELECTED flag is set, the text will be printed  with character wrapping. The d1 field is used internally to store the  number of lines of text, and d2 is used to store how far it has scrolled  through the text.

## SEE ALSO

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