Search found 106 matches

by davebee
Tue Jan 18, 2011 6:15 pm
Forum: C++ Development
Topic: wxRadioButton selected event?
Replies: 1
Views: 556

wxRadioButton selected event?

Is there a way to get an event as soon as a radio button is selected? To clarify, I know how to get a selection of a radio box in a wizard, inside OnWizardPageChanging(). But that's too late for me (i.e. not real-time). I need to update something in the wizard page itself, in response to a selection...
by davebee
Tue Jul 13, 2010 7:37 pm
Forum: C++ Development
Topic: Message from Server to client
Replies: 1
Views: 639

Which wx version are you using? Which OS? compiler?

If you are using Windows sockets, is it possible that you are not handling the last packet? Check FD_CLOSE and FD_READ WSA_WAIT_EVENT .
by davebee
Mon Jul 12, 2010 8:16 pm
Forum: C++ Development
Topic: Can I use wxTextCtrl to logging by using printf?
Replies: 4
Views: 1090

cookieki wrote:thanks for answer, davebee.
You are very welcome. I am very happy that I was able to help. Usually I am on the asking side (I have a LOT to learn) as you can see in this question, but whenever I see a question with which I have some experience I happy to offer the little I know.
by davebee
Fri Jul 09, 2010 10:56 pm
Forum: C++ Development
Topic: Can I use wxTextCtrl to logging by using printf?
Replies: 4
Views: 1090

You can't use printf directly to log with wxTextCtrl. You use wxTextCtrl in conjunction with wxLog::SetActiveTarget() and then use the cout-like method of streaming, e.g. m_pTextCtrl << messageStr (where messageStr is a wxString). If you need printf-like functionality, simply wxString::Format() on m...
by davebee
Fri Jul 09, 2010 10:15 pm
Forum: C++ Development
Topic: Which wx can interact with Firefox's DOM?
Replies: 0
Views: 661

Which wx can interact with Firefox's DOM?

Searching this forum yielded very useful threads, such as http://forums.wxwidgets.org/viewtopic.php?t=26210 . wxWebConnect looks like an amazing library, which can also interact with DOM, but I don't really need to render HTML. I only to parse it. wxHtmlParser which looks like what I am really after...
by davebee
Tue Jun 29, 2010 4:29 pm
Forum: C++ Development
Topic: wxWidgets for Android?
Replies: 8
Views: 10358

Re: wxWidgets for Android?

Mojo wrote:Android is yet another the fruit of marketing, M$ has a lot of fruits, but Google probably will have soon many ones too.
How is this different from other operating systems supported by wxWidgets?
by davebee
Fri Jun 25, 2010 6:54 pm
Forum: C++ Development
Topic: wxWidgets for Android?
Replies: 8
Views: 10358

wxWidgets for Android?

I know, I know... "Google Android is based on Linux but it is not Linux, it has no X server. Also Google Android is based on Java , but it is not Java because has no regular Java Runtime." But now with Android's NDK it's finally possible to develop in C/C++ for the Android... so I was wondering: is ...
by davebee
Fri May 07, 2010 10:29 pm
Forum: C++ Development
Topic: What is the RIGHT approach to a Themed Background ?
Replies: 7
Views: 1271

OK. After experimenting a little more, I realized that wxWizard (and its pages) inherit by default the color of the "Message Box" as defined in the Appearance tab of "Display Properties" in Windows XP (SP2). That's the ugliest color of all. :) Yes, it can be changed by selecting one of the available...
by davebee
Fri May 07, 2010 4:07 pm
Forum: C++ Development
Topic: What is the RIGHT approach to a Themed Background ?
Replies: 7
Views: 1271

so in this case it would be the wxWizardPage. Oops. You are correct. wxWizardPage is derived from wxPanel. Or was your question about changing the color of the wxWizard, including parts that are not "yours"? Embarrassingly, that's exactly the question I was trying to ask (not very successfully): wx...
by davebee
Thu May 06, 2010 7:50 pm
Forum: C++ Development
Topic: What is the RIGHT approach to a Themed Background ?
Replies: 7
Views: 1271

Auria wrote:I mean, add a wxPanel inside your frame, then add all other widgets inside this panel
But in there is no place for wxPanel in wxWizard... perhaps we are talking about two different things?
by davebee
Thu May 06, 2010 5:44 pm
Forum: C++ Development
Topic: What is the RIGHT approach to a Themed Background ?
Replies: 7
Views: 1271

Hi, I believe you should be able to only set the background color of the base panel, and then all widgets added in it should, by their transparent borders, not override that background color. Is it not the case? (on wxMac I believe it is; maybe Windows does not behave the same though) I am not sure...
by davebee
Thu May 06, 2010 3:31 pm
Forum: C++ Development
Topic: What is the RIGHT approach to a Themed Background ?
Replies: 7
Views: 1271

What is the RIGHT approach to a Themed Background ?

I know about the wxWindow::SetBackgroundColour() method which is available to all derived classes and thus allows changing the background color of each widget. It seems to me however that there must be a less tedious way of setting a themed background to all wizard pages, message boxes, etc. (simila...
by davebee
Sun Mar 21, 2010 10:43 pm
Forum: C++ Development
Topic: What's the purpose of wxString::GetWriteBuf() ?
Replies: 11
Views: 2269

For the record: It turns out that wxString::GetWriteBuf() is deprecated in favor of wxStringBuffer:

http://trac.wxwidgets.org/changeset/44699

It's old news, but I believe it's nice to have this important piece of information accompanying this discussion.
by davebee
Thu Dec 03, 2009 10:42 pm
Forum: C++ Development
Topic: What's the purpose of wxString::GetWriteBuf() ?
Replies: 11
Views: 2269

doublemax wrote:The second version will be faster
Yes, but is it really faster than:

Code: Select all

wxChar *buf=malloc(1024);
for(wxChar c=32; c<256; c++) {
  *buf++=c;
}
*buf=0;
wxString s(buf, 256);
free(buf);
by davebee
Thu Dec 03, 2009 10:05 pm
Forum: C++ Development
Topic: wxStringOutputStream doesn't work with binary strings
Replies: 7
Views: 1420

I believe that I am beginning to understand what's happening. First, earlier in my posts I confused between wxTextOutputStream and wxFileOutputStream. I meant the latter, of course. Now that this is clear, I can now understand why wxStringOutputStream is not interchangeable with wxFileOutputStream (...