-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathGroupBox.cpp
More file actions
38 lines (31 loc) · 795 Bytes
/
GroupBox.cpp
File metadata and controls
38 lines (31 loc) · 795 Bytes
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
#include <gtkmm.h>
using namespace Glib;
using namespace Gtk;
class Form : public Window {
public:
Form() {
add(scrolledWindow);
scrolledWindow.add(fixed);
groupBox1.set_label("GroupBox 1");
fixed.add(groupBox1);
fixed.move(groupBox1, 10, 10);
groupBox1.set_size_request(305, 460);
groupBox2.set_label("GroupBox 2");
fixed.add(groupBox2);
fixed.move(groupBox2, 325, 10);
groupBox2.set_size_request(305, 460);
set_title("GroupBox example");
resize(640, 480);
show_all();
}
private:
Fixed fixed;
ScrolledWindow scrolledWindow;
Frame groupBox1;
Frame groupBox2;
};
int main(int argc, char* argv[]) {
RefPtr<Application> application = Application::create(argc, argv);
Form form;
return application->run(form);
}