From: Eduardo DAVILA Date: Tue, 16 Jun 2020 21:00:45 +0000 (+0200) Subject: not center elements in ComboBox X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=eb02f1035398a204f0c612f6d32a526e11e8e63f;p=bbtk.git not center elements in ComboBox --- diff --git a/kernel/appli/bbi/bbi.cxx b/kernel/appli/bbi/bbi.cxx index 7918d19..c4729fc 100644 --- a/kernel/appli/bbi/bbi.cxx +++ b/kernel/appli/bbi/bbi.cxx @@ -24,9 +24,11 @@ # knowledge of the CeCILL-B license and that you accept its terms. # ------------------------------------------------------------------------ */ +//__asm__(".symver fcntl64,fcntl64@GLIBC_2.27"); #ifdef _USE_WXWIDGETS_ + #include //========================================================================== @@ -202,14 +204,12 @@ bool wxBBIApp::OnCmdLineParsed(wxCmdLineParser& parser) - - - //========================================================================== // The `main program' equivalent, creating the windows and returning the // main frame bool wxBBIApp::OnInit( ) { + //Borrame //FILE *ff; ff = fopen ("/tmp/wt.log","a+"); fprintf(ff,"EED wxBBIApp::OnInit\n"); fclose(ff); diff --git a/packages/wx/src/bbwxComboBox.cxx b/packages/wx/src/bbwxComboBox.cxx index 26d8e17..411d8db 100644 --- a/packages/wx/src/bbwxComboBox.cxx +++ b/packages/wx/src/bbwxComboBox.cxx @@ -155,7 +155,11 @@ void ComboBoxWidget::FillItems( int iSelection, std::vector< std::string > lstIn { int i,size=lstIn.size(); -// Patch to put spaces at the beginin + +#if defined(_WIN32) + // Patch to put spaces at the beginin +#else + // Patch to put spaces at the beginin int strLength=-1; // Looking for the longest string for (i=0 ;i lstIn len2 = strLength - lstIn[i].length(); for (ii=0;iiClear(); for (i=0;i