1adime_d_button_proc(3)        Adime API Reference       adime_d_button_proc(3)
2
3
4

NAME

6       adime_d_button_proc
7

SYNOPSIS

9       #include <adime.h>
10
11
12       int adime_d_button_proc(int msg, DIALOG *d, int c)
13

DESCRIPTION

15       Similar  to Allegro´s `d_button_proc()´, but with 3d-ish style. It also
16       has a  slightly  different  behaviour:  Unlike  `d_button_proc()´,  the
17       D_EXIT  flag  has  no effect. Instead you need to set the `d1´ field to
18       one of the three constants:
19
20       ADIME_BUTTON_TOGGLE
21
22       The button behaves like a check  box,  i.e.  when  clicked  it  toggles
23       between being in and being out.
24
25       ADIME_BUTTON_EXIT
26
27       The button exits the dialog when clicked.
28
29       ADIME_BUTTON_CALLBACK
30
31       If  you  provide  a callback function in the dp2 field, then it will be
32       called whenever the button is clicked. This callback  should  have  the
33       form  `int my_callback(DIALOG *d)´, and its return value will be passed
34       back to the dialog manager.
35
36
37
38
39Adime                            version 2.2.1          adime_d_button_proc(3)
Impressum