MCPcopy Create free account
hub / github.com/apache/arrow / OnCreate

Method OnCreate

cpp/src/arrow/flight/sql/odbc/odbc_impl/ui/add_property_window.cc:82–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void AddPropertyWindow::OnCreate() {
83 int group_pos_y = MARGIN;
84 int group_size_y = width_ - 2 * MARGIN;
85
86 group_pos_y += INTERVAL + CreateEdits(MARGIN, group_pos_y, group_size_y);
87
88 int cancel_pos_x = width_ - MARGIN - BUTTON_WIDTH;
89 int ok_pos_x = cancel_pos_x - INTERVAL - BUTTON_WIDTH;
90
91 ok_button_ = CreateButton(ok_pos_x, group_pos_y, BUTTON_WIDTH, BUTTON_HEIGHT, L"Ok",
92 ChildId::OK_BUTTON, BS_DEFPUSHBUTTON);
93 cancel_button_ = CreateButton(cancel_pos_x, group_pos_y, BUTTON_WIDTH, BUTTON_HEIGHT,
94 L"Cancel", ChildId::CANCEL_BUTTON);
95 is_initialized_ = true;
96 CheckEnableOk();
97}
98
99int AddPropertyWindow::CreateEdits(int pos_x, int pos_y, int size_x) {
100 enum { LABEL_WIDTH = 30 };

Callers 1

WndProcMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected