Search found 40 matches
- Tue Jan 29, 2019 11:42 am
- Forum: C++ Development
- Topic: Heap problem
- Replies: 1
- Views: 330
Heap problem
Hi I'm getting some sort of memory problem with the heap. I'm running a debug build of my software in the Visual Studio debugger and the following code sample wxString string="my string"; string.utf8_str(); causes a debug assertion fail, with an error message saying File: minkernel\crts\ucrt\src\app...
- Tue Apr 10, 2018 6:53 pm
- Forum: C++ Development
- Topic: Refresh when controls move
- Replies: 1
- Views: 600
Refresh when controls move
Hi I know there have been a number of Refresh related questions in the past, but I still don't seem able to fix my issue. I have a wxFrame which I add rows of text controls to. Between each row is a button to add a new row in that location, and at the end of each row are buttons to delete the row or...
- Wed Oct 04, 2017 9:32 am
- Forum: C++ Development
- Topic: Mouse button up events don't seem to work
- Replies: 3
- Views: 726
Re: Mouse button up events don't seem to work
Actually I was just rendering directly to the wxFrame. Perhaps this is the problem?
- Tue Oct 03, 2017 7:51 pm
- Forum: C++ Development
- Topic: Mouse button up events don't seem to work
- Replies: 3
- Views: 726
Mouse button up events don't seem to work
Hi
I'm trying to click and drag a rectangular selection area on a wxFrame, but I don't seem able to capture the mouse button release.
I have tried using EVT_MOUSE_EVENTS and EVT_LEFT_UP, but neither seem to capture the button release. How do I do this?
Phil
I'm trying to click and drag a rectangular selection area on a wxFrame, but I don't seem able to capture the mouse button release.
I have tried using EVT_MOUSE_EVENTS and EVT_LEFT_UP, but neither seem to capture the button release. How do I do this?
Phil
- Tue Oct 18, 2016 7:58 pm
- Forum: C++ Development
- Topic: Text Size
- Replies: 1
- Views: 687
Text Size
Hi I'm a developer for PLplot, a plotting library which used wxWidgets (among a number of other options) for its graphics backend. I'm trying to sort out the text rendering and scaling. When using the library the user passes in a wxDC* and PLplot will render on it. However, when dealing with multipl...
- Fri Jun 17, 2016 9:38 am
- Forum: C++ Development
- Topic: C++17(ish) std::path
- Replies: 1
- Views: 787
C++17(ish) std::path
Hi I have just started using the new std::path class which is currently in experimental stage and my understanding is that it is expected to end up in C++17 (or C++1z or whatever it is called). I'm currently using it with VS2015 and it can be found in the filesystem header as std::tr2::sys::path. Th...
- Tue Jan 05, 2016 10:15 pm
- Forum: C++ Development
- Topic: Get Text size on a DC, but from a console app
- Replies: 3
- Views: 837
Re: Get Text size on a DC, but from a console app
Thanks DenDev This seems to get me past the creation of the wxBitmap, however I still get a crash. I think this is now due to the creation of the wxMemoryDC. Valgring output below. It looks like this is actually in wxDC (i.e. the top level base class) and is related to wxFont. I am thinking that per...
- Tue Jan 05, 2016 1:39 pm
- Forum: C++ Development
- Topic: Get Text size on a DC, but from a console app
- Replies: 3
- Views: 837
Get Text size on a DC, but from a console app
Hi I am trying to set up a way to determine the size of a string, as it would be displayed on screen by a wxGCDC with a given wxFont, but from a console mode app. For wxMSW I can create a wxBitmap and from that a wxMemoryDC, and from that a wxGraphicsContext, then from that a wxGCDC then call wxGCDC...
- Sun Dec 13, 2015 9:19 am
- Forum: Compiler / Linking / IDE Related
- Topic: Do wxWidgets headers use pragmas to link libs
- Replies: 1
- Views: 751
Do wxWidgets headers use pragmas to link libs
Hi I am just upgrading my setup to use visual studio 2015. To do this I needed to upgrade my wxWidgets to the latest development version from github to get the VS2015 sln file. Because of the way I organise my libs (64 bit debug in lib64d folder, 64bit release in lib64 folder - all libs have same na...
- Fri Mar 27, 2015 12:30 pm
- Forum: Platform Related Issues
- Topic: Building on a server
- Replies: 1
- Views: 1643
Building on a server
Hi I am writing to ask about building wxWidgets on a server with X11, but not GTK. I am on slightly shaky ground with my knowledge about Linux display (I usually do my work on Windows). For some background I have access to a high performance compter to run simulations. The data output is very large,...
- Tue Jan 27, 2015 7:38 pm
- Forum: C++ Development
- Topic: wxDC Transforming text
- Replies: 2
- Views: 672
Re: wxDC Transforming text
Hi Catalin I am not trying to replace perspective. I am trying to reproduce an axonometric projection which has no perspective. I am led to believe this can be reproduced by a combination of rotation and shear. For now in my code I have basically tested if wxDC transforms are supported, if not I use...
- Mon Jan 26, 2015 12:29 pm
- Forum: C++ Development
- Topic: wxDC Transforming text
- Replies: 2
- Views: 672
wxDC Transforming text
Hi I would like to draw some text on a wxDC which is transformed to make it look like it is on a 3d surface, for example on the three sides of a cube. I note that wxDC provides transformations, but the documentation states this is windows only and 2.9+. I wondered if there are some other method that...
- Wed Aug 27, 2014 9:44 am
- Forum: C++ Development
- Topic: Render loop pausing during resize
- Replies: 3
- Views: 949
Re: Render loop pausing during resize
Thanks DoubleMax Yes I was aware of the only do GUI work in the primary thread issue - well, what I really mean is that when everything started crashing I remembered it :) . The first thing I tried was adding a mutex, but this didn't seem to help. Although I never tested if the mutex ever got hit so...
- Tue Aug 26, 2014 9:52 am
- Forum: C++ Development
- Topic: Render loop pausing during resize
- Replies: 3
- Views: 949
Render loop pausing during resize
Hi I'm attempting to render an animation to a wxFrame using the Windows Direct2D API. I'm using this because it provides VSYNC to avoid tearing. I have tried three ways to do this: 1) I first tried a timer, but it just wasn't quick enough I think and it gave quite jerky results. 2)I then tried a sep...
- Fri Jun 06, 2014 8:09 am
- Forum: Open Discussion
- Topic: WxWidgets Trac thinks I'm spam
- Replies: 1
- Views: 1781
WxWidgets Trac thinks I'm spam
Hi I'm trying to create a Trac account to report a wxWidgets bug, but whenever I try I get a message "Trac Error Submission rejected as potential spam. SpamBayes determined spam probability of 68.76%" Has anyone got any ideas how I can actually create an account or what might be triggering the spam ...