Search found 10660 matches

by doublemax
Thu Mar 30, 2017 11:33 am
Forum: C++ Development
Topic: enabling only one button with disabled parent [SOLVED]
Replies: 2
Views: 12

Re: enabling only one button with disabled parent [SOLVED]

I don't think so. You probably have to do it "the hard way". Which is not really *that* hard, as you can just iterate over the list of children returned by wxWindow::GetChildren().
by doublemax
Thu Mar 30, 2017 9:19 am
Forum: C++ Development
Topic: Problem with wxRearrangeList
Replies: 7
Views: 49

Re: Problem with wxRearrangeList

But the item array and the int array for the sort order are out of sync, that can only lead to problems. In a release-build this would probably crash the program.
by doublemax
Thu Mar 30, 2017 8:42 am
Forum: C++ Development
Topic: Problem with wxRearrangeList
Replies: 7
Views: 49

Re: Problem with wxRearrangeList

Do you think it is bad code if i recreate the list each time i add something ?
Usually it would be, but i just looked through the public API of the control and i don't see any other workaround.

I will open a bug report for this.
by doublemax
Thu Mar 30, 2017 8:22 am
Forum: C++ Development
Topic: Problem with wxRearrangeList
Replies: 7
Views: 49

Re: Problem with wxRearrangeList

That looks like a bug in the control. Apparently when adding items, nothing is added to the wxArrayInt that is used for the item order.

Sorry for recommending a control that's unusable :(
by doublemax
Thu Mar 30, 2017 7:47 am
Forum: Component Writing
Topic: Efficient way of display thumbnails
Replies: 14
Views: 2521

Re: Efficient way of display thumbnails

I would probably build something myself based on wxHVScrolledWindow.
http://docs.wxwidgets.org/trunk/classwx ... indow.html
by doublemax
Wed Mar 29, 2017 10:49 pm
Forum: Compiler / Linking / IDE Related
Topic: Building wxWidgets 3.0.2 errors
Replies: 12
Views: 105

Re: Building wxWidgets 3.0.2 errors

Try without the -jx for now. This is just an unnecessary potential error source.

Besides: Using a MinGW version that is newer than the wxWidgets version is always critical. Use the known-to-work TDM-GCC 5.1.0 or the latest wxWidgets version from GIT.
by doublemax
Wed Mar 29, 2017 7:44 pm
Forum: Platform Related Issues
Topic: Windows 7: UCS-2 or UTF-16? The Real Scoop?
Replies: 1
Views: 13

Re: Windows 7: UCS-2 or UTF-16? The Real Scoop?

It's been a while since i touched this problem and my memory is a little shady, so take everything i say with a grain of salt. wxWidgets doesn't handle surrogate pairs, so accessing individual characters of such a string can lead to wrong results. However, as long as you take the string as a whole, ...
by doublemax
Wed Mar 29, 2017 7:30 pm
Forum: Compiler / Linking / IDE Related
Topic: Building a project on ubuntu - will not link - undefined reference
Replies: 1
Views: 20

Re: Building a project on ubuntu - will not link - undefined reference

wxTrap() should not be visible in release mode. This looks like the libs were built in release mode, but the application uses debug mode.
by doublemax
Wed Mar 29, 2017 7:26 pm
Forum: C++ Development
Topic: wxEventHanlder blocks other event handlers?
Replies: 4
Views: 45

Re: wxEventHanlder blocks other event handlers?

kshamkhany wrote:Does this loop handle ALL events of the classes/objects that derive wxEventHandler in my code?
Yes. Usually there is only one active event loop at any given time.

In general, i think socket related stuff is easier to handle in secondary threads anyway. IMHO it makes the logic much simpler.
by doublemax
Wed Mar 29, 2017 4:32 pm
Forum: C++ Development
Topic: wxEventHanlder blocks other event handlers?
Replies: 4
Views: 45

Re: wxEventHanlder blocks other event handlers?

The event loop is single-threaded. If the main thread waits, everything else stops unless it's in a worker thread.
by doublemax
Wed Mar 29, 2017 9:02 am
Forum: C++ Development
Topic: wxWidgets behaviour different on 2 computers? [SOLVED]
Replies: 6
Views: 52

Re: wxWidgets behaviour different on 2 computers? [SOLVED]

you should not use explicit sizes and positions, but use sizer-based layout.
This is probably the main problem. I guess the other computer you tested on had a different font scaling and therefore the hard-coded sizes were too small and you ended up with scrollbars.
by doublemax
Wed Mar 29, 2017 8:57 am
Forum: C++ Development
Topic: Is it wxHtml Bug that H3-H6 changes text decoration?
Replies: 2
Views: 30

Re: Is it wxHtml Bug that H3-H6 changes text decoration?

Code: Select all

<h4>Header 4</h2>Something normal text H4
<p>Para H4</p>
<h5>Header 5</h2>Something normal text H5
<p>Para H5</p>
<h6>Header 6</h2>Something normal text H6
The closing tags are wrong (all </h2>)
by doublemax
Tue Mar 28, 2017 6:00 pm
Forum: Platform Related Issues
Topic: Cannot load specific DLL from System32 or SysWOW64 [SOLVED]
Replies: 3
Views: 62

Re: Cannot load specific DLL from System32 or SysWOW64 [SOLVED]

As i don't know if i find time to test this myself: Are all test executables and DLLs involved 32bit? If not, which ones are 64bit? Use "procmon" or a similar tool to check where the system is looking for the DLL. Maybe it's looking where you don't expect it. What's the Windows error code ...
by doublemax
Sun Mar 26, 2017 2:30 pm
Forum: C++ Development
Topic: MDI and modal dialogs
Replies: 4
Views: 55

Re: MDI and modal dialogs

I'm afraid if you want that kind of behavior, you'll have to implement it yourself. That shouldn't be too hard though, catch the wxEVT_MOVE event and check if the dialog is outside its parents bounds.
by doublemax
Sun Mar 26, 2017 1:41 pm
Forum: C++ Development
Topic: MDI and modal dialogs
Replies: 4
Views: 55

Re: MDI and modal dialogs

That seems normal to me and i also don't see any problem from a GUI point of view.

Go to advanced search