#ifndef _NEW_DIALOGS_H_
#define _NEW_DIALOGS_H_

typedef struct t_checkbox *p_checkbox;

typedef struct t_checkbox {
  struct t_view class;

  l_dword state;

  l_text  caption;

  l_color fcolor;

  l_dword message;

} t_checkbox;

#define CHECKBOX(o) ((p_checkbox)(o))

#define CB_CHECKED     0x01
#define CB_GREYED      0x02

extern p_checkbox (*checkbox_init) ( p_checkbox o, t_rect r, l_text caption, l_dword state, l_dword message );
p_checkbox _checkbox_init ( p_checkbox o, t_rect r, l_text caption, l_dword state, l_dword message );
#endif