Search found 96 matches

by Tony0945
Tue Mar 08, 2016 5:11 pm
Forum: C++ Development
Topic: wxFile Read doesn't block [solved]
Replies: 5
Views: 789

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...
by Tony0945
Sat Jan 30, 2016 5:20 pm
Forum: Platform Related Issues
Topic: gtk scroll assertion dialog box on app open
Replies: 12
Views: 2461

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 & wxALWAYS_SH...
by Tony0945
Tue Jan 26, 2016 1:22 am
Forum: wxDev-C++
Topic: Not all files are saved after close/re-open project
Replies: 6
Views: 2473

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.
by Tony0945
Tue Jan 26, 2016 12:02 am
Forum: Platform Related Issues
Topic: gtk scroll assertion dialog box on app open
Replies: 12
Views: 2461

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...
by Tony0945
Mon Jan 25, 2016 11:38 pm
Forum: Platform Related Issues
Topic: gtk scroll assertion dialog box on app open
Replies: 12
Views: 2461

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_policy(scro...
by Tony0945
Mon Jan 25, 2016 4:29 pm
Forum: wxDev-C++
Topic: Not all files are saved after close/re-open project
Replies: 6
Views: 2473

Re: Not all files are saved after close/re-open project

Same problem with 7.4.2.569
by Tony0945
Wed Jan 20, 2016 5:42 pm
Forum: C++ Development
Topic: Overriding wxGrid scroll actions [Solved]
Replies: 4
Views: 632

Re: Overriding wxGrid scroll actions

That one works! Thanks a million, doublemax!
by Tony0945
Wed Jan 20, 2016 4:19 pm
Forum: C++ Development
Topic: Overriding wxGrid scroll actions [Solved]
Replies: 4
Views: 632

Re: Overriding wxGrid scroll actions

Changed wxScrollEvent to wxScrollWinEvent and got the same message. Maybe there isn't any way to do this. Edit: The Bind() call won't compile, but I did manage to add EVT_SCROLLWIN(ProgramGuideDialog::OnGridScroll) to the event table. Unfortunately, the event handler isn't called. I extended the 3x5...
by Tony0945
Wed Jan 20, 2016 3:14 am
Forum: C++ Development
Topic: Overriding wxGrid scroll actions [Solved]
Replies: 4
Views: 632

Overriding wxGrid scroll actions [Solved]

I have a wxGrid that is a 3 x 5 window into a much larger table, most of which probably would not be accessed in any given program incarnation. I want to override the scrollbar events so as to generate the cells that are coming into view. In the dialog constructor, I have tried this: ProgramGrid->Se...
by Tony0945
Thu Dec 24, 2015 2:12 am
Forum: wxDev-C++
Topic: wxStandardPaths and Console Application [SOLVED]
Replies: 5
Views: 2160

Re: wxStandardPaths and Console Application

The -mwindows flag was indeed the problem. Thank you very much.
I guess virtually no one uses wxDev-C++ in 2015 here on the forums. You are better off asking on their forums.
??? This is the wxDev-C++ forum! It's where I've always gone.

I suppose it's time to move on to wxSmith
by Tony0945
Wed Dec 23, 2015 5:39 pm
Forum: wxDev-C++
Topic: wxStandardPaths and Console Application [SOLVED]
Replies: 5
Views: 2160

Re: wxStandardPaths and Console Application

After a few more hours of googling, I found that the linker message goes away if I include #include <wx/init.h> and in main() add wxInitializer ini; However, now when I run, there is no console window and if I run the program by "Start Button->Run->cmd" and navigate to the Output directory and execu...
by Tony0945
Tue Dec 22, 2015 11:04 pm
Forum: wxDev-C++
Topic: wxStandardPaths and Console Application [SOLVED]
Replies: 5
Views: 2160

wxStandardPaths and Console Application [SOLVED]

I'm writing a utility program that converts an XML file to a database. I wish to use the wxwidgets wxXML classes and more. The program does not have a GUI, so I created it as a console application. Because it is to be cross-platform, I used wxStandardPaths to generate the full path names. At run-tim...
by Tony0945
Mon Oct 19, 2015 2:57 pm
Forum: C++ Development
Topic: sizer won't expand buttons [solved]
Replies: 4
Views: 677

Re: sizer won't expand buttons

Thank you Gentlemen. Changing proportion to 1 from 0 and adding wxALL to the flags did not change anything. Making the proportions uneven was worse. Commenting out the whole code section had no effect either.
by Tony0945
Sat Oct 17, 2015 8:38 pm
Forum: C++ Development
Topic: sizer won't expand buttons [solved]
Replies: 4
Views: 677

sizer won't expand buttons [solved]

I have a Frame with six buttons on the left and a picture on the right. It looks correct when first launched but when maximized, all the buttons and the picture stay the same size. ////GUI Items Creation End wxBoxSizer *WxBoxSizer1 = new wxBoxSizer(wxVERTICAL); WxBoxSizer1->Add(RecordingsListButton,...
by Tony0945
Mon Jul 27, 2015 12:07 am
Forum: C++ Development
Topic: Trying send wake on lan, program faults out [SOLVED]
Replies: 4
Views: 736

Re: Trying send wake on lan, program faults out

I found an identical post in German from 2009. Nobody answered it. I have found the answers and here they are. The Initialize call is not needed for a single threaded operation. One problem was sending to LocalAddress. Once I set .Hostname to the hostname, Windows Firewall popped up a box asking if ...