-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathTextBox.cpp
More file actions
36 lines (29 loc) · 687 Bytes
/
Copy pathTextBox.cpp
File metadata and controls
36 lines (29 loc) · 687 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
#include <gtkmm.h>
using namespace Glib;
using namespace Gtk;
class Form : public Window {
public:
Form() {
add(scrolledWindow);
scrolledWindow.add(fixed);
textBox1.set_text("textBox1");
fixed.add(textBox1);
fixed.move(textBox1, 10, 10);
textBox2.set_text("textBox2");
fixed.add(textBox2);
fixed.move(textBox2, 10, 50);
set_title("TextBox example");
resize(300, 300);
show_all();
}
private:
Fixed fixed;
ScrolledWindow scrolledWindow;
Entry textBox1;
Entry textBox2;
};
int main(int argc, char* argv[]) {
RefPtr<Application> application = Application::create(argc, argv);
Form form;
return application->run(form);
}