Search found 105 matches
- Wed Apr 18, 2018 3:53 pm
- Forum: C++ Development
- Topic: How to find wxProcess pointer in wxProcessEvent handler? [solved]
- Replies: 2
- Views: 1294
How to find wxProcess pointer in wxProcessEvent handler? [solved]
From the wxProcess Class Reference Note If the wxEVT_END_PROCESS event sent after termination is processed by the parent, then it is responsible for deleting the wxProcess object which sent it. However, if it is not processed, the object will delete itself and so the library users should only delete...
- Fri Feb 02, 2018 3:52 pm
- Forum: C++ Development
- Topic: Large wxFileDialog [SOLVED]
- Replies: 4
- Views: 1318
Re: Large wxFileDialog
Yes, it works on Linux (wxGTK-3.0.2)! In fact it looks much better on Linux than windows. It may be my desktop theme but the directories are in blue and the files are in red. On Windows both are black. On Windows the buttons are skinny rectangular and it's hard to see the icons. On Linux, the button...
- Wed Jan 31, 2018 1:10 am
- Forum: C++ Development
- Topic: Large wxFileDialog [SOLVED]
- Replies: 4
- Views: 1318
Re: Large wxFileDialog
Got it working on Windows with doublemax's suggestion. it's ugly but it scales. I can customize that generic dialog to look better. Also it always statrts at the top of the file hierarchy, instead of drive V: but I'm sure that can be fixed too. Will report back with Linux results for those who care ...
- Mon Jan 29, 2018 12:30 am
- Forum: C++ Development
- Topic: Large wxFileDialog [SOLVED]
- Replies: 4
- Views: 1318
Large wxFileDialog [SOLVED]
I'm writing a simple app to be run on a raspberry pi wherein the user selects a video file to run. VLC does this but the font is too small to read unless you walk right up to the TV. A File seclection dialog is perfect except both the dialog and font seem to be a fixed size, too small. I want the Di...
- Sun Jul 31, 2016 9:36 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Problem interfacing with external C code - wxwidgets 3.0.2 unicode build
- Replies: 5
- Views: 2202
Re: Problem interfacing with external C code - wxwidgets 3.0.2 unicode build
Seemed to be work, but probably only because the compiler optimized the two steps into one. I split the C++ functions into a base and overloaded version. That way, each is one line and no test is necessary. The programmer makes the choice by which function he uses. //header extern int TuneChannel(wx...
- Sun Jul 31, 2016 10:10 am
- Forum: Compiler / Linking / IDE Related
- Topic: Problem interfacing with external C code - wxwidgets 3.0.2 unicode build
- Replies: 5
- Views: 2202
Re: Problem interfacing with external C code - wxwidgets 3.0.2 unicode build
Thank You! I have phonied up the C prototype as, in fact, the strings are not modified in the C function. #include <wx/wx.h> // #include "globals.h" extern "C" { char * Null_C_String; int set_tuner(const char *channel, int adapter, int frontend, int demux, const char *confname); ...
- Sun Jul 31, 2016 3:38 am
- Forum: Compiler / Linking / IDE Related
- Topic: Problem interfacing with external C code - wxwidgets 3.0.2 unicode build
- Replies: 5
- Views: 2202
Problem interfacing with external C code - wxwidgets 3.0.2 unicode build
#include <wx/wx.h> // #include "globals.h" extern "C" { char * Null_C_String; int set_tuner(char *channel, int adapter, int frontend, int demux, char *confname); }; int TuneChannel(wxString * channel, int adapter, int frontend,int demux, wxString config_filename) { if (config_fi...
- Wed Apr 20, 2016 11:36 pm
- Forum: wxDev-C++
- Topic: wxDev-Cpp 7.4.2 - blank main window (?)
- Replies: 3
- Views: 17124
Re: wxDev-Cpp 7.4.2 - blank main window (?)
I'm not familiar with Win 10, but it's still installing on XP and Wine 1.6.2 on Linux. If you're interested, I'll try it on Wine 1.8.2 that I just installed two days ago. However, doublemax is correct as always. There is no percentage in starting to learn abandonware. I've tried Code:blocks but I gu...
- Tue Mar 15, 2016 3:03 pm
- Forum: C++ Development
- Topic: wxFile Read doesn't block [solved]
- Replies: 5
- Views: 1680
Re: wxFile Read doesn't block
Thanks to all. What I meant by "safe port number" was a port number not used by another program. I implemented the program with sockets, the daemon listening for connections on localhost (and blocking! Whew!), opening the connection, reading a single character, then closing the connection....
- Tue Mar 08, 2016 5:11 pm
- Forum: C++ Development
- Topic: wxFile Read doesn't block [solved]
- Replies: 5
- Views: 1680
wxFile Read doesn't block [solved]
On windows, I'm trying to simulate a Linux named pipe. But instead of blocking on the read from an empty file, the application is saturating one core of the CPU furiously reading NULL from the empty file (drive light lights up brightly too). I determined this with gdb. My research has not revealed h...
- Sat Jan 30, 2016 5:20 pm
- Forum: Platform Related Issues
- Topic: gtk scroll assertion dialog box on app open
- Replies: 12
- Views: 3823
Re: gtk scroll assertion dialog box on app open
FOUND THE BUG! In /include/wx/scrollwin.h near line 425, the present code is: #ifdef __WXOSX__ bool retval = T::Create(parent, winid, pos, size, style, name); if ( retval && (style & wxALWAYS_SHOW_SB) ) ShowScrollbars(wxSHOW_SB_ALWAYS, wxSHOW_SB_ALWAYS); return retval; #else if ( style &...
- Tue Jan 26, 2016 1:22 am
- Forum: wxDev-C++
- Topic: Not all files are saved after close/re-open project
- Replies: 6
- Views: 18325
Re: Not all files are saved after close/re-open project
I found that the unit references i.e. [Unit 21] were being made when files were added to the project, but the UnitCount under [Project] was not.
Editting the .dev with wordpad to ensure that UnitCount matched the unit references, fixed the problem, albeit that it is a kludge.
Editting the .dev with wordpad to ensure that UnitCount matched the unit references, fixed the problem, albeit that it is a kludge.
- Tue Jan 26, 2016 12:02 am
- Forum: Platform Related Issues
- Topic: gtk scroll assertion dialog box on app open
- Replies: 12
- Views: 3823
Re: gtk scroll assertion dialog box on app open
wxCHECK_RET is defined here: http://docs.wxwidgets.org/trunk/group__group__funcmacro__debug.html#ga0cf2ca7d7ff0107197e51e6b434fd0bd It says that the check is made and returns if the condition is false, so rather than just comment it out, you should replace it with something like: if (!scrolled) retu...
- Mon Jan 25, 2016 11:38 pm
- Forum: Platform Related Issues
- Topic: gtk scroll assertion dialog box on app open
- Replies: 12
- Views: 3823
Re: gtk scroll assertion dialog box on app open
This is the code that triggers the ASSERT: void wxScrollHelper::DoShowScrollbars(wxScrollbarVisibility horz, wxScrollbarVisibility vert) { GtkScrolledWindow * const scrolled = GTK_SCROLLED_WINDOW(m_win->m_widget); wxCHECK_RET( scrolled, "window must be created" ); gtk_scrolled_window_set_p...
- Mon Jan 25, 2016 4:29 pm
- Forum: wxDev-C++
- Topic: Not all files are saved after close/re-open project
- Replies: 6
- Views: 18325
Re: Not all files are saved after close/re-open project
Same problem with 7.4.2.569