Search found 184 matches

by bigpilot
Sun Jan 10, 2010 7:15 pm
Forum: C++ Development
Topic: Still problems converting some files to Unicode
Replies: 3
Views: 1669

For those interested: I patched my code as a workaround, pending the fix in the wxWidgets code tree. My fix seems to solve the problem. // // determine encoding // wxFFile testFile( strFilePath ); char buff[5] = { 0, 0, 0, 0, 0 }; testFile.Read( buff, 4 ); testFile.Close(); EncodingDetector detector...
by bigpilot
Sat Jan 09, 2010 6:00 pm
Forum: C++ Development
Topic: Still problems converting some files to Unicode
Replies: 3
Views: 1669

Thanks for the heads up.
by bigpilot
Fri Jan 08, 2010 5:47 pm
Forum: C++ Development
Topic: Still problems converting some files to Unicode
Replies: 3
Views: 1669

Still problems converting some files to Unicode

I'm trying to load files into my text editor with: wxTextFile textFile( strFilePath ); bSucceeded = textFile.Open( wxConvAuto() ); // reads entire file into memory but with some files I still get errors, I don't understand why. I asked about this previously in this thread: http://forums.wxwidgets.or...
by bigpilot
Mon Jan 04, 2010 6:45 pm
Forum: General Development
Topic: python and wxwidgets... Any experts help please..
Replies: 1
Views: 976

Try these:

http://zetcode.com/wxpython/

http://wiki.wxpython.org/XRCTutorial

Note: I highly recommend wxPython in combination with wxFormBuilder. Dont' use the generated Python code, use the XRC since it's much, much faster.
by bigpilot
Wed Dec 30, 2009 11:00 am
Forum: General Development
Topic: wxSplitterWindow minimum panes sizes
Replies: 7
Views: 2671

You can handle the EVT_SPLITTER_SASH_POS_CHANGING event and then call Veto() to prevent the pane from becoming smaller than the minimum size you want.
by bigpilot
Sun Dec 13, 2009 11:49 am
Forum: General Development
Topic: Sizer problem?
Replies: 0
Views: 733

Sizer problem?

Anyone want to wager a guess why there are gaps between the panel and the frame when I start up the python frame in the attached .zip file? I added the .fbp file (wxFormBuilder project) as wel.

NOTE: Python 2.6 and wxPython needed to run
by bigpilot
Wed Nov 11, 2009 3:22 pm
Forum: C++ Development
Topic: wxWindows and codepages
Replies: 3
Views: 1334

Did you try wxConvLocal()?
by bigpilot
Fri Nov 06, 2009 12:57 pm
Forum: C++ Development
Topic: Failed to convert File <filename> to Unicode
Replies: 1
Views: 1395

Failed to convert File <filename> to Unicode

I'm using the Unicode build and I'm getting errors when reading certain files using either wxTextFile or wxTextCtrl. The wxTextCtrl.LoadFile() returns true but wxWidgets throws up a messagebox: Failed to convert '<filepath>' to Unicode. wxTextFile returns false when I call wxTextFile::Open() but wxW...
by bigpilot
Mon Nov 02, 2009 5:29 pm
Forum: C++ Development
Topic: Detecting a Unicode file?
Replies: 2
Views: 1190

Detecting a Unicode file?

I'm making a text editor and I'm looking for a way to detect, with the least possible effort preferably with standard wxWidgets classes, whether a file contains Unicode, UTF8 or ANSI characters.

Anyone know how to do this?
by bigpilot
Sat Oct 24, 2009 6:00 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems linking Unicode version of my application in VS2008
Replies: 2
Views: 1347

Thanks! That solved it.
by bigpilot
Sat Oct 24, 2009 2:46 pm
Forum: Compiler / Linking / IDE Related
Topic: Problems linking Unicode version of my application in VS2008
Replies: 2
Views: 1347

Problems linking Unicode version of my application in VS2008

I developed my application using the ANSI builds of wxWidgets but I wanted to convert it to Unicode (henceforth I only want to build Unicode versions of my programs). I started compiling the Unicode Debug and Release versions of the wxWidgets static libraries (2.8.10) which went off without a hitch....
by bigpilot
Fri Oct 23, 2009 1:10 pm
Forum: C++ Development
Topic: Statusbar help text with standard menubar wxID's
Replies: 2
Views: 1678

Nobody knows how and where these default help texts are generated?
by bigpilot
Thu Oct 22, 2009 11:03 am
Forum: C++ Development
Topic: Problem displaying text in statusbar
Replies: 2
Views: 1242

Thx, your suggestion helped me solve it. I used static_cast<MainFrame*> (GetGrandParent()) and that seemed to get a valid pointer and I was able to call the status bar update function but it didn't work properly. By changing the static_cast to dynamic_cast I only got back NULL pointers for both GetP...
by bigpilot
Thu Oct 22, 2009 10:22 am
Forum: C++ Development
Topic: Problem displaying text in statusbar
Replies: 2
Views: 1242

Problem displaying text in statusbar

I have a frame with a statusbar and a panel which contains a textcontrol. In the textcontrol I handle the OnKey() which uses GetParent() to retrieve the wxFrame pointer which in turn calls a routine to update the statusbar using wxFrame::SetStatusText(). Problem is, it doesn't display anything. Also...
by bigpilot
Sat Sep 05, 2009 12:43 pm
Forum: C++ Development
Topic: Caption text should be different to taskbar text
Replies: 1
Views: 981

Caption text should be different to taskbar text

I have a program which displays the name of the application plus the path of the opened file in the caption using wxTopLevelWindow::SetTitle(). This text on the taskbar for the application is identical to the caption text. I, however, want the taskbar text to contain the name of the application only...