Search found 11282 matches

by doublemax
Wed Sep 20, 2017 4:18 pm
Forum: C++ Development
Topic: wxDynamicLibrary Load used to work
Replies: 17
Views: 184

Re: wxDynamicLibrary Load used to work

But we are talking here about OS compatibility, right? Which means that this will not be picked up on the current session and reboot is required. I don't have an official source, but i don't think a reboot is required. Because if you change this setting through the normal gui, it's effective immedi...
by doublemax
Wed Sep 20, 2017 2:03 pm
Forum: C++ Development
Topic: Disable wxString constructor and methods dealing with standard C string
Replies: 5
Views: 55

Re: Disable wxString constructor and methods dealing with standard C string

I don't know if this was already proposed, but i think an easy solution would be to replace the default parameter "wxConvLibc" with something like "wxConvDefault". And that one should be configurable by a user-call. So it would be possible to set it to wxConvUTF8.
by doublemax
Wed Sep 20, 2017 6:47 am
Forum: C++ Development
Topic: UUID DataType
Replies: 1
Views: 21

Re: UUID DataType

There is nothing in wxWidgets, but you can use any c++ class for this, e.g.:
https://github.com/graeme-hill/crossguid
by doublemax
Tue Sep 19, 2017 2:07 pm
Forum: C++ Development
Topic: SetBackground UnRef causing exception
Replies: 23
Views: 397

Re: SetBackground UnRef causing exception

If it can help determining if the info is relevant or not, running Dr. Memory (1.11) against one of my own apps (launching the program, then exiting immediately), I got "13 total GDI usage errors" whose 12 about wxToolTip and one about wxNotebook: Thanks. So it's possible that the errors ...
by doublemax
Tue Sep 19, 2017 10:24 am
Forum: C++ Development
Topic: Disable wxString constructor and methods dealing with standard C string
Replies: 5
Views: 55

Re: Disable wxString constructor and methods dealing with standard C string

I think you should discuss this on the wx-dev mailing list where you can reach the core developers. This is a user forum. https://groups.google.com/forum/#!forum/wx-dev And i don't think there is any setting that enforces the behavior you want. It would be nice if the default conversion class "...
by doublemax
Tue Sep 19, 2017 9:24 am
Forum: C++ Development
Topic: wxFlexBoxSizer
Replies: 5
Views: 69

Re: wxFlexBoxSizer

The problem is the components inserted in the wxStaticBoxSizer. They are never resized. Assuming it's a vertical wxStaticBoxSizer: When adding items, set the "proportion" parameter to "1" for all items that shall grow in the vertical direction. Set the wxEXPAND flag for all item...
by doublemax
Mon Sep 18, 2017 4:49 pm
Forum: C++ Development
Topic: SetBackground UnRef causing exception
Replies: 23
Views: 397

Re: SetBackground UnRef causing exception

We just overwrote the wxPanel onPaint() method: wxWidgets event handlers are not implemented by overriding virtual methods. This method can have any name, there must be either a static event table or a Connect() call somewhere. wxNotebook::OnPaint c:\sspandl\develop_1_5_1\funktionstester\externalli...
by doublemax
Sun Sep 17, 2017 10:37 am
Forum: C++ Development
Topic: Unexpected change of value of data transfer variable [SOLVED]
Replies: 24
Views: 284

Re: Unexpected change of value of data transfer variable [SOLVED]

Edit: on a second thought, doing this will produce a different object, and the result may not apply anymore. As I already mentioned, the Debug version did not have this problem. Possible. But in any case it will provide a new piece of information. Maybe I was having a fluke hardware error? If it ca...
by doublemax
Sat Sep 16, 2017 11:56 pm
Forum: C++ Development
Topic: Unexpected change of value of data transfer variable [SOLVED]
Replies: 24
Views: 284

Re: Unexpected change of value of data transfer variable [SOLVED]

It's possible to enable debug info for the release build. In the project properties: C/C++ -> General -> Debug Information Format -> Program Database (/Zi) Linker -> Debugging -> Generate Debug Info -> Yes After a rebuild you should be able to singlestep through the code. Internally there should be ...
by doublemax
Sat Sep 16, 2017 9:20 pm
Forum: C++ Development
Topic: Assert problem in SearchDynamicEventTable()
Replies: 4
Views: 69

Re: Assert problem in SearchDynamicEventTable()

Can you show the code? Otherwise this may be hard to track down.

If you can't, try commenting out all Connect and Disconnect calls. If the assert went away, put them back in one by one.
by doublemax
Sat Sep 16, 2017 9:11 pm
Forum: General Development
Topic: FlexGridsizer possible?
Replies: 1
Views: 48

Re: FlexGridsizer possible?

Sizers are just layout tools, they have no visual representation. Depending on what you're trying to do, using wxGrid may be the better alternative, but it is relatively complicated to use: http://docs.wxwidgets.org/trunk/classwx_grid.html Can you show a screenshot of what you have and describe what...
by doublemax
Sat Sep 16, 2017 12:17 pm
Forum: C++ Development
Topic: Unexpected change of value of data transfer variable [SOLVED]
Replies: 24
Views: 284

Re: Unexpected change of value of data transfer variable [SOLVED]

Who knows how many other comparisons in your program don't work correctly. I couldn't sleep well until i had a proper explanation for the issue.
by doublemax
Fri Sep 15, 2017 3:14 pm
Forum: Platform Related Issues
Topic: StatusBar field width problem (Linux and OS-X) [SOLVED]
Replies: 5
Views: 158

Re: StatusBar field width problem (Linux and OS-X) [SOLVED]

But testing this gave me the final solution : creating a temporary wxStaticText with the needed text, getting its width and immediately deleting it. If this works, the it could be that the wxClientDC in your original code does not use the proper font for the size calculation. I would try to set the...
by doublemax
Fri Sep 15, 2017 1:27 pm
Forum: Component Writing
Topic: subclass panel : custom draw and controls
Replies: 1
Views: 53

Re: subclass panel : custom draw and controls

Basically, you need to catch the wxEVT_PAINT event and do your drawing in the event handler.

https://wiki.wxwidgets.org/Drawing_on_a_panel_with_a_DC

Go to advanced search