Program: bbtk
Module: $RCSfile: bbtkWxGUICommand.cxx,v $
Language: C++
- Date: $Date: 2008/03/20 09:51:29 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/04/24 12:56:39 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
sizerCommand->Add(mwxTextCommand,1,wxGROW);
sizerCommand->Add(btnGo);
- sizer->Add(sizerCommand,0,wxLEFT | wxRIGHT | wxBOTTOM | wxGROW, 10 );
+ sizer->Add(sizerCommand,0,wxGROW);
wxBoxSizer *btnsSizer = new wxBoxSizer(wxHORIZONTAL);
btnsSizer->Add( btnGraphD );
btnsSizer->Add( btnHelp );
- sizer->Add(btnsSizer,0,wxLEFT | wxRIGHT | wxBOTTOM | wxGROW, 10 );
+ sizer->Add(btnsSizer,0,wxTOP|wxGROW, 10 );
SetSizer(sizer);
if (command.length()==0) return;
mwxTextCommand->SetValue(_T(""));
- mwxTextCommand->Append(command);
+ mwxTextCommand->Append(std2wx(command));
if (mUser) mUser->WxGUICommandEnter(command);
}
// std::string command(_T("include "));
// std::string pathfilename = (const char *)(dialog.GetFilename().mb_str());
std::string command("include ");
- command += wx2std(dialog.GetPath());
+ command = command + "\"" + wx2std(dialog.GetPath()) + "\"";
SendCommand(command);
}
}