1d_edit_proc(3)                  Allegro manual                  d_edit_proc(3)
2
3
4

NAME

6       d_edit_proc  -  Dialog  procedure implementing an editable text object.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int d_edit_proc(int msg, DIALOG *d, int c);
14

DESCRIPTION

16       An editable text object (the dp field points to the  string).  When  it
17       has  the  input focus (obtained by clicking on it with the mouse), text
18       can be typed into this object. The d1 field specifies the maximum  num‐
19       ber  of characters that it will accept, and d2 is the text cursor posi‐
20       tion within the string.
21
22       Note: dp must point to a buffer at least  (d1  +  1)  *  4  bytes  long
23       because,  depending  on  the encoding format in use, a single character
24       can occupy up to 4 bytes and room must be reserved for the  terminating
25       null character.
26
27

SEE ALSO

29       excustom(3), exgui(3)
30
31
32
33Allegro                          version 4.2.2                  d_edit_proc(3)
Impressum