Search found 657 matches

by protocol
Sun Mar 08, 2009 9:52 am
Forum: C++ Development
Topic: Best location to store passwords
Replies: 11
Views: 3287

I recommend letting wxConfig decide where to store the file, based on the platform. Also, wxConfig cannot safely store binary data.

http://docs.wxwidgets.org/stable/wx_wxc ... igoverview
by protocol
Wed Nov 12, 2008 5:32 am
Forum: C++ Development
Topic: wxDialog freeze while in loop
Replies: 1
Views: 720

You may need to still process window events.

Use ::wxSafeYield() in your loop.

Regards.
by protocol
Fri Oct 24, 2008 4:02 am
Forum: C++ Development
Topic: HTML Window
Replies: 2
Views: 977

Hola JRDiaz. I'm glad you enjoy the forums.

Check out: http://docs.wxwidgets.org/2.8.6/wx_wxmediactrl.html

Best regards.
by protocol
Fri Oct 24, 2008 3:57 am
Forum: Platform Related Issues
Topic: Problem with wxDialog on Mac OS X
Replies: 17
Views: 4660

I'm may be wrong, but replace the "delete dlgAbout" call with:

Code: Select all

dlgAbout->EndModal(wxID_OK|wxID_CANCEL) 
dlgAbout->Destroy()
which will free the memory correctly for you.

Regards.
by protocol
Fri Oct 24, 2008 3:46 am
Forum: C++ Development
Topic: wxHtml Url Image src
Replies: 19
Views: 5133

Umm... where did you place the code? Place it at the top of MyApp::OnInit method. bool MyApp::OnInit() { wxXmlResource::Get()->InitAllHandlers(); ::wxInitAllImageHandlers(); // ... rest of method } Also, I'm not sure if it handles JPGs (I know it does handle JPEGs). I personally use PNGs, XPMs, or B...
by protocol
Tue Oct 14, 2008 7:00 am
Forum: C++ Development
Topic: Which framework or toolkit should i use?
Replies: 8
Views: 2342

#1. Yes, pretty much
#2. Yes, of course, wxThread exists, and wxThreadHelper (GUI threading friendly)
#3. I don't understand that statement, "draw in a window of a foreign application"?
#4. I prefer and use SQLite with wxSqlite3

Search around to find out about #4?

Regards.
by protocol
Sat Oct 11, 2008 12:32 am
Forum: C++ Development
Topic: wxToolTip::Enable(false) does NOT work in ctor
Replies: 6
Views: 2371

Strati wrote:I am sorry, I do not really get, why all this is needed.
To clarify, Strati, all the code I proposed was in relation to "just started app" code techniques; without using OnIdle. Better/different ways to detect when the application has fully started.
by protocol
Fri Oct 10, 2008 1:43 am
Forum: C++ Development
Topic: Get Local IP Address
Replies: 9
Views: 4264

Yes, I exhausted the abilities of the above code. I have more than a hundred clients, so I was able to get plenty of feedback. Here is how I resolved it. Headers: // headers for network addresses #ifdef __WXOSX__ #include <cstdlib> extern "C" { # include <netdb.h> # include <unistd.h> # in...
by protocol
Fri Oct 10, 2008 1:39 am
Forum: C++ Development
Topic: wxToolTip::Enable(false) does NOT work in ctor
Replies: 6
Views: 2371

In addition to the proposed wxActivateEvent, I also use a wxTimer, start it during the first wxActivateEvent, then 5 secs (or whatever) after the event I do the "app started" code.

regards.
by protocol
Wed Oct 08, 2008 4:29 am
Forum: C++ Development
Topic: Get Local IP Address
Replies: 9
Views: 4264

mac, did you copy and paste the content from the link I posted. Or am I missing something. I used that code, and I have had several clients report that it returns "255.255.255.255", some have supplied screenshots. I use Win32, Mac, and Linux. Its worked for me on those, but others are gett...
by protocol
Tue Oct 07, 2008 4:56 am
Forum: C++ Development
Topic: Get Local IP Address
Replies: 9
Views: 4264

I only want to get a list of IP addresses. With the help of the platform specific compiler directives, I decided to use the std socket libs for each platform (mac and win32).
by protocol
Sat Oct 04, 2008 5:25 am
Forum: C++ Development
Topic: wxToolTip::Enable(false) does NOT work in ctor
Replies: 6
Views: 2371

You can try using wxActivateEvent, then set a flag, so that the code only executes the first time the main window is activated

Regards.
by protocol
Sat Oct 04, 2008 5:10 am
Forum: C++ Development
Topic: Get Local IP Address
Replies: 9
Views: 4264

I may not be sure what you're actually trying to propose, but that just gives undesired results.

Thanks, but thats not functional.
by protocol
Thu Oct 02, 2008 4:08 pm
Forum: C++ Development
Topic: Get Local IP Address
Replies: 9
Views: 4264

Get Local IP Address

I am having difficulty getting a local IP address.

I currently use the code suggested here:
http://wiki.wxwidgets.org/Getting_IP_Address_Of_Host

However, clients are getting mixed results.

Can someone give me a better way of getting local IP addresses, using wxWidgets.
by protocol
Fri Aug 15, 2008 3:35 am
Forum: C++ Development
Topic: Lose focus event for wxTextCtrl?
Replies: 16
Views: 5965

What I would do is, subclass wxTextCtrl, then override wxWindow::SetFocus(). SetFocus is called when focus is set and "killed". It is virtual so it is "override-ready". http://docs.wxwidgets.org/stable/wx_wxwindow.html#wxwindowsetfocus Then use wxWindow::FindFocus() within the me...