Search found 4 matches

by AndyVincent
Mon Jun 25, 2007 3:42 pm
Forum: C++ Development
Topic: The "main loop"
Replies: 12
Views: 4548

According to the documentation, wxApp::Dispatch will dispatch a single event that's in the queue. wxApp::Pending will tell you if there are any in the queue. void DispatchPendingMessages(wxApp& app) { while (app.Pending()) { app.Dispatch(); } } http://www.wxwidgets.org/manuals/stable/wx_wxapp.html#w...
by AndyVincent
Thu Jun 14, 2007 3:32 pm
Forum: C++ Development
Topic: Sizing the parent, not the child
Replies: 2
Views: 462

I believe wxWindow::Fit() is what you're after. Call it for the main window, and it should (according to my interpretation of the documentation) resize the window to fit around the sub-windows. Sizes the window so that it fits around its subwindows. This function won't do anything if there are no su...
by AndyVincent
Thu Jun 14, 2007 3:29 pm
Forum: C++ Development
Topic: wxDatagramSocket, Broadcast
Replies: 2
Views: 1813

Well it would seem that the call to Bind(...) in gsocket.cpp is what's causing the problem. Commenting it out stops me from recieving what I've sent, and I've now modified the library to accept a couple of new flags: wxSOCKET_BROADCAST and wxSOCKET_NOBIND wxSOCKET_BROADCAST sets the socket option SO...
by AndyVincent
Thu Jun 14, 2007 11:09 am
Forum: C++ Development
Topic: wxDatagramSocket, Broadcast
Replies: 2
Views: 1813

wxDatagramSocket, Broadcast

Hi, Long time lurker, first time poster here ;) For the first time in ages I've had a problem with wxWidgets that I've not been able to solve, so I hope that someone can help :) I'm setting up an application to auto-detect some network devices, and we've implemented this using UDP. Now I'm porting t...