Skip to content

Instantly share code, notes, and snippets.

@silv3rm00n
Created January 28, 2012 14:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save silv3rm00n/1694544 to your computer and use it in GitHub Desktop.
Save silv3rm00n/1694544 to your computer and use it in GitHub Desktop.
void logger::init_ui()
{
//Now create panel
wxPanel *panel = new wxPanel( this , ::wxNewId() );
//btn_trace->SetToolTipString(_("Click to get whois information for the domain name."));
txt_log = new wxTextCtrl(panel , -1 , _("") , wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE);
//Add the input field and submit button to a Box Sizer since the must stay together
wxBoxSizer *space = new wxBoxSizer(wxHORIZONTAL);
//Non expandable and align to right
space->Add( txt_log , 1);
panel->SetSizer(space);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment