-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
41 lines (30 loc) · 882 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <typeinfo>
#include <string>
#include <vector>
#include <algorithm>
#include <FL/Fl.H>
#include <FL/Fl_Group.H>
#include <FL/Fl_Window.H>
#include <FL/Fl_Box.H>
#include <FL/Fl_Output.H>
#include <FL/Fl_Input.H>
#include <FL/Fl_Button.H>
#include <FL/Fl.H>
#include <FL/fl_draw.H>
#include "flx/flx_widgets.h"
#include "flx/grid.h"
using namespace std;
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
int main (int argc, char ** argv) {
Fl::scheme("gtk+");
Flx_Window* pWin = new Flx_Window(200, 200);
Flx_Button* pBtn = new Flx_Button("button to click", 0, 0);
pBtn->setPaddingHorizontal(5);
pBtn = new Flx_Button("another button", 0, 1);
pBtn->setPaddingHorizontal(10, 5);
pBtn = new Flx_Button("button in second row", 1, 0);
pBtn->setPaddingHorizontal(5);
pWin->end();
pWin->show (argc, argv);
return(Fl::run());
}