git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31329
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
switch ( text[pos] )
{
case wxT('\n'):
switch ( text[pos] )
{
case wxT('\n'):
{
wxStaticText *s = new wxStaticText( this, wxID_ANY, line );
box->Add( s );
{
wxStaticText *s = new wxStaticText( this, wxID_ANY, line );
box->Add( s );
}
// remaining text behind last '\n'
}
// remaining text behind last '\n'
{
wxStaticText *s2 = new wxStaticText( this, wxID_ANY, line );
box->Add( s2 );
{
wxStaticText *s2 = new wxStaticText( this, wxID_ANY, line );
box->Add( s2 );
{
wxStdDialogButtonSizer *sizer = new wxStdDialogButtonSizer();
wxButton *ok = NULL;
{
wxStdDialogButtonSizer *sizer = new wxStdDialogButtonSizer();
wxButton *ok = NULL;
- wxButton *cancel = NULL;
wxButton *yes = NULL;
wxButton *no = NULL;
wxButton *yes = NULL;
wxButton *no = NULL;
- wxButton *help = NULL;
-
- ok = new wxButton(this, wxID_OK, _("OK"));
- sizer->AddButton(ok);
+ ok = new wxButton(this, wxID_OK, _("OK"));
+ sizer->AddButton(ok);
- cancel = new wxButton(this, wxID_CANCEL, _("Cancel"));
- sizer->AddButton(cancel);
+ wxButton *cancel = new wxButton(this, wxID_CANCEL, _("Cancel"));
+ sizer->AddButton(cancel);
- yes = new wxButton(this, wxID_YES, _("Yes"));
- sizer->AddButton(yes);
+ yes = new wxButton(this, wxID_YES, _("Yes"));
+ sizer->AddButton(yes);
- no = new wxButton(this, wxID_NO, _("No"));
- sizer->AddButton(no);
+ no = new wxButton(this, wxID_NO, _("No"));
+ sizer->AddButton(no);
- help = new wxButton(this, wxID_HELP, _("Help"));
- sizer->AddButton(help);
+ wxButton *help = new wxButton(this, wxID_HELP, _("Help"));
+ sizer->AddButton(help);
if (flags & wxNO_DEFAULT)
{
if (no)
if (flags & wxNO_DEFAULT)
{
if (no)