Search found 449 matches

by raananb
Sun Jun 27, 2021 11:40 am
Forum: Platform Related Issues
Topic: AddCatalog in OSX 10.15.7
Replies: 7
Views: 4243

Re: AddCatalog in OSX 10.15.7

I rewrote a simple app (MyTrad) with the following code related to wxLocale: m_locale = new wxLocale(); m_locale->Init(wxLANGUAGE_FRENCH); m_locale->AddCatalog("mycatalog"); I then created three folders in Resources folder of MyTrad.app and copied mycatalog.mo into each folder in succession: fr.lpro...
by raananb
Sat Jun 26, 2021 8:36 pm
Forum: Platform Related Issues
Topic: AddCatalog in OSX 10.15.7
Replies: 7
Views: 4243

Re: AddCatalog in OSX 10.15.7

What I mean is very clear: in half a dozen applications French.lproj works, whether compiled now, that is with 3.1.5 or earlier. On one specific application 'French.lproj' must be renamed to 'fr.lproj' or to 'fr_FR.lproj' for translation to take place. A version of this application built in April 20...
by raananb
Sat Jun 26, 2021 1:44 pm
Forum: Platform Related Issues
Topic: AddCatalog in OSX 10.15.7
Replies: 7
Views: 4243

Re: AddCatalog in OSX 10.15.7

Changing 'French.lproj', to 'fr.lproj' or to fr_FR.lproj' in the .app folder (without modifying the program code) solved the problem, coherent with the lookup mechanism to locate the catalog. However, this does not explain why a different application, compiled under the same environment, gets the ex...
by raananb
Sun Jun 20, 2021 1:04 pm
Forum: Platform Related Issues
Topic: AddCatalog in OSX 10.15.7
Replies: 7
Views: 4243

Re: AddCatalog in OSX 10.15.7

My messages are translated using Poedit from French to English. My code: wxLog::AddTraceMask("i18n"); ret = m_locale = new wxLocale(); ret = m_locale->Init(); ret = m_locale->AddCatalog("mycatalog"); wxMessageBox(_("hello")); wxMessageBox(_("File")); AddCatalog not only does not find 'mycatalog', it...
by raananb
Sat Jun 19, 2021 12:17 pm
Forum: Platform Related Issues
Topic: AddCatalog in OSX 10.15.7
Replies: 7
Views: 4243

AddCatalog in OSX 10.15.7

An application which used to work correctly, recently stopped translating. I tried the sample of wxWidgets-3.1.5, and it works as expected. To try and understand, I used the code below, based on the sample. It works for Windows & Linux, but in OSX the catalog is not loaded: AddCatalog returns 'false...
by raananb
Sun Apr 04, 2021 9:17 am
Forum: C++ Development
Topic: treectrl unselect
Replies: 2
Views: 394

Re: treectrl unselect

doublemax is right.

Note that my problem was not actually related to the code.

The problem only happens when Visual Studio debugger breakpoints are set at the beginning of each of the sequences of the code above.

When the breakpoints are removed, the code operates as expected.
by raananb
Sun Apr 04, 2021 7:45 am
Forum: C++ Development
Topic: treectrl unselect
Replies: 2
Views: 394

treectrl unselect

How do I get a tree free of any selection? I have a wxTreeCtrl defined with wxTR_SINGLE and wxTR_HIDE_ROOT. After an item is selected I try tree->Unselect() (within a right click event) but this fires a wxEVT_TREE_SEL_CHANGED event, automatically selecting the first item in the tree, which is not wh...
by raananb
Mon Feb 22, 2021 3:51 pm
Forum: Platform Related Issues
Topic: OSX HTTP Failure
Replies: 6
Views: 2543

Re: OSX HTTP Failure

Problem went away after moving some code in the application (not the code relevant to http, though).

I cannot say the problem was solved, it just disappeared.

Thanks for looking into it.
by raananb
Sat Feb 20, 2021 4:30 pm
Forum: Platform Related Issues
Topic: OSX HTTP Failure
Replies: 6
Views: 2543

Re: OSX HTTP Failure

The async was an error on my part: the process is synchrone, so webview is not the right solution, and http is needed. What bugs me is that the same identical code is used in 4 other applications which do not crash when http->GetInputStream() is executed. I have tried to debug with LLDB, but could n...
by raananb
Fri Feb 19, 2021 11:04 pm
Forum: Platform Related Issues
Topic: OSX HTTP Failure
Replies: 6
Views: 2543

Re: OSX HTTP Failure

The webview sample works fine, but it does not contain GetInputStream()

Sorry.
by raananb
Fri Feb 19, 2021 12:55 pm
Forum: Platform Related Issues
Topic: OSX HTTP Failure
Replies: 6
Views: 2543

OSX HTTP Failure

The code below is an excerpt of a pretty large piece of code, which works with no problems under Windows and Linux but fails under OSX 10.15.7 (latest update check today 13h26), wxWidgets-3.1.4 It is designed to access (in async mode) the file 'PixNameLatestVersion' on 'www.pixname.com//pixname' int...
by raananb
Sat Feb 13, 2021 4:51 pm
Forum: C++ Development
Topic: wxStaticBoxSizer and label
Replies: 1
Views: 196

wxStaticBoxSizer and label

Is there a way to ensure that the label of a wxStaticBoxSizer is fully displayed and not trimmed?
by raananb
Sat Feb 06, 2021 8:05 am
Forum: C++ Development
Topic: Regain control
Replies: 4
Views: 290

Re: Regain control

Problem solved: at one point it was determined that the image should be scrolled, and this triggered a paint event which executed on each mouse event and did not let the mouse recapture the slider.

The scroll feature was dispensed with, and the problem disappeared.
by raananb
Fri Feb 05, 2021 10:30 pm
Forum: C++ Development
Topic: Regain control
Replies: 4
Views: 290

Re: Regain control

No luck with ReleaseMouse() : Assert failure : "Releasing mouse in %p(EnlargedPicture) but it is not captured".
by raananb
Fri Feb 05, 2021 8:05 pm
Forum: C++ Development
Topic: Regain control
Replies: 4
Views: 290

Regain control

The code extract below (generated by DialogBlocks) creates a dialog with a slider. The dialog displays a picture (directly on the dialog base), and the slider allows to zoom (see www.pixname.com/00/picture.jpg) When the dialog window is created, it displays a picture and the slider control is active...