Search found 96 matches

by Tony0945
Sat Oct 13, 2018 9:54 pm
Forum: Platform Related Issues
Topic: Don't understand warning
Replies: 10
Views: 650

Re: Don't understand warning

Sorry, that didn't make any difference
by Tony0945
Tue Oct 09, 2018 11:38 pm
Forum: Platform Related Issues
Topic: Don't understand warning
Replies: 10
Views: 650

Re: Don't understand warning

Found that link: https://forums.wxwidgets.org/viewtopic.php?f=1&t=44230 Re EVT_ERASEBACKGROUND, apparently not, at least in this incarnation [email protected] src $ grep EVT_ERASEBACKGROUND *.cpp [email protected] src $ I do have: wxEVT_ERASE_BACKGROUND The code here http://dpaste.com/3XASJTT is a workaround that wor...
by Tony0945
Tue Oct 09, 2018 9:49 pm
Forum: Platform Related Issues
Topic: Don't understand warning
Replies: 10
Views: 650

Re: Don't understand warning

Hi. One difference was that on wxGTK you can't override erasing the background for transparency, gtk will always erase it. IIRC with the file dialog there was a problem when expanding and another when selecting. Doublemax suggested using the universal file dialog and that worked. I've been looking f...
by Tony0945
Tue Oct 09, 2018 6:34 pm
Forum: Platform Related Issues
Topic: Don't understand warning
Replies: 10
Views: 650

Re: Don't understand warning

I'll try -Wno-attributes. The problem with wxGTK is that it behaves differently from wxMSW. I want the same behavior and look on both platforms. I don't really care if my application looks and behaves like other gtk applications, I want it to be the same on all platforms. In regard to your warning, ...
by Tony0945
Tue Oct 09, 2018 5:40 pm
Forum: Platform Related Issues
Topic: Don't understand warning
Replies: 10
Views: 650

Don't understand warning

Linux wxwidgets 3.0.4 compiled without gtk and with universal and X11 gcc 7.3.0 My application compiles but the screen is full of these messages while compiling. They don't occur when wxwidgets is compiled with gtk. /usr/include/wx-3.0-X11/wx/univ/window.h:18:28: warning: attribute ignored in declar...
by Tony0945
Sun Apr 22, 2018 11:53 pm
Forum: C++ Development
Topic: How to find wxProcess pointer in wxProcessEvent handler? [solved]
Replies: 2
Views: 289

Re: How to find wxProcess pointer in wxProcessEvent handler?

My apologies for not responding sooner. I read your response about an hour after you posted it. I swirched to the modified Process as shown in my first post. I think that should be the default but ... Anyway, thanks for the prompt response. BTW, I had another error in my code, I was checking status ...
by Tony0945
Wed Apr 18, 2018 3:53 pm
Forum: C++ Development
Topic: How to find wxProcess pointer in wxProcessEvent handler? [solved]
Replies: 2
Views: 289

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...
by Tony0945
Fri Feb 02, 2018 3:52 pm
Forum: C++ Development
Topic: Large wxFileDialog [SOLVED]
Replies: 4
Views: 509

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...
by Tony0945
Wed Jan 31, 2018 1:10 am
Forum: C++ Development
Topic: Large wxFileDialog [SOLVED]
Replies: 4
Views: 509

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 ...
by Tony0945
Mon Jan 29, 2018 12:30 am
Forum: C++ Development
Topic: Large wxFileDialog [SOLVED]
Replies: 4
Views: 509

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...
by Tony0945
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: 1037

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...
by Tony0945
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: 1037

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); }; int TuneChannel(w...
by Tony0945
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: 1037

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_filename.IsEmpty()) re...
by Tony0945
Wed Apr 20, 2016 11:36 pm
Forum: wxDev-C++
Topic: wxDev-Cpp 7.4.2 - blank main window (?)
Replies: 3
Views: 1607

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...
by Tony0945
Tue Mar 15, 2016 3:03 pm
Forum: C++ Development
Topic: wxFile Read doesn't block [solved]
Replies: 5
Views: 698

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. There are...