Search found 444 matches

by raananb
Sun Apr 04, 2021 9:17 am
Forum: C++ Development
Topic: treectrl unselect
Replies: 2
Views: 97

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: 97

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: 356

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: 356

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: 356

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: 356

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: 118

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: 174

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: 174

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: 174

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...
by raananb
Wed Feb 03, 2021 8:38 am
Forum: C++ Development
Topic: sizer and items placement
Replies: 2
Views: 148

Re: sizer and items placement

You are right. (Having slept over the question I came to the same conclusion)
by raananb
Tue Feb 02, 2021 8:32 pm
Forum: C++ Development
Topic: sizer and items placement
Replies: 2
Views: 148

sizer and items placement

A problem I have relates to loading items into a sizer dynamically. The first chunk of the code below creates sizer_Thumbnails and places two items in the first column: cb_MemoPix and cb_ClearMemoPix. This works fine. The loop which follows creates dynamically arrays of wxPictureButton and wxTextCtr...
by raananb
Tue Feb 02, 2021 10:45 am
Forum: C++ Development
Topic: wxGetClientDisplayRect() vs GetClientSize()
Replies: 2
Views: 149

wxGetClientDisplayRect() vs GetClientSize()

On my screen the two functions give slightly different value on Windows:

GetClientSize() gives 1900x1000

wxGetClientDisplayRect() gives 1920x1030

What is the point? Which one to use?
by raananb
Sat Oct 10, 2020 8:08 am
Forum: C++ Development
Topic: wxGetenv() underMSW
Replies: 2
Views: 231

Re: wxGetenv() underMSW

"USER" works under OSX, while Windows requires "USERNAME"...

Thanks.