Search found 236 matches

by KevinHock
Tue Sep 26, 2006 2:25 pm
Forum: C++ Development
Topic: Escaping a string for wxSQLite3
Replies: 6
Views: 2382

I shouldn't be having any binary-unsafe data, so I guess the '' stuff will be enough. Thanks for hitting me over the head with a bat and making me realize the answer was simple, after all. 8)

Thanks to all!
by KevinHock
Tue Sep 26, 2006 12:42 am
Forum: C++ Development
Topic: Escaping a string for wxSQLite3
Replies: 6
Views: 2382

Yes, but doesn't the php escape function espace more than just a single character?
by KevinHock
Mon Sep 25, 2006 11:53 pm
Forum: C++ Development
Topic: Escaping a string for wxSQLite3
Replies: 6
Views: 2382

Escaping a string for wxSQLite3

I'm looking for a function to "escape" a string before using it in a wxSQLite3 query. php has sqlite_escape_string, for example, but I can't seem to locate how do this in my wx application.

Many thanks in advance.
by KevinHock
Wed Sep 06, 2006 3:43 pm
Forum: C++ Development
Topic: wxWizard dynamically changing current page to last page
Replies: 3
Views: 2002

The solution came to me this morning out of the blue: wxWindow* NextButton = FindWindowById(wxID_FORWARD, GetParent()); if (GetNext() == NULL) { NextButton->SetLabel(_("&Finish")); } else { NextButton->SetLabel(_("&Next >")); } Maybe this will be of use to someone else in...
by KevinHock
Wed Aug 30, 2006 6:14 pm
Forum: C++ Development
Topic: wxWizard dynamically changing current page to last page
Replies: 3
Views: 2002

I'm perfectly willing to work on a patch to allow this if it seems like something reasonable to do. We know that the parent of a wxWizardPage is a wxWizard, so a method could be added to wxWizard like RefreshNextFinish or something like that, and then in the Page code you could just call that method...
by KevinHock
Wed Aug 30, 2006 4:26 pm
Forum: C++ Development
Topic: Crash in wxDialog::Create()
Replies: 4
Views: 1654

Or maybe they don't like being invoked from MFC. ;) Anyway, I'm sorry to hear that it didn't work out.
by KevinHock
Wed Aug 30, 2006 3:24 pm
Forum: C++ Development
Topic: wxTxtCtrl problem
Replies: 10
Views: 3631

Can you post a backtrace or debugger output on the crash?
by KevinHock
Wed Aug 30, 2006 3:23 pm
Forum: C++ Development
Topic: Problem with sizers, wxWindow::Layout() and event table
Replies: 3
Views: 1606

OK, that is a bit strange, but you normally do have to call Layout or a related function after placing your controls and sizers. The fact it works without an event table sounds more like the bug/quirk to me.
by KevinHock
Wed Aug 30, 2006 1:03 pm
Forum: C++ Development
Topic: Crash in wxDialog::Create()
Replies: 4
Views: 1654

It might help if you posted the code being used to create the Dialog, e.g. the dialog constructor or other relevant code.
by KevinHock
Wed Aug 30, 2006 1:00 pm
Forum: C++ Development
Topic: Problem with sizers, wxWindow::Layout() and event table
Replies: 3
Views: 1606

In your new event handlers, are you calling event.Skip()? Not skipping some events, like size events, can have unpleasant side-effects.
by KevinHock
Wed Aug 30, 2006 12:59 pm
Forum: C++ Development
Topic: wxWizard dynamically changing current page to last page
Replies: 3
Views: 2002

wxWizard dynamically changing current page to last page

(I posted this to wx-users about 2 days ago, but getting no response yet, thought I'd try here.) I am using wxWizard for the first time and haven't been able to figure something out. I have a Wizard where the first page offers the user a choice using radio buttons. The first page derives from wxWiza...
by KevinHock
Mon Nov 07, 2005 3:59 pm
Forum: General Forum Issues
Topic: Pruning report open questions 04-Nov-2005
Replies: 17
Views: 10084

Perhaps Mods are able to do it, but regular users cannot? I just tried on another thread of mine in the Announcements forum and it won't change for me either using the edit method.
by KevinHock
Mon Nov 07, 2005 2:43 pm
Forum: General Forum Issues
Topic: Pruning report open questions 04-Nov-2005
Replies: 17
Views: 10084

Kevin: The status of you post is normal, so I guess it worked. In general the first post that started the thread will have to be edited, but I conclude you did that. I'm really confused. When I look at: http://forums.wxwidgets.org/viewforum.php?f=10 The topic "BitWise IM 1.0.6 Released" s...
by KevinHock
Mon Nov 07, 2005 4:27 am
Forum: General Forum Issues
Topic: Pruning report open questions 04-Nov-2005
Replies: 17
Views: 10084

No problem. :D
by KevinHock
Sun Nov 06, 2005 7:10 pm
Forum: General Forum Issues
Topic: Pruning report open questions 04-Nov-2005
Replies: 17
Views: 10084

I think UpCase is looking at it. The best thing to do is to give the wxAwards to yourself which also closes the post.. Regards, - Jorgen The best thing would be to fix it. 8) If UpCase doesn't fix it soon I'll fudge it by accepting my own post but I'd rather wait and see since I'm still in the 2-4 ...