#include <FL/Fl.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Box.H>

enum {
    spacing = 20,
    label_w = 100,
    input_w = 440,
    input_h = 55,
    hint_h = 35,

    hint_font_size = 16,
    input_font_size = 25,

    input_x = spacing + label_w,
    hint_y = spacing,
    normal_y = hint_y + hint_h + spacing,
    oval_y = normal_y + input_h + spacing,

    win_w = input_x + input_w + spacing,
    win_h = oval_y + input_h + spacing
};

int main()
{
    Fl_Window win(win_w, win_h, "Fl_Input box styles");

    Fl_Box hint(spacing, hint_y, win_w - 2 * spacing, hint_h,
                "Try typing, selecting and deleting text");
    hint.labelsize(hint_font_size);

    Fl_Input normal(input_x, normal_y, input_w, input_h, "Normal:");
    normal.textsize(input_font_size);
    normal.value("Hello world!");

    Fl_Input oval(input_x, oval_y, input_w, input_h, "Oval:");
    oval.box(FL_OFLAT_BOX);
    oval.color(FL_YELLOW);
    oval.textsize(input_font_size);
    oval.value("Hello world!");

    win.end();
    win.show();

    return Fl::run();
}
