-
Notifications
You must be signed in to change notification settings - Fork 0
/
wWxPanel.cpp
39 lines (30 loc) · 1.31 KB
/
wWxPanel.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
#include "wWxPanel.h"
WwXPanel::WwXPanel(wxFrame* frame, int x, int y, int w, int h) : wxPanel(frame, wxID_ANY, wxPoint(x, y), wxSize(w, h))
{
label_ = new wWxTextControl(this, wxID_ANY, "Please Enter Area Name",
wxPoint(50, 18), wxDefaultSize,
wxWS_EX_PROCESS_IDLE);
label_->SetSize(200, 20);
// single line text controls
location_ = new wWxTextControl(this, wxID_ANY, "",
wxPoint(50, 40), wxDefaultSize,
wxTE_PROCESS_ENTER);
location_->SetForegroundColour(*wxBLUE);
location_->SetBackgroundColour(*wxLIGHT_GREY);
//(*m_location) << " Appended.";
// m_location->SetInsertionPoint(0);
// m_location->WriteText( "Prepended. " );
location_->SetSize(200, 20);
data_ = new wWxTextControl(this, wxID_ANY, "",
wxPoint(50, 90), wxDefaultSize);
data_->SetHint("Temp");
//m_data->SetMaxLength(8);
wxSize size2 = data_->GetSizeFromTextSize(data_->GetTextExtent("WWWWWWWWWWWWWWW"));
data_->SetSizeHints(size2, size2);
button_ = new WwxButton(this, wxID_ANY, "Find", wxPoint(250, 40), wxDefaultSize);
// lay out the controls
wxBoxSizer* column1 = new wxBoxSizer(wxVERTICAL);
column1->Add(location_, 0, wxALL | wxEXPAND, 10);
column1->Add(data_, 0, wxALL | wxEXPAND, 10);
column1->Add(button_, 0, wxALL | wxEXPAND, 10);
}